Starting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

问答中心分类: NginxStarting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
匿名用户 asked 9 年 ago
添加vhost后重新启动nginx ,出现:Starting nginx (via systemctl):  Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
 
 
还有一个就是如何删除 单一的删除如:mysql.执行uninstall.sh时全部都删除了

1 Answers
oneinstack answered 9 年 ago
是否有修改配置文件? 检查下语法是否ok,命令:nginx -t
删除mysql,其它类似,如下:

chkconfig mysqld off
chkconfig --del mysqld
rm -rf /etc/init.d/mysqld /etc/my.cnf #删除启动脚本、配置文件
rm -rf /usr/local/mysql /data/mysql #删除安装目录、数据库数据