【Nginx】基本使用


cd E:/env/nginx-1.16.0

测试配置文件
nginx -t -c E:/env/nginx-1.16.0/conf/nginx.conf

启动
nginx -c E:/env/nginx-1.16.0/conf/nginx.conf

tasklist /fi "imagename eq nginx.exe"
taskkill /f /t /im nginx.exe

快速停止
nginx -s stop

完整有序的停止
nginx -s quit

重新加载生效
nginx -s reload

重新打开日志文件
nginx -s reopen



修改配置文件
指定端口9090

启动后访问路径:http://localhost:9090/



/etc/nginx/logs/access.log

 

原创文章,作者:bd101bd101,如若转载,请注明出处:https://blog.ytso.com/268118.html

(0)
上一篇 2022年6月19日
下一篇 2022年6月19日

相关推荐

发表回复

登录后才能评论
WordPress › Error

Error establishing a Redis connection

To disable Redis, delete the object-cache.php file in the /wp-content/ directory.