OS
文章平均质量分 61
逆风的弦
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ES5.22操作笔记
ES集群 1.部署jdk /etc/profile.d/java.sh export JAVA_HOME=/usr/local/java/jdk1.8.0_121 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar 2.下载安装 wg原创 2017-03-24 16:19:40 · 343 阅读 · 0 评论 -
Ansible 启停tomcat遇到的问题
### deploy.yml - hosts: 192.168.2.114 remote_user: tomcatadmin vars: project_name: ccqwsV2 deploy_file: ccqwsV2.war tasks: ##8081 - name: shutdown tomcat-1-8081 scrip原创 2017-03-17 17:50:11 · 1411 阅读 · 0 评论 -
tomcat Service
vi /etc/init.d/tomcat_8080 #!/bin/bash # chkconfig: 345 84 15 # pidfile: /var/run/tomcat_8080.pid . /etc/init.d/functions #if [ -f /etc/sysconfig/tomcat_8080 ]; then # . /etc/sysconfig/tomc原创 2017-03-17 17:37:10 · 350 阅读 · 0 评论 -
python2.6 upgrade 2.7
wget Python-2.7.12.tgz tar zxvf Python-2.7.12.tgz cd Python-2.7.12 ./configure make && make install python -V Python 2.6.6 Check cd /usr/bin ll |grep python -rwxr-xr-x 2 root ro原创 2016-11-03 17:22:29 · 361 阅读 · 0 评论 -
[快速配置]rsyslog+mysql+loganalyzer日志服务器
rsyslog+mysql+loganalyzer server172.172.178.78 环境需求 MySQL Rsyslog PHP Nginx yum install rsyslog-mysql -y 添加FromIP字段 vi /usr/share/doc/rsyslog-mysql-5.8.10/createDB.sql CREATE DATABASE Sy原创 2016-02-04 14:17:13 · 1451 阅读 · 1 评论 -
[快速配置]php-fpm编译
php5.6.18 yum -y install libvpx-devel t1lib-devel gmp-devel libc-client-devel libicu-devel libxml2-devel bzip2-devel libcurl-devel libjpeg-devel libpng-devel libXpm-devel freetype-devel openldap-deve原创 2016-02-10 13:36:33 · 539 阅读 · 0 评论 -
CentOS6.5 双网卡绑定bond0
CentOS6.5 双网卡绑定 [root@mytest1 ~]# echo "alias bond0 bonding" >> /etc/modprobe.d/dist.conf [root@mytest1 ~]# echo "ifenslave bond0 eth0 eth1" >>/etc/rc.local [root@mytest1 ~]# vi /etc/sysconfi原创 2015-03-09 12:57:46 · 1585 阅读 · 0 评论 -
ssh互信+scp简单分发脚本
ssh互信 [root@zphtest ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passp原创 2015-03-09 13:31:42 · 816 阅读 · 0 评论 -
添加Swap文件
创建指定大小文件(8G) dd if=/dev/zero of=/syssoft/swapfile0 bs=1024 count=8192000 创建swap mkswap /syssoft/swapfile0 启用swap swapon /syssoft/swapfile0 开机挂载 cat >>/etc/fstab /syssoft/swapfile0原创 2015-03-10 12:52:12 · 374 阅读 · 0 评论 -
Nginx优化配置
cat nginx.conf ## user webroot webroot; worker_processes 8; worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000 01000000 10000000; worker_rlimit_nofile 102400; events {原创 2015-06-30 17:13:27 · 443 阅读 · 0 评论 -
Nginx负载均衡+动静分离
user webroot webroot; worker_processes 2; worker_rlimit_nofile 102400; events { use epoll; worker_connections 102400; } http { include mime.types; default_type applic原创 2015-07-01 19:29:14 · 502 阅读 · 0 评论 -
session中断的编辑文件恢复
编辑文件时session中断 [root@zphtest01 python_test]# ll -a -rw------- 1 root root 12288 Nov 9 09:43 .contact_query.py.swp [root@zphtest01 python_test]# vi -r contact_query.py [root@zphtest01 python_t原创 2015-11-09 11:22:10 · 365 阅读 · 0 评论 -
zabbix避免瞬时触发频繁报警
{HOST:ITEM.count(600,100,"ge")}>3 and {HOST:ITEM.last(0)}>100 以上意思为:在600内大于100了3次 且当前大于100,就会触发。所以偶发的突破100不会触发。 count(时间,监控值,判断参数,延时时间)>次数 and 逻辑与 判断参数:{eq: 相等 ne: 不相等 gt: 大于 ge: 大于等于 lt: 小于 le: 小于原创 2016-01-21 13:51:07 · 2657 阅读 · 0 评论
分享