web服务器
文章平均质量分 54
free操盘手
这个作者很懒,什么都没留下…
展开
-
nginx调优之内核配置
在文件/etc/sysctl.conf中添加一下内容:net.ipv4.tcp_max_tw_bucket = 6000net.ipv4.ip_local_port_range = 1024 65000sysctl -a|grep net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_syncooki原创 2017-10-07 13:31:29 · 379 阅读 · 0 评论 -
nginx php安装
安装准备:yum install libxml2* libjpeg-devel libpng-devel freetype-devel m4 autoconf -y nginx安装脚本#!/bin/shsoft_dir=/home/apps/soft_origininstall_dir=/usr/local/nginxnginx_version=nginx-1.10.1原创 2017-10-07 13:32:56 · 505 阅读 · 0 评论 -
rsync实现站点更新
更新脚本为rsync.sh 内容如下:#!/bin/bashprojectRootPath=/server/wwwTest //服务器目录localPath=/var/www/html/www.ss.com/ss.com/* //本地目录syncPath=${projectRootPath}/www.ss.com/原创 2017-10-12 16:54:00 · 453 阅读 · 0 评论 -
nginx 500错误(post大文件是出错)
nginx中的三个参数改成足够大如:client_max_body_size 50m;client_header_buffer_size 10m;large_client_header_buffers 4 10m;erro_log中的级别为error,如果为debug可能看不到错误error_log /var/log/ng原创 2017-10-12 16:26:24 · 5517 阅读 · 1 评论