欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 >
  • [nginx] Linux下的nginx启动、重新启动 日期:2016-04-29 16:37:54 点击:102 好评:0

    nginx的启动命令是: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf -c制定配置文件的路径,不加-nginx会自动加载默认路径的配置文件。 以上是通用的启动命令 以下是转载的,对于有以下命令的nginx可以使用,没有以下命令的nginx,可以使...

  • [iptables] 9个常用iptables配置实例 日期:2016-04-15 22:58:48 点击:61 好评:0

    iptables命令可用于配置Linux的包过滤规则,常用于实现防火墙、NAT。咋一看iptables的配置很复杂,掌握规律后,其实用iptables完成指定任务并不难,下面我们通过具体实例,学习iptables的详细用法。 1.删除已有规则 在新设定iptables规则时,我们一般先确保...

  • [iptables] iptables的基本配置 日期:2016-04-15 22:58:28 点击:60 好评:0

    iptables的基本配置 ㈠ 基本操作 www.2cto.com 列出现有iptables策略 iptables -L 插入一条策略 iptables -I INPUT 3 -p tcp --dport 22 -j ACCEPT 注释:所有使用TCP协议并且目标端口是22的流量全部允许通过的顺序为3的策略 删除一条策略 iptables -D INPUT...

  • [nginx] nginx安装Modsecurity,实现waf功能 日期:2016-04-11 22:17:16 点击:124 好评:0

    系统:centos 6.6 64位、 tengine 2.1.1, modsecurity 2.9.0 tengine : http://tengine.taobao.org/download/tengine-2.1.1.tar.gz modsecurity for Nginx: https://www.modsecurity.org/tarball/2.9.0/modsecurity-2.9.0.tar.gz OWASP规则集: https://gi...

  • [nginx] Nginx Google 扩展-ngx_http_google_filter_module 日期:2016-04-11 22:10:09 点击:149 好评:0

    下载Nginx Google扩展 1 git clone https://github.com/cuber/ngx_http_a href=https://www.olinux.org.cn/tag/google title=查看与 google 相关的文章target=_blankgoogle/a_filter_module 下载 substitutions扩展 1 git clone https://github.com/yaoweibin...

  • [nginx] nginx禁止直接以IP访问网站 日期:2016-04-11 22:03:40 点击:74 好评:0

    经常出现这种情况,有哥们直接用IP访问公司网站,这样一看就不爽,所以通过nginx禁止直接以IP访问网站。 #在虚拟主机最前面加上如下即可,记住一定要作为第一个server(不然不生效)。如下,返回值404,可以改403等。 Nginx 0.8.20之前的版本如下: server { li...

  • [nginx] 升级nginx 日期:2016-04-11 22:03:01 点击:94 好评:0

    先查看下原来的编译参数 /usr/local/nginx/sbin/nginx -V configure arguments: --user=nobody --group=nobody --prefix=/usr/local/nginx --with-http_stub_status_module --add-module=../ngx_cache_purge-1.0 --with-debug --with-http_sub_module sudo ./...

  • [nginx] Nginx优化worker_processes(worker_cpu_affinity) 日期:2016-04-11 22:01:07 点击:130 好评:0

    Nginx 优化:CPU(Core) + worker_processes(worker_cpu_affinity) 下面总结了,四线程、八线程、十六线程的CPU查看与Nginx进行配置内容: 配置1:4 CPU(4 Core) + 4 worker_processes(每个worker_processes 使用1个CPU) [it@it.net.cn ~]$ cat /proc/...

  • [nginx] nginx log记录请求的头信息 日期:2016-04-11 21:59:56 点击:132 好评:0

    记录访问的log,为了在出现特殊情况时,方便检查出现问题的地方。 log_format accesslog $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;access_log /var/log/nginx/ac...

  • [nginx] nginx+php-fpm出现502错误的终极解决方案 日期:2016-04-11 21:58:37 点击:71 好评:0

    nginx+php-fpm出现502错误的终极解决方案 利用Nignx+php-fpm架构服务器的linux运维工程师们肯定都碰到过502 Bad Gateway错误的情况,出现502 Bad Gateway错误是由于php-fpm进程挂掉了,当然,当出现502 Bad Gateway错误的同时,我们也不得不说下504 timeout错...

  • 首页
  • 上一页
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 下一页
  • 末页
  • 5405398
栏目列表
推荐内容