nginx安装异常汇总,nginx安装汇总
nginx安装异常汇总,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
评论暂时关闭