centos安装nginx报错问题解决

前端之家收集整理的这篇文章主要介绍了centos安装nginx报错问题解决前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


  1. [root@aaNginx]#wgethttp://Nginx.org/download/Nginx-1.7.4.tar.gz
[root@aa Nginx]# wget http://Nginx.org/download/Nginx-1.7.4.tar.gz

以下基础操作,参见以下地址,


传送门


make install 那一步的时候,我出异常了,显示


  1. cp:`conf/koi-win’and`/usr/local/Nginx/conf/koi-win’arethesamefile
cp: `conf/koi-win' and `/usr/local/Nginx/conf/koi-win' are the same file

以上为代码片断


解决办法

将这一步改一下


  1. ./configure–prefix=/usr/local/Nginx
./configure --prefix=/usr/local/Nginx

TO
  1. ./configure–prefix=/usr/local/Nginx–conf-path=/usr/local/Nginx/Nginx.conf
./configure --prefix=/usr/local/Nginx --conf-path=/usr/local/Nginx/Nginx.conf

猜你在找的CentOS相关文章