nginx配置

it2025-09-18  5

nginx配置:(配置文件路径:/etc/nginx/nginx.conf)

nginx启动:service nginx start

nginx停掉:service nginx stop

nginx重启:service nginx restart 

1、tengine配置  *  tengine配置文件目录:/usr/local/matrix/etc/virtualhost/plat.conf  *  tengine错误日志目录:/data0/www/logs

tengine服务重启指令: 找到tengine可执行文件目录:/usr/local/matrix/sbin 执行命令:./tengine -s reload

 

3.  ./tengine -t 语法检查  *  tengine配置文件: upstream django{     server unix:data0/www/htdocs/plat/script/uwsgi.sock;      #和uwsgi.ini中的sock文件一致 } server{     listen    80;     server_name    plat.kkk.com;     charset    utf-8;     root    /data0/www/htdocs/plat;     index    index.html;         location / {         uwsgi_pass django;         include    /usr/local/matrix/etc/tengine.uwsgi_params;     }     location /static {         alias /data0/www/htdocs/plat/static;     }     location /media{         alias /data0/www/htdocs/plat/static/media;     } }

最新回复(0)