![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
文章平均质量分 71
逻辑思维菜鸟
这个作者很懒,什么都没留下…
展开
-
《Centos系统——编译nginx》
目录安装nginx1. 下载nginx包2. 安装依赖3. 安装nginx4. 修改配置文件5. 启动nginx6. 访问网页7. 打包文件8. 打开一台新机,将nginx.tar.gz传送过去9. 编写启动脚本和目录脚本10. 执行脚本,访问网页安装nginx1. 下载nginx包[root@localhost ~]# systemctl stop firewalld;setenforce 0[root@localhost ~]# wget http://nginx.org/download/n原创 2020-12-08 19:32:43 · 400 阅读 · 0 评论 -
《Centos系统——Nginx优化》
目录一、nginx优化安装nginx1. 运行用户2. worker进程数量优化3. worker处理最大连接数优化4. 隐藏版本号5. 伪装版本号二、Nginx防DDos优化和配置1.脚本防御2.通过Nginx配置限制用户的访问速率一、nginx优化安装nginxhttps://blog.csdn.net/weixin_45842014/article/details/1097407211. 运行用户创建用户[root@localhost ~]# useradd tom修改配置[root原创 2020-11-23 16:31:08 · 383 阅读 · 0 评论 -
《Centos系统——shell一键安装nginx》
vim nginx.sh#!/bin/bashrpm -qa |grep wget &> /dev/nullif [ $? -eq 0 ]; then echo -e "\033[33m***********wget工具存在**********\033[0m"else echo -e "\033[33m***********wget工具不存在,现在进行安装**********\033[0m" yum -y install wgetfi原创 2020-11-17 13:30:08 · 155 阅读 · 0 评论 -
《Centos7——Nginx管理》
目录源码安装nginx1.请准备1台Centos系统的服务器,并配置静态IP地址2.关闭iptables和SELinux,并测试yum可用3.请将Nginx的源码包上传至Centos服务器上5. 启动Nginx6. 创建软链接7. 在网页中访问自己安装的nginx服务器源码安装nginx1.请准备1台Centos系统的服务器,并配置静态IP地址[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33TYPE="Etherne原创 2020-10-23 09:53:46 · 300 阅读 · 0 评论 -
《Centos系统——Web服务之nginx优化篇》
目录nginx优化1. NGINX运行工作进程数量2. Nginx运行CPU亲和力3. Nginx最大打开文件数4. Nginx事件处理模型5. 开启高效传输模式6. 连接超时时间7. fastcgi 调优1. Nginx FastCGI的运行原理2. Nginx+FastCGI运作过程8. gzip 调优9. expires 缓存调优10. 防盗链11. 内核参数优化12. 关于系统连接数的优化nginx优化nginx工作在7层应用层yum安装nginx默认配置文件在/etc/nginx下yum安原创 2020-10-19 15:01:08 · 301 阅读 · 0 评论 -
《Centos6.5——搭建lvs+keepalived+nginx,实现nginx的负载均衡和高可用》
搭建lvs+keepalived+nginx,实现nginx的负载均衡和高可用1. 源码安装nginx上传nginx包nginx-1.12.2.tar.gzyum -y install gcc gcc-c++ pcre-devel zlib-devel openssl-devel lrzsz -----安装所需的依赖包tar xzf nginx-1.12.2.tar.gz -----解压NGINX安装包cd nginx-1.12.2 -----进入Nginx包./configure原创 2020-09-11 21:20:49 · 203 阅读 · 0 评论 -
《Centos系统——nginx负载均衡》
nginx负载均衡1. 准备3台虚拟机,关闭iptables、配置yum源、设置selinux为关闭192.168.179.130192.168.179.131192.168.179.132[root@localhost ~]# systemctl stop firewalld -----关闭防火墙[root@localhost ~]# setenforce 0 -----关闭selinux[root@localhost ~]# yum repolist -----yum源已加载插件:f原创 2020-10-06 09:26:12 · 215 阅读 · 0 评论