nginx的安装
来源:互联网 发布:淘宝装修代码怎么写 编辑:程序博客网 时间:2024/05/23 00:09
http://www.21ops.com/ops/8960.html
流程: 1.前序必须安装的 :gcc pcre zlib openssl 等库和工具
2.wget http://nginx.org/download/nginx-1.5.4.tar.gz 下载 解压 进入目录./config --prex=/usr/local/nginx-.. 自定义的安装目录
3.在目录下make编译
出现的问题:1. 提示./configure -....没有相应的option 原因:下载的包解压缩时出现了错误 解决办法:重写下载压缩包 解压
2. 执行 进入usr/local/nginx../sbin/ 执行./nginx ,也可将nginx命令移动到/usr/sbin目录下(/usr/sbin:主要放置网路管理的必备程序) http://www.jb51.net/LINUXjishu/86669.html
3. 80端口被appach或其他的程序占用,关闭80端口的进程:
1.使用kill - 9 命令,发现关闭了后又启动了
2.使用命令:fuser -k 80/tcp 可以关闭
结果:
执行nginx后 :
[root@host nginx-1.5.4]# [root@host nginx-1.5.4]# nginx[root@host nginx-1.5.4]# netstat -antp | grep 80tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5182/nginx [root@host nginx-1.5.4]#
从windows进入: http://192.168.137.128/ ,提示:
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.
查看连接:
[root@host nginx-1.5.4]# [root@host nginx-1.5.4]# netstat -antp | grep 80tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5182/nginx tcp 0 0 192.168.137.128:80 192.168.137.1:4562 ESTABLISHED 5183/nginx tcp 0 0 192.168.137.128:80 192.168.137.1:4561 ESTABLISHED 5183/nginx tcp 0 0 192.168.137.128:80 192.168.137.1:4546 ESTABLISHED 5183/nginx tcp 0 0 192.168.137.128:80 192.168.137.1:4550 ESTABLISHED 5183/nginx [root@host nginx-1.5.4]#
今天 vmware出现的问题:异常关闭导致windows下的我的电脑-》管理--》服务--》vmware dhcp 和vmware nat 服务没有开启:
进入设置开启,并调整属性->自动开启
- 【nginx】nginx的安装
- Nginx的安装配置
- nginx的安装
- Nginx的安装
- nginx的安装有感
- Nginx 的安装入门
- nginx-gridfs的安装
- Nginx的编译安装
- nginx的安装过程
- nginx的安装
- nginx的安装
- nginx的安装
- nginx的安装
- nginx的安装
- nginx的安装
- linux nginx的安装
- nginx的安装
- nginx 的安装
- 快速排序
- replaceAll replace 的关系及区别
- c# f3按下弹起比对图片
- 转录组分析工具tophat之完全手册
- 互联网全站HTTPS的时代已经到来
- nginx的安装
- Myeclipse 8.5破解方法
- hive建立外表
- Can't use Subversion command line client:svn
- 五.拍照存储相片过程分析
- 计算机组成原理摘要
- 关于测试人员的职业发展,很有用的
- 20141010,微软十月安全补丁提前通知
- python 运算符