nginx应用编译安装:

  • 安装编译所需依赖包:
# apt-get install make gcc g++ libcurl3-openssl-dev libfreetype6-dev libmcrypt-dev
# apt-get install libpcre3 libpcre3-dev zlib1g-dev libssl-dev build-essential
# apt-get install openssl libssl-dev
  • 编译nginx:(无用户)
# cd /usr/local/src
# wget http://nginx.org/download/nginx-1.8.0.tar.gz
# tar -zxvf nginx-1.8.0.tar.gz
# cd nginx-1.8.0/
# ./configure --prefix=/Sioeye/SioApps/Environment/nginx --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre
# make && make install
# ln -sv /Sioeye/SioApps/Environment/nginx/sbin/nginx /etc/init.d/nginx
# mv /home/pengchuan/nginx /etc/init.d/ ### /home/pengchuan/nginx为上传的nginx启动文件
# chmod a+x /etc/init.d/nginx
# update-rc.d nginx defaults
# vim /etc/rc.local
/etc/init.d/nginx
exit 0
# chmod a+x /etc/rc.local
  • 编译nginx:(有用户)
# useradd -s /usr/sbin/nologin -r nginx
# cd /usr/local/src
# wget http://nginx.org/download/nginx-1.8.0.tar.gz
# tar -zxvf nginx-1.8.0.tar.gz
# cd nginx-1.8.0/
# ./configure --prefix=/Sioeye/SioApps/Environment/nginx --with-http_ssl_module --user=nginx --group=nginx --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre
# make && make install
# ln -sv /Sioeye/SioApps/Environment/nginx/sbin/nginx /etc/init.d/nginx
# update-rc.d nginx defaults 99
  • 修改配置文件
# vi nginx.conf

最新文章

  1. 去除DataTable中的重复数据
  2. as画柱型图的简单算法(关于柱型图宽和间距问题)
  3. spark
  4. 深入浅出设计模式——桥接模式(Bridge Pattern)
  5. J2EE 第二阶段项目之编写代码(四)
  6. HOG特征(Histogram of Gradient)总结(转载)
  7. MVC构架思想
  8. 5 DML语言
  9. Linux菜鸟之路[4]-cal,date,bc,echo $LANG,man
  10. 1005 - Rooks(规律)
  11. 2016 ACM Amman Collegiate Programming Contest D Rectangles
  12. 微信公众号平台接口开发:基础支持,获取微信服务器IP地址
  13. Action和Fuc的区别
  14. TCP的核心系列 — ACK的处理(二)
  15. MySQL查看数据库安装路径
  16. Spring Boot 整合 docker
  17. spring boot 扫描不到自定义Controller
  18. cocos 游戏开发 (第一天作业)
  19. 橙色优学:Java编程怎么提升技术,Java编程思维至关重要
  20. js的几个补充事件

热门文章

  1. C#/JAVA 程序员转GO/GOLANG程序员笔记大全(DAY 06)
  2. 使用jQuery插件jRemoteValidate进行远程ajax验证,可以自定义返回的信息
  3. 创建mysql表
  4. Struts2中的包的作用描述
  5. python的经典类与新式类
  6. 使用minidom来处理XML的示例
  7. svn 图标状态说明
  8. html与css与JavaScript的关系
  9. PHP常见带有下划线的常量
  10. Jsoup教程,jsoup开发指南,jsoup中文使用手册,jsoup中文文档