安装nginx
来源:互联网 发布:java返回值是什么意思 编辑:程序博客网 时间:2024/06/10 04:09
把 Nginx 安装到 /var/www 目录下的详细步骤:
1、cd /var/www
tar -zxvf nginx-1.10.2.tar.gz
cd nginx-1.10.2
2、配置nginx安装参数
复制代码
./configure \
–prefix=/var/www \
–with-openssl= \
–with-pcre=/var/www/pcre-8.39 \
–with-zlib=/var/www/pcre-8.39/zlib-1.2.11 \
–with-openssl=/usr/local/src/openssl-1.1.0b \
–without-ipv6 \
–with-http_secure_link_module \
–with-ngx_http_limit_zone_module \
–http-log-path=/var/log \
–http-proxy-temp-path=/var/www/log \
编译安装
make && make install
3、启动
确保系统的 80 端口没被其他程序占用,运行/var/www /nginx 命令来启动 Nginx
4、netstat -ano|grep 80
打开浏览器访问此机器的 IP,如果浏览器出现 Welcome to nginx! 则表示 Nginx 已经安装并运行成功
阅读全文
0 0
- nginx笔记:nginx安装
- Nginx-----源码安装nginx
- 【nginx】nginx的安装
- 安装Nginx
- nginx安装
- 安装 nginx
- 安装nginx
- 安装 Nginx
- nginx安装
- Nginx安装
- 安装Nginx
- 安装nginx
- nginx安装
- 安装nginx
- Nginx安装
- nginx安装
- nginx安装
- nginx 安装
- 机器学习-学习笔记 学习总结归纳(第十周)
- IJKPlayer安装与配置
- SetBkMode函数用法详解
- 用注解实现springMVC
- 宝山区市场监管局商标服务增质
- 安装nginx
- jQuery Validate
- ACM算法列表
- 大话设计模式之代理模式
- 关于使用开源库
- 转的 侵立删 java内存模型
- 大话微信支付踩的坑
- python+selenium+eclipse问题排查(一)
- HTML5-ionic框架