open() "/usr/local/nginx/logs/access.log" failed (21: Is a directory)
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
是说这个access是一个目录,需要进入这个logs目录把这个access.log删除,使用命令
rm -rf access.log ,有时候权限不够,需要su root ,删除完成之后,使用touch access.log创建
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
被占用,ps -ef |grep nginx查看nginx的进程
使用kill -9 xxx 杀死进程进程即可