centos安装nginx报错问题解决


[plain] view plain copy
print ?
  1. [root@aa nginx]# wget http://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 那一步的时候,我出异常了,显示


[plain] view plain copy
print ?
  1. cp: `conf/koi-win’ and `/usr/local/nginx/conf/koi-win’ are the same file  
cp: `conf/koi-win' and `/usr/local/nginx/conf/koi-win' are the same file

以上为代码片断


解决办法

将这一步改一下


[plain] view plain copy
print ?
  1. ./configure –prefix=/usr/local/nginx  
./configure --prefix=/usr/local/nginx

TO

[plain] view plain copy
print ?
  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



你可能感兴趣的:(linux)