nginx-install
来源:互联网 发布:手机淘宝怎么改评价呀 编辑:程序博客网 时间:2024/05/24 06:34
- yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
- 安装依赖包
- cd /tmp;wget http://nginx.org/download/nginx-1.10.2.tar.gz
- 去官网下载最新稳定版本
- tar -zxvf nginx-1.10.2.tar.gz
- 解压到当前目录
- cd nginx-1.10.2;./configure --prefix=/opt/nginx
- 编译后文件存放到--prefix指定的目录
- make && make install
- 编译&编译安装
- sed -i '$a\export PATH=$PATH:/opt/nginx/sbin' /etc/profile;source /etc/profile
- 设置nginx环境变量,方便直接使用nginx命令
- sed -i '$a\/opt/nginx/sbin/nginx' /etc/rc.d/rc.local
- 配置自动启动
- nginx -s [stop|reload]
- 停止|重启
- nginx -t
- 检测配置文件
- nginx -t
- 停止|重启
一条命令完成安装相关事宜!
yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel;cd /tmp;wgethttp://nginx.org/download/nginx-1.10.2.tar.gz;tar -zxvf nginx-1.10.2.tar.gz;cd nginx-1.10.2;./configure --prefix=/opt/nginx;make && make install;echo "export PATH=$PATH:/opt/nginx/sbin" >> /etc/profile;source /etc/profile;echo "/opt/nginx/sbin/nginx" >> /etc/rc.d/rc.local;
0 0
- nginx install
- nginx install
- install nginx
- nginx install
- nginx-install
- install nginx
- centos install nginx
- center os install nginx
- FreeBSD Install Nginx Webserver
- Centos Install Nginx PHP
- yum install nginx
- ubuntu nginx install phpmyadmin
- install nginx in centos
- install nginx in centos
- centos7 yum install nginx
- yum install nginx
- install nginx on ubuntu
- centos6 nginx install yum
- 数据处理方式与控制程序方式不同
- java--Map的遍历
- 宏观经济之国家经济与建设
- layout_weight,divider,shape[line]
- bzoj4403 lucas定理模板
- nginx-install
- jquery动态添加元素绑定事件学习记录
- telnet WIN7 不回显的解决办法
- 使用pygame的一些心得
- ubuntu设置时区为美国中部时间西六区
- Unable to load VirtualBox engine
- Nodejs的Express完成安装指导
- POJ 2720 Last Digits 已翻译
- CH22,xml--p435