在 Nginx 中统计各个 IP 访问次数 1 awk '{print $1}' nginx_site_log.access.log | sort | uniq -c | sort -n 在 Nginx 配置文件 http 段内添加 1 client_max_body_size 1000m; 然后重启 按域名进行跳转重定向 1 2 3 4 5 6 server { listen 80; server_name example.com; rewrite ^/(.*)$ http://www.example.com/$1 permanent; }
主:192.168.1.101 从:192.168.1.111 OS CentOS 6.8 理论上需要主从服务器 MySQL 版本相同。 该方案已经实验并通过 MySQL5.0.95-log 与 MySQL5.1.
卜木
发布于 收录于 类别 IIS IIS 中的配置大多都可以体现在对访问日志下的 web.config 中。 一、部署 对于 IIS7 以上的可以直接进入https://www.microsoft.com/web/d
卜木
发布于 收录于 类别 IIS IIS7+php 的默认上传限制 30M 在解决 php 服务上的上传限制配置外还有针对 IIS 的请求大小的限制,而这一块的限制经常让人摸不着头脑。 现对整体的上传请求大小修改步骤
1 2 3 4 5 Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install -g windows-build-tools window-build-tools
1 2 find -type f -name '*.html' | xargs grep --color -n 'text' find -type f -name '*.html' -print0 | xargs -0 grep --color -n 'text'
rsync 参数的具体解释如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59