mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-22 02:47:27 +08:00
readme add quick start
This commit is contained in:
+12
-1
@@ -26,10 +26,21 @@ Complete PT website building solution. Based on NexusPHP + Laravel Framework + E
|
||||
- ....
|
||||
|
||||
## 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
|
||||
- Redis:1.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
|
||||
Blog:[https://nexusphp.org](https://nexusphp.org/)
|
||||
Documentation:[https://doc.nexusphp.org](https://doc.nexusphp.org/en/)
|
||||
|
||||
@@ -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最新版或以上版本
|
||||
- Redis:1.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://doc.nexusphp.org](http://doc.nexusphp.org/)
|
||||
|
||||
@@ -40,7 +40,6 @@ class BackupCronjob extends Command
|
||||
{
|
||||
$force = $this->option('force');
|
||||
$this->info("force: $force");
|
||||
do_log("ENV: " . getenv('NEXUS_LOG_DIR', true) . ", logFile: " . getLogFile());
|
||||
$rep = new ToolRepository();
|
||||
$result = $rep->cronjobBackup($force);
|
||||
$log = sprintf(
|
||||
|
||||
+1
-2
@@ -371,8 +371,7 @@ function docleanup($forceAll = 0, $printProgress = false) {
|
||||
$torrents[$row["torrent"]]["comments"] = $row["c"];
|
||||
}
|
||||
|
||||
// $fields = explode(":", "comments:leechers:seeders");
|
||||
$fields = explode(":", "comments");
|
||||
$fields = explode(":", "comments:leechers:seeders");
|
||||
$res = sql_query("SELECT id, seeders, leechers, comments FROM torrents") or sqlerr(__FILE__, __LINE__);
|
||||
while ($row = mysql_fetch_assoc($res)) {
|
||||
$id = $row["id"];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.16');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-18');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.17');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-06-23');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -2330,6 +2330,7 @@ function get_css_row() {
|
||||
}
|
||||
function get_css_uri($file = "")
|
||||
{
|
||||
global $defcss;
|
||||
$cssRow = get_css_row();
|
||||
$ss_uri = $cssRow['uri'];
|
||||
if (!$ss_uri)
|
||||
|
||||
@@ -30,7 +30,7 @@ class Install
|
||||
'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 = [
|
||||
['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"],
|
||||
|
||||
Reference in New Issue
Block a user