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.3‘
make -f objs/Makefile install
make[1]: Entering directory `/application/nginx-1.6.3‘
test -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.3‘
make: *** [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

原文地址:https://www.cnblogs.com/HByang/p/11831215.html

时间: 2024-08-15 04:17:59

nginx安装出现:cp: `conf/koi-win' and `/application/nginx-1.6.3/conf/koi-win' are the same file的相关文章

十二周二次课 12.6 Nginx安装 12.7 默认虚拟主机 12.8 Nginx用户认证 12.

十二周二次课 12.6 Nginx安装 12.7 默认虚拟主机 12.8 Nginx用户认证 12.9 Nginx域名重定向 12.6 Nginx安装 12.7 默认虚拟主机 12.8 Nginx用户认证 12.9 Nginx域名重定向 原文地址:http://blog.51cto.com/wbyyy/2087031

12.6 Nginx安装 12.7 默认虚拟主机 12.8 Nginx用户认证 12.9 Nginx

12.6 Nginx安装 [[email protected] conf]# chkconfig --add nginx[[email protected] conf]# chkconfig nginx on[[email protected] conf]# /usr/local/nginx/sbin/nginx -tnginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is oknginx: configur

Nginx安装配置实现用户认证、反向代理、隐藏版本号

一.Nginx安装 1.检查并且安装依赖组件           检查安装nginx的模块需要第三方库的支持,检查是否安装下列库:zlib.zlib-devel.openssl.openssl-devel.pcre.pcre-devel如果没有,则全部装上          # rpm -qa | grep pcre  ##没有任何信息则没安装 2.安装pcre,pcre-devel # tar -zxvf pcre-6.6.9.tar.gz          # cd pcre-6.6.9/ 

[nginx]linux nginx 安装

linux nginx 安装 作者:flymaster qq:908601287 blog:http://www.cnblogs.com/flymaster500/ 1.第一种安装:编译安装 编译安装NGINX 1. 查看安装系统环境[[email protected] ~]# cat /etc/redhat-releaseCentOS release 6.7 (Final)[[email protected] ~]# uname -r2.6.32-573.el6.x86_64[[email p

ubuntu nginx 安装以及配置文件详解

1.到nginx官网下载源码包.最好下载稳定版本,nginx官网http://www.nginx.org/ 2.安装nginx依赖包运行命令: sudo apt-get install libssl-devsudo apt-get install libpcre3 libpcre3-dev 3.解压下载的nginx源码包.检查编译环境 ./configure --prefix=/usr/local/nginx 4.编译安装 make && make install 5.到nginx安装目录

nginx安装、默认虚拟主机、nginx用户认证、nginx域名重定向

一:nginx安装 (1)下载.解压 Nginx #cd /usr/local/src/ #wget http://nginx.org/download/nginx-1.8.0.tar.gz #tar zxvf nginx-1.8.0.tar.gz (2)配置编译选项 #cd nginx-1.8.0 #./configure \--prefix=/usr/local/nginx \--with-http_realip_module \--with-http_sub_module \--with-

01 - nginx - 安装

一.运维: 1. 介绍服务器. 服务器逻辑: 服务器选择 操作系统 部署逻辑 业务环境部署逻辑 业务部署图 软件部署文档 日常维护文档 测试 开发上传代码到源码系统 上线 - 测服务器,内测 预发布测试,公测 上线 产品需求确认 产品研发确认 产品测试确认 产品流程文档 跟踪统计用户反馈情况 2. 架构部署,自测环境,预生产环境,生产环境. 二.Nginx: Apache: 消耗资源 Nginx介绍: 轻量级的WEB服务器,和反向代理服务器 延伸版本tengine(淘宝).openresrt(章

ubuntu 12.04 下nginx安装步骤

2013-12-05 10:25 2289人阅读 评论(0) 收藏 举报  分类: Ubuntu/Linux(17)  nginx(4)  转自:http://blog.csdn.net/accccaa/article/details/12215007 nginx是一个强大的高性能反向代理服务器,其特点是占内存少,并发能力强,在高并发的情况下是apache 的一个不错的代替品,能够支持高达50000个并发连接数的响应,那么这么强大的武器,究竟如何在linux系统下发挥他的优势,找到它的用武之地呢

安装nginx报错cp: "conf/koi-win" 与"/application/nginx-1.6.3/conf/koi-win" 为同一文件

安装nginx时,进行到make install是突然报以下错误,并且停止安装: cp: "conf/koi-win" 与"/application/nginx-1.6.3/conf/koi-win" 为同一文件 错误原因:安装目录和解压后的安装包为同一个目录. 解决办法:将安装包移动到另外的一个目录,或者重新选择安装路径.