centos安裝nginx報錯問題解決
阿新 • • 發佈:2019-01-03
[plain] view plain copy print?
以下基礎操作,參見以下地址,
TO [plain] view plain copy print?
- [[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?- 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?- ./configure –prefix=/usr/local/nginx
./configure --prefix=/usr/local/nginx
TO [plain] view plain copy print?
- ./configure –prefix=/usr/local/nginx –conf-path=/usr/local/nginx/nginx.conf
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf