博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装Nginx脚本
阅读量:7061 次
发布时间:2019-06-28

本文共 940 字,大约阅读时间需要 3 分钟。

  hot3.png

 

auto_install_nginx.sh:

wget http://www.openssl.org/source/openssl-1.0.2e.tar.gztar zxvf openssl-1.0.2e.tar.gz  -C /usr/srcwget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gztar zxvf pcre-8.37.tar.gz -C /usr/srccd pcre-8.37./configure; make;make installcd ..wget http://tengine.taobao.org/download/tengine-2.1.1.tar.gztar zxvf tengine-2.1.1.tar.gzcd tengine-2.1.1useradd nginx -s /sbin/nologin./configure --user=nginx --group=nginx --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --with-openssl=/usr/src/openssl-1.0.2e/ --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module --with-pcre=/usr/src/pcre-8.37makemake install

 

执行后自动安装nginx;

转载于:https://my.oschina.net/woter/blog/1189237

你可能感兴趣的文章
robots协议
查看>>
Jquery
查看>>
flask开发没有解决的bug记录
查看>>
在Debian-7.1下安装Bumblebee解决双显卡发热问题
查看>>
.net创建Windows应用程序基本文件介绍
查看>>
一个SQLSERVER触发器的示例
查看>>
Online tools
查看>>
驻扎博客园,以后每天都有进步
查看>>
Python面向对象-访问权限public和private
查看>>
tensorflow1
查看>>
内网渗透的一些小总结(长期更新)
查看>>
linux安装
查看>>
吴恩达机器学习笔记7-梯度下降III(Gradient descent intuition) --梯度下降的线性回归...
查看>>
SQL TRY CATCH
查看>>
hdu 5311(暴力)
查看>>
hdu2088
查看>>
[C puzzle book] Preprocessor for C
查看>>
大牛博客(持续更新)
查看>>
day18-socket 编程
查看>>
jqgrid 行编辑/单元格selsect 下拉框并运用select2
查看>>