第一:填写数据库 /data/config 就用他原本的数据库 账号密码
第二:网站目录选择 public运行目录
第三:/www/server/php/72/lib/php/extensions/no-debug-non-zts-20170718 上传我们的扩展
第四:/www/server/php/72/etc 里面的php.ini 最后一行。复制extension = swoole.so 保存
第五:网站配置文件填写
server {
listen 80;
listen 443;
server_name aa78.* skylhd.gyjzm.cn aa78.bdtxemz.cn longhu.j6icm.bar longhu.jiqdt.bar;
client_max_body_size 100M;
index index.php;
root /www/wwwroot/你的网站/public;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
location ~ .php(.*)$ {
fastcgi_pass unix:/tmp/php-cgi-72.sock;
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}
第六:启动 cd /www/wwwroot/你的目录/man 回车 然后输入 php start.php start -d&回车
后台地址 域名/longhuhoutai 账号admin密码123456
=================================================================
暂无评论内容