centos安装nginx报错问题解决
来源:互联网 发布:大数据的特点包含百万 编辑:程序博客网 时间:2024/06/06 04:58
- [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 那一步的时候,我出异常了,显示
- 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
以上为代码片断
解决办法
将这一步改一下
- ./configure –prefix=/usr/local/nginx
./configure --prefix=/usr/local/nginx
TO
- ./configure –prefix=/usr/local/nginx –conf-path=/usr/local/nginx/nginx.conf
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf
阅读全文