zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Nginx网站架构实战——01、nginx介绍及编译安装

安装架构Nginx网站 介绍 实战 编译 01
2023-06-13 09:15:46 时间

Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器。Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,第一个公开版本0.1.0发布于2004年10月4日。

其将源代码以类BSD许可证的形式发布,因它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名。2011年6月1日,nginx 1.0.4发布。

Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行。其特点是占有内存少,并发能力强,事实上nginx的并发能力确实在同类型的网页服务器中表现较好,中国大陆使用nginx网站用户有:百度、京东、新浪、网易、腾讯、淘宝等。

一:安装nginx

[root@tiejiang ~]# yum -y install gcc gcc-c++ wget pcre pcre-devel zlib zlib-devel

[root@tiejiang ~]# /etc/init.d/iptables stop

[root@tiejiang ~]# cd /usr/local/src/

[root@tiejiang src]# wget http://nginx.org/download/nginx-1.14.0.tar.gz

[root@tiejiang src]# tar zxvf nginx-1.14.0.tar.gz

[root@tiejiang src]# cd nginx-1.14.0

[root@tiejiang nginx-1.14.0]# ./configure --prefix=/usr/local/nginx

[root@tiejiang nginx-1.14.0]# make make install

[root@tiejiang nginx-1.14.0]# cd /usr/local/nginx/

[root@tiejiang nginx]# ./sbin/nginx 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/54347.html

iptablesnginx