个人网站可以做点什么,腾讯网站建设分析,线上商城怎么开,公众号发布的文章是wordpress什么是Nginx?
Nginx#xff08;发音同engine x#xff09;是一款由俄罗斯程序员Igor Sysoev所开发轻量级的网页服务器、反向代 理服务器以及电子邮件#xff08;IMAP/POP3#xff09;代理服务器。 Nginx 因具有高并发#xff08;特別是静态资源#xff09;、 占用系统资…什么是Nginx?
Nginx发音同engine x是一款由俄罗斯程序员Igor Sysoev所开发轻量级的网页服务器、反向代 理服务器以及电子邮件IMAP/POP3代理服务器。 Nginx 因具有高并发特別是静态资源、 占用系统资源少等特性目.功能丰富而逐渐流行起来。 在功能应用方面Nginx 不但是一个优秀的 Web 服务软件还具有反向代理负载均衡功能和缓存 服务功能。
目录
安装
RMP包安装
1、获取RPM包
2、安装
3、查看版本即安装成功
源码安装
1、获取地址
2、创建用户和组
3、安装
4、为nginx提供SysV init脚本
5、启动服务
6、浏览器查看
安装
RMP包安装
1、获取RPM包
Index of /packages/ 2、安装 3、查看版本即安装成功 源码安装
1、获取地址
Index of /download/ (nginx.org)
2、创建用户和组 [rootnode2 ~]# groupadd -r nginx [rootnode2 ~]# grep nginx /etc/group nginx:x:992: [rootnode2 ~]# useradd nginx -u 993 -r -g 992 -c nginx user -s /sbin/nologin 3、安装 [rootnode2 ~]# yum install gcc gcc-c make -y [rootnode2 ~]# yum install -y pcre-devel openssl-devel #基础依赖包重写、开发 [rootnode2 ~]# tar xf download/nginx-1.22.0.tar.gz -C /usr/local/ [rootnode2 ~]# ll /usr/local/nginx-1.22.0/ [rootnode2 nginx-1.22.0]# ./configure \ #检查缺省依赖 --prefix/etc/nginx \ --sbin-path/usr/sbin/nginx \ --modules-path/usr/lib64/nginx/modules \ --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 \ --usernginx --groupnginx \ --with-http_addition_module \ --with-http_auth_request_module \ --with-http_dav_module --with-http_flv_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_mp4_module \ --with-http_random_index_module \ --with-http_realip_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_sub_module \ --with-http_v2_module \ --with-stream --with-stream_realip_module \ --with-stream_ssl_module \ --with-stream_ssl_preread_module 编译并安装 [rootnode2 nginx-1.22.0]# make make install 4、为nginx提供SysV init脚本 [rootnode2 ~]# cat /usr/lib/systemd/system/nginx.service [Unit] Descriptionnginx - high performance web server Documentationhttp://nginx.org/en/docs/ Afternetwork-online.target remote-fs.target nss-lookup.target Wantsnetwork-online.target [Service] Typeforking PIDFile/var/run/nginx.pid ExecStart/usr/sbin/nginx -c /etc/nginx/nginx.conf ExecReload/bin/sh -c /bin/kill -s HUP $(/bin/cat /var/run/nginx.pid) ExecStop/bin/sh -c /bin/kill -s TERM $(/bin/cat /var/run/nginx.pid) [Install] WantedBymulti-user.target 5、启动服务 [rootnode2 ~]# systemctl daemon-reload [rootnode2 ~]# systemctl start nginx Nginx 软件的主要企业功能应用
( 1 ) 作为 Web 服务软件 ( 2 ) 反向代理或负载均衡服务 ( 3 ) 前端业务数据缓存服务
6、浏览器查看