Linux下安装nginx

来源:互联网 发布:mysql免安装版设置密码 编辑:程序博客网 时间:2024/04/28 08:35

        系统:centOS

        参考资料:http://www.jb51.net/article/49479.htm 我是直接拷贝的nginx-1.7.1.tar.gz包到服务器上,然后解压的,这个资料讲得已经很详细了。

        在照着那个资料安装的过程中出现了以下错误:

nginx 1.7 conf/koi-win' and `/usr/local/nginx-1.7.1/conf/koi-win' are the same file

通过百度,得到以下解决方案:

http://zhidao.baidu.com/link?url=mWM00qKqpRImayNWS5nP6OttYqRgqr7ZPhcR7y7gvq-tY-EKEWMpzWUYW10wkzDRsyi3dDR2IXNmH28tYlcPjhyiGwIqK8rqI7vzYdZL3PO

原因是我解压后的文件夹为nginx-1.7.1,然后 ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre,用这个命令的时候--prefix=/usr/local/nginx 最开始我写的是--prefix=/usr/local/nginx-1.7.1,其实这个名字和那个文件夹的名字是不能重复的。

0 0
原创粉丝点击