之前装了一次nginx,但实在不知道怎么用,还稀里糊涂的配了一个conf文件,然后就出问题了
[root@VM-0-3-centos btu]# nginx -t
nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
很烦,反正nginx不大,直接卸载重装
卸载nginx
sudo yum remove nginx
删除所有nginx相关文件
找nginx文件
[root@VM-0-3-centos btu

本文详细介绍了如何在centOS7系统上卸载并重新安装nginx,包括删除所有相关文件、重新安装后进行测试,以及如何找到nginx的启动位置和使用的一些基本命令。
1189

被折叠的 条评论
为什么被折叠?



