yiduzixin@163.com | 发布于 2018-04-05 07:02:20 | 阅读量 186 |
发布于 2018-04-05 07:02:20 |

varnish安装

yum install pcre-devel -y
cd /home/ishangsoft/
wget http://down.i.my71.com/varnish-3.0.3.tar.gz
tar -zxvf varnish-3.0.3.tar.gz
cd varnish-3.0.3
./configure --prefix=/usr/local/varnishd
m
继续阅读
yiduzixin@163.com | 发布于 2018-04-01 16:25:13 | 阅读量 481 |
发布于 2018-04-01 16:25:13 |

背景:

2018年4月1日12点左右发现网站的二级页面出现404错误;

服务器响应非常慢;

CPU和内存使用率不高;

重新远程,也是无法连接,但是重启之后正常;


排查:

查看/var/log/messages

查看12点左右的部分,发现有以下异常

这个是因为当flush数据时和IO同步问题导致超时(120s)


解决:

将 vm.dirty_ratio

继续阅读
yiduzixin@163.com | 发布于 2018-03-25 20:09:06 | 阅读量 327 |
发布于 2018-03-25 20:09:06 |

 

docker pull hub.c.163.com/library/tomcat:latest
docker pull hub.c.163.com/library/mysql:latest
wget https://raw.githubusercontent.com/JpressProjects/jpress/8d26b736ebcff70fa41fefd21b18c8a5ebf7c9
继续阅读
yiduzixin@163.com | 发布于 2018-03-22 09:52:28 | 阅读量 155 |
发布于 2018-03-22 09:52:28 |
yum remove docker docker-common docker-selinux docker-engine
yum install -y yum-utils
yum install -y device-mapper-persistent-data
yum install -y lvm2
yum-config-manager --add-repo https://download.
继续阅读
yiduzixin@163.com | 发布于 2018-03-21 14:15:47 | 阅读量 133 |
发布于 2018-03-21 14:15:47 |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
wget http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
rpm -Uvh elrepo-release-6-8.el6.elrepo.noarch.rpm 
yum --enablerepo=elr
继续阅读
yiduzixin@163.com | 发布于 2018-03-16 10:24:39 | 阅读量 44 |
发布于 2018-03-16 10:24:39 |
# Welcome to Leanote! 欢迎来到Leanote! ## 1. 排版 **粗体** *斜体* ~~这是一段错误的文本。~~ 引用: > 引用Leanote官方的话, 为什么要做Leanote, 原因是... 有充列表: 1. 支持Vim 2. 支持Emacs 无序列表: - 项目1 - 项目2 ## 2. 图片与链接 图片:
继续阅读
yiduzixin@163.com | 发布于 2017-12-28 11:49:33 | 阅读量 55 |
发布于 2017-12-28 11:49:33 |

在C:\WINDOWS\system32\inetsrv\fcgiext.ini,修改参数:

 

"maxInstances=" 设置参考:

512M 内存的改maxInstances=50

1G 内存的改maxInstances=80

2G 内存的改maxInstances=140 

 

“InstanceMaxRequests=”设置参考:

512M 内存的改Inst

继续阅读
yiduzixin@163.com | 发布于 2017-12-01 08:47:28 | 阅读量 96 |
发布于 2017-12-01 08:47:28 |
Linux用户操作记录我们都可以通过命令history来查看历史记录,但是如果因为某人误操作了删除了重要的数据,那么Linux history命令就基本上不会有太大的作用了。我们怎么来查看Linux用户操作记录,有没有什么办法实现通过记录登陆后的IP地址和某用户名所操作的历史记录呢?答案:有的。
 
通过在/etc/profile里面加入以下代码就可以实现:
 
PS1="`
继续阅读