readme add quick start

This commit is contained in:
xiaomlove
2022-06-23 16:39:52 +08:00
parent eb3d7138d6
commit e786b8b461
7 changed files with 28 additions and 8 deletions
+12 -1
View File
@@ -26,10 +26,21 @@ Complete PT website building solution. Based on NexusPHP + Laravel Framework + E
- .... - ....
## System Requirements ## System Requirements
- PHP: 8.0, must have extensions: bcmath, ctype, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix - PHP: 8.0, must have extensions: bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix
- Mysql: 5.7 latest version or above - Mysql: 5.7 latest version or above
- Redis1.0.0 or above - Redis1.0.0 or above
## Quick Start
Install docker.
Where DOMAIN is the domain name you want to use, first do a good resolution. If you don't have a domain name, you can use IP.
If the local port 80 is already used, please change it and make sure the port is open to the public.
Step 2 Create .env Select the correct time zone TIMEZONE, other defaults are fine.
```
docker pull xiaomlove/nexusphp:latest
docker run --name my-nexusphp -e DOMAIN=xxx.com -p 80:80 xiaomlove/nexusphp:latest
```
**Production environments are recommended to refer to the documentation for live installation.**
## More information ## More information
Blog[https://nexusphp.org](https://nexusphp.org/) Blog[https://nexusphp.org](https://nexusphp.org/)
Documentation[https://doc.nexusphp.org](https://doc.nexusphp.org/en/) Documentation[https://doc.nexusphp.org](https://doc.nexusphp.org/en/)
+11 -1
View File
@@ -25,10 +25,20 @@
- .... - ....
## 系统要求 ## 系统要求
- PHP: 8.0,必须扩展:bcmath, ctype, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix - PHP: 8.0,必须扩展:bcmath, ctype, curl, fileinfo, json, mbstring, openssl, pdo_mysql, tokenizer, xml, mysqli, gd, redis, pcntl, sockets, posix
- Mysql: 5.7最新版或以上版本 - Mysql: 5.7最新版或以上版本
- Redis1.0.0或以上版本 - Redis1.0.0或以上版本
## 快速开始
安装 docker。
其中 DOMAIN 是你要使用的域名,先做好解析。 没有域名使用 IP 亦可。
端口按需要指定,如果本地 80 端口已经使用,请更换,保证端口对外开放。
第2步创建 .env 选择正确的时区 TIMEZONE,其他默认即可。
```
docker pull xiaomlove/nexusphp:latest
docker run --name my-nexusphp -e DOMAIN=xxx.com -p 80:80 xiaomlove/nexusphp:latest
```
**生产环境建议参考文档实机安装。**
## 更多信息 ## 更多信息
博客:[https://nexusphp.org](http://nexusphp.org/) 博客:[https://nexusphp.org](http://nexusphp.org/)
文档:[https://doc.nexusphp.org](http://doc.nexusphp.org/) 文档:[https://doc.nexusphp.org](http://doc.nexusphp.org/)
-1
View File
@@ -40,7 +40,6 @@ class BackupCronjob extends Command
{ {
$force = $this->option('force'); $force = $this->option('force');
$this->info("force: $force"); $this->info("force: $force");
do_log("ENV: " . getenv('NEXUS_LOG_DIR', true) . ", logFile: " . getLogFile());
$rep = new ToolRepository(); $rep = new ToolRepository();
$result = $rep->cronjobBackup($force); $result = $rep->cronjobBackup($force);
$log = sprintf( $log = sprintf(
+1 -2
View File
@@ -371,8 +371,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
$torrents[$row["torrent"]]["comments"] = $row["c"]; $torrents[$row["torrent"]]["comments"] = $row["c"];
} }
// $fields = explode(":", "comments:leechers:seeders"); $fields = explode(":", "comments:leechers:seeders");
$fields = explode(":", "comments");
$res = sql_query("SELECT id, seeders, leechers, comments FROM torrents") or sqlerr(__FILE__, __LINE__); $res = sql_query("SELECT id, seeders, leechers, comments FROM torrents") or sqlerr(__FILE__, __LINE__);
while ($row = mysql_fetch_assoc($res)) { while ($row = mysql_fetch_assoc($res)) {
$id = $row["id"]; $id = $row["id"];
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.16'); defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.17');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-18'); defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-23');
defined('IN_TRACKER') || define('IN_TRACKER', true); defined('IN_TRACKER') || define('IN_TRACKER', true);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP"); defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org"); defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+1
View File
@@ -2330,6 +2330,7 @@ function get_css_row() {
} }
function get_css_uri($file = "") function get_css_uri($file = "")
{ {
global $defcss;
$cssRow = get_css_row(); $cssRow = get_css_row();
$ss_uri = $cssRow['uri']; $ss_uri = $cssRow['uri'];
if (!$ss_uri) if (!$ss_uri)
+1 -1
View File
@@ -30,7 +30,7 @@ class Install
'REDIS_HOST', 'REDIS_PORT', 'REDIS_DB', 'REDIS_PASSWORD', 'REDIS_HOST', 'REDIS_PORT', 'REDIS_DB', 'REDIS_PASSWORD',
]; ];
protected array $requiredExtensions = ['ctype', 'fileinfo', 'json', 'mbstring', 'openssl', 'pdo_mysql', 'tokenizer', 'xml', 'mysqli', 'bcmath', 'redis', 'gd', ]; protected array $requiredExtensions = ['ctype', 'curl', 'fileinfo', 'json', 'mbstring', 'openssl', 'pdo_mysql', 'tokenizer', 'xml', 'mysqli', 'bcmath', 'redis', 'gd', ];
protected array $optionalExtensions = [ protected array $optionalExtensions = [
['name' => 'pcntl', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"], ['name' => 'pcntl', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"],
['name' => 'posix', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"], ['name' => 'posix', 'desc' => "If use Octane and 'Current' showing 0, make sure it's on php -m"],