nginx学习
Posted xuqidong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx学习相关的知识,希望对你有一定的参考价值。
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学习的主要内容,如果未能解决你的问题,请参考以下文章