当前位置:Gxlcms > 数据库问题 > 零基础学习云计算及大数据DBA集群架构师【企业级运维技术及实践项目2015年1月26日周二】

零基础学习云计算及大数据DBA集群架构师【企业级运维技术及实践项目2015年1月26日周二】

时间:2021-07-01 10:21:17 帮助过:9人阅读

/POP3/SMTP 代理服务器。 why #专为性能优化而开发 #稳定性高 #支持热部署 #采用 master-slave 模型 #代码质量高 #nginx 处理请求是异步非阻塞的,而 apache 则是阻塞型的,在高并发下 nginx 能保持低资源低消耗高性能 官网 #http://nginx.org/en/docs 版本 #最新版本为 Nginx 的开发版本,之前的版本为当前稳定版本。例如最新版本为 1.9.X,则当前稳定版本为 1.8.X。 配置文件 #/etc/nginx/nginx.conf /etc/nginx/conf.d 数据文件 #/usr/share/nginx/* } Nginx 的安装和启动 { #servera: (1)添加端口转发规则,访问 servera 机器外网网卡的 80 端口的请求转发给 nginx 服务内网网卡的 80 端口 [root@servera ~]# iptables -t nat -A PREROUTING -d 172.25.15.10 -i eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.11:80 (2)保存iptables配置 iptables-save > /etc/sysconfig/iptables #serverb: (1)安装软件 [root@serverb other]# rpm nginx-1.8.0-1.el7.ngx.x86_64.rpm (2)查看软件框架 [root@serverb other]# rpm -ql nginx /etc/logrotate.d/nginx /etc/nginx /etc/nginx/conf.d /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/example_ssl.conf /etc/nginx/fastcgi_params /etc/nginx/koi-utf /etc/nginx/koi-win /etc/nginx/mime.types /etc/nginx/nginx.conf /etc/nginx/scgi_params /etc/nginx/uwsgi_params /etc/nginx/win-utf /etc/sysconfig/nginx /usr/lib/systemd/system/nginx.service /usr/libexec/initscripts/legacy-actions/nginx /usr/libexec/initscripts/legacy-actions/nginx/upgrade /usr/sbin/nginx /usr/share/nginx /usr/share/nginx/html /usr/share/nginx/html/50x.html /usr/share/nginx/html/index.html /var/cache/nginx /var/log/nginx (3)启动nginx服务 [root@serverb ~]# systemctl start nginx [root@serverb ~]# systemctl enable ngins }

 

零基础学习云计算及大数据DBA集群架构师【企业级运维技术及实践项目2015年1月26日周二】

标签:

人气教程排行