nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file(示

Posted 杨灏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file(示相关的知识,希望对你有一定的参考价值。

nginx编译安装时make出现如下错误

make[1]: Leaving directory `/application/nginx-1.6.3make -f objs/Makefile install
make[1]: Entering directory `/application/nginx-1.6.3test -d /application/nginx-1.6.3 || mkdir -p /application/nginx-1.6.3
test -d /application/nginx-1.6.3/sbin         || mkdir -p /application/nginx-1.6.3/sbin
test ! -f /application/nginx-1.6.3/sbin/nginx         || mv /application/nginx-1.6.3/sbin/nginx             /application/nginx-1.6.3/sbin/nginx.old
cp objs/nginx /application/nginx-1.6.3/sbin/nginx
test -d /application/nginx-1.6.3/conf         || mkdir -p /application/nginx-1.6.3/conf
cp conf/koi-win /application/nginx-1.6.3/conf
cp: `conf/koi-win and `/application/nginx-1.6.3/conf/koi-win are the same file
make[1]: *** [install] Error 1
make[1]: Leaving directory `/application/nginx-1.6.3make: *** [install] Error 2

cp objs/nginx ‘/application/nginx-1.6.3/sbin/nginx‘

cp conf/koi-win ‘/application/nginx-1.6.3/conf‘

cp: `conf/koi-win‘ and `/application/nginx-1.6.3/conf/koi-win‘ are the same file

这两行告诉你是个已经存在的目录(文件夹),因此无法复制 objs/nginx 文件过去。

多半是环境问题,若是测试机器,不妨移走 /usr/local/nginx 试一下。或用干净的系统再试。

 

以上是关于nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file(示的主要内容,如果未能解决你的问题,请参考以下文章

2020-1-4:安装Python,运行PIP出现LookupError: unknown encoding: cp65001

nginx不间断服务平滑升级

Linux安装Tomcat-Nginx-FastDFS-Redis-Solr-集群——第九集-补充-之安装jdk

Nginx部署文档(二进制包安装)

LNMP编译安装之nginx关联php--图文详解

nginx 虚拟主机 安装Discuz论坛