CPU = 16 或 8 或 4核心
RAM = 32 或 16 或 8GB
SSD = 1TB 或 512GB
主机位置 = 香港
Php - 8.0
Nginx
Mysql
数据库 用 utf-8 或者 utf-16 charset 和 collation
BCMath
Ctype
Fileinfo
JSON
Mbstring
OpenSSL
PDO
Tokenizer
XML
访问目录 需要指向 public 目录
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header Referrer-Policy "origin-when-cross-origin";
add_header X-XSS-Protection " 1; mode=block";
add_header Content-Security-Policy "script-src 'unsafe-inline' 'self' 'unsafe-eval'";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location = /index/ { access_log off; log_not_found off;}
cd /www/wwwroot/项目目录
chsh -s /bin/bash www
su www
composer install
cp .env.example .env
APP_NAME=“项目名称”
APP_ENV=production
APP_DEBUG=false
APP_URL= "域名"
APP_IP = 'ip'
DB_PORT= '数据端口 默认3306'
DB_DATABASE='数据库名称'
DB_USERNAME='数据库用户'
DB_PASSWORD='数据库密码'
URL_SUFIX = '比如 PMJbsLbMmmRpJXyp'
php artisan key:generate
php artisan storage:link
php artisan migrate --seed
composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
php artisan view:cache
- 链接 - http://ip:端口/PMJbsLbMmmRpJXyp
- 账号 - admin 密码 123456
The Laravel framework is open-sourced software licensed under the MIT license.