sky_cheng

导航

 

2019年3月29日

摘要: 一、环境 三台服务器分别为: 172.28.18.75/172.28.18.103/172.28.18.104 在三台服务器上分别部署一个redis节点以及一个sentinel节点 二、主从复制配置 1、172.28.18.75为主redis配置在25700端口 vim /etc/redis/red 阅读全文
posted @ 2019-03-29 11:32 sky_cheng 阅读(571) 评论(0) 推荐(0)
 

2019年3月28日

摘要: 一、下载redis cd /usr/local/src wget http://download.redis.io/releases/redis-4.0.2.tar.gz 二、解压 tar -zxvf redis-4.0.2.tar.gz cd redis-4.0.2 三、编译安装 1、看看是否安装 阅读全文
posted @ 2019-03-28 14:04 sky_cheng 阅读(868) 评论(0) 推荐(0)
 

2019年3月27日

摘要: 一、编写shell脚本 ps aux|sort -k4nr|head -3|awk 'split($11,a,"/"){print $4","a[length(a)]}'|awk '{printf "%s""|",$0}' sort -k4nr中(k代表从第几个位置开始,后面的数字4即是其开始位置, 阅读全文
posted @ 2019-03-27 16:12 sky_cheng 阅读(1028) 评论(0) 推荐(0)
 

2019年3月21日

摘要: 百万并发之 tcp_mem 在服务端,连接达到一定数量,诸如50W时,有些隐藏很深的问题,就不断的抛出来。 通过查看dmesg命令查看,发现大量TCP: too many of orphaned sockets错误,也很正常,下面到了需要调整tcp socket参数的时候了。 第一个需要调整的是tc 阅读全文
posted @ 2019-03-21 11:22 sky_cheng 阅读(5230) 评论(0) 推荐(1)
 

2019年3月20日

摘要: 一、将startup.sh和shutdown.sh新建软连接到/usr/bin ln -s /usr/local/apache-tomcat-8.5.38/bin/startup.sh /usr/bin/startup.sh ln -s /usr/local/apache-tomcat-8.5.38 阅读全文
posted @ 2019-03-20 17:43 sky_cheng 阅读(263) 评论(0) 推荐(0)
 
摘要: 服务不支持chkconfig的解决 写了脚本,想用命令chkconfig加载自启动.提示xxxxxxx服务不支持chkconfig",原来是自己写的脚本时,忘记写两行了.开头一般要这样写 服务不支持chkconfig的解决 写了脚本,想用命令chkconfig加载自启动.提示xxxxxxx服务不支持 阅读全文
posted @ 2019-03-20 17:33 sky_cheng 阅读(2904) 评论(0) 推荐(0)
 
摘要: 一台服务器上安装了zabbix服务和jumpserver服务,两个域名zabbix.xxxx.xxxx和jumserver.xxx.xxxx 一、编辑/etc/nginx/conf.d目录下nginx.conf 添加 include /etc/nginx/conf.d/*.conf; 二、在/etc 阅读全文
posted @ 2019-03-20 16:41 sky_cheng 阅读(14137) 评论(0) 推荐(0)
 
摘要: sip=xxx.xxx.xxx.xxx user=user passwd=passwd back_path=/home/xxxxx/mysqlbak data_name=data_name date=`date +%Y%m%d` mkdir $back_path/$date mysqldump -h 阅读全文
posted @ 2019-03-20 16:24 sky_cheng 阅读(443) 评论(0) 推荐(0)
 
摘要: #!/bin/bash #author:skycheng #get current date string datestr=`date +'%Y-%m-%d'` start_time=`date +'%Y-%m-%d %H:%M:%S'` #get logfile name logfile='/var/log/fs/drop_tables_'$datestr'.log' if [ ! -f... 阅读全文
posted @ 2019-03-20 16:18 sky_cheng 阅读(982) 评论(0) 推荐(0)
 
摘要: #!/bin/bash #author:skycheng #parameters db_user=dbuser db_pass=dbpass db_host=xxx.xxx.xxx.xxx database=database #get current date string datestr=`date +'%Y-%m-%d'` start_time=`date +'%Y-%m-%d %H:%... 阅读全文
posted @ 2019-03-20 16:09 sky_cheng 阅读(290) 评论(0) 推荐(0)