1. 程式人生 > >centos安裝nginx報錯問題解決

centos安裝nginx報錯問題解決

[plain] view plain copy print?
  1. [[email protected] nginx]# wget http://nginx.org/download/nginx-1.7.4.tar.gz  
[[email protected] 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