0
点赞
收藏
分享

微信扫一扫

nginx安装异常汇总


1,nginx检查配置报错

[root@localhost nginx1.8.0]# ./nginx -t
nginx: the configuration file /var/local/nginx1.8.0/nginx.conf syntax is ok
nginx: [emerg] getpwnam("nginx") failed



解决办法:创建nginx用户

root@localhost nginx1.8.0]# groupadd nginx
[root@localhost nginx1.8.0]# useradd -g nginx  -s /usr/sbin/nologin nginx
[root@localhost nginx1.8.0]# ./nginx -t
nginx: the configuration file /var/local/nginx1.8.0/nginx.conf syntax is ok
nginx: configuration file /var/local/nginx1.8.0/nginx.conf test is successful



2,make的时候报错

make: ps2pdf: Command not found



解决办法:

yum install ghostscript






举报

相关推荐

0 条评论