标签:gcc-c++ .gz The localhost 表示 pen conf 输入 serve
注意 一定要保持虚拟机有网!
1、把下载好的nginx1.7.9.tar.gz 复制到usr/local中
2、进入根目录(cd /)分别输入
yum -y install gcc gcc-c++ autoconf automake
yum install pcre-devel zlib zlib-devel openssl openssl-devel
下载需要的文件包 选项全部 y
3、进入usr/loacal cd /usr/local
4、解压文件 tar -zxvf nginx-1.7.9.tar.gz
5、进入文件 cd nginx-1.7.9
6、运行 ./configure
7、 make
8、 make install
9 、进入创建好的nginx中 cd /usr/local/nginx/sbin/
10 输入 ./nginx
测试
打开浏览器输入 http://localhost/
可以看到
Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using nginx.
表示成功!!!!!
标签:gcc-c++ .gz The localhost 表示 pen conf 输入 serve
原文地址:https://www.cnblogs.com/eyesheart/p/10888826.html