码迷,mamicode.com
首页 > 其他好文 > 详细

nginx学习

时间:2019-07-09 00:08:43      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:bzip   gdb   net   curl   tengine   conf   make   bin   zip   

1.检测linux上是否通过yum安装nginx命令:rpm   -pi   nginx

2.安装nginx之前的依赖包

yum install gcc patch libffi-devel python-devel  zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel openssl openssl-devel -y
656  curl www.taobao.com
  657  curl -I www.taobao.com
  658  curl -I jd.com
  659  curl -I 4339.com
  660  curl -I pythonav.com
  661  rpm  -qi nginx
  662  yum install gcc patch libffi-devel python-devel  zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel openssl openssl-devel -y
  663  cd /opt
  664  wget http://tengine.taobao.org/download/tengine-2.3.1.tar.gz
  665  ls
  666  tar -zxvf tengine-2.3.1.tar.gz 
  667  clear
  668  ls
  669  cd tengine-2.3.1/
  670  ls
  671  ./configure --prefix=/opt/tengine/
  672  make && make install
  673  clear
  674  pwd
  675  cd ..
  676  ll
  677  cd tengine
  678  ls
  679  cd sbin
  680  ls
  681  nginx
  682  pwd
  683  vim /etc/profile
  684  nginx
  685  source /etc/profile
  686  nginx
  687  ps -ef | grep nginx
  688  netstat nginx
  689  netstat -l
  690  netstat -tunlp | grep nginx
  691  iptables -F

 

 卸载nginx:yum remove nginx -y

nginx学习

标签:bzip   gdb   net   curl   tengine   conf   make   bin   zip   

原文地址:https://www.cnblogs.com/xuqidong/p/11154491.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!