🎉 限时特惠活动公告、获取优惠码、最高立减3200元
swoole_loader80.so //linux系统、PHP非线程安全,一般nginx环境使用
swoole_loader80_zts.so //linux系统、PHP线程安全
swoole_loader80_nzts_x64.dll //windows系统、PHP非线程安全,一般nginx环境使用
swoole_loader80_zts_x64.dll //windows系统、PHP线程安全server {
listen 80;
listen 443 ssl;
server_name www.chat.localhost;
ssl_certificate /ssl/www.chat.localhost.crt;
ssl_certificate_key /ssl/www.localhost.key;
access_log /logs/demo.likeadmin.cnt_access_nginx.log;
error_log /logs/demo.likeadmin.cn_error_nginx.log;
client_max_body_size 5M;
location / {
root chat/server/public;#入口文件目录
index index.html index.htm index.php;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ /.*\.php/ {
rewrite ^(.*?/?)(.*\.php)(.*)$ /$2?s=$3 last;
break;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME chat/server/public$fastcgi_script_name; #入口文件目录
include fastcgi_params;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
}if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
php /www/wwwroot/项目/server/think crontab写作任务处理
php think queue:listen --queue maJob --timeout 0
降重任务处理
php think queue:listen --queue reJob --timeout 0