摘要: [root@VM_119_179_centos ~]# rpm -ivh erlang-19.0.4-1.el6.x86_64.rpm [root@VM_119_179_centos ~]# rpm -ivh socat-1.7.3.0-1.el6.x86_64.rpm [root@VM_119_1 阅读全文
posted @ 2017-01-22 13:09 humor1314 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 安装nginx [root@xuegod64 ~]# yum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre-devel //zlib:给Nginx提供gzip模块,需要的支持;O 阅读全文
posted @ 2017-01-22 10:48 humor1314 阅读(4880) 评论(1) 推荐(0) 编辑
摘要: [root@local /]# yum -y install nfs-utils rpcbind3、创建共享目录:[root@local /]# mkdir /sharestore4、NFS共享文件路径配置:编辑/etc/exports添加下面一行,添加后保存退出。[root@local /]# v 阅读全文
posted @ 2017-01-22 09:54 humor1314 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 一、Redis介绍 Redis是当前比较热门的NOSQL系统之一,它是一个key-value存储系统。和Memcache类似,但很大程度补偿了Memcache的不足,它支持存储的value类型相对更多,包括string、list、set、zset和hash。这些数据类型都支持push/pop、add 阅读全文
posted @ 2017-01-22 09:32 humor1314 阅读(218789) 评论(8) 推荐(14) 编辑
摘要: Linux下添加shell脚本使得nginx日志每天定时切割压缩一 简介 对于nginx的日志文件,特别是access日志,如果我们不做任何处理的话,最后这个文件将会变得非常庞大 这时,无论是出现异常时查日志,还是使用“GoAccess”等工具对日志进行分析都将会变得非常麻烦。因此,每天定时对ngi 阅读全文
posted @ 2017-01-22 09:24 humor1314 阅读(4508) 评论(0) 推荐(1) 编辑
摘要: 1.设置成英文字符,避免出现乱码[root@xuegod62 ~]# LANG=en2.两种配置linux开机自启动服务命令:1)[root@xuegod62 ~]# ntsysv2)[root@xuegod62 ~]# setup3.查看文本模式3级别下的开机自启动服务[root@xuegod62 阅读全文
posted @ 2017-01-22 09:11 humor1314 阅读(565) 评论(0) 推荐(0) 编辑
摘要: [root@xuegod60 ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak[root@xuegod60 ~]# wget -O /etc/yum.repos.d/CentOS-Base.r 阅读全文
posted @ 2017-01-22 09:07 humor1314 阅读(226) 评论(0) 推荐(0) 编辑
摘要: CentOS 6一键系统优化 Shell 脚本 脚本的内容如下: #!/bin/bash#author suzezhi#this script is only for CentOS 6#check the OS platform=`uname -i`if [ $platform != "x86_64 阅读全文
posted @ 2017-01-22 09:06 humor1314 阅读(1437) 评论(0) 推荐(0) 编辑
摘要: /data/目录下有a.txt b.txt c.txt d.txt删除/data/目录下所有文件,保留b.txt两种方法:1.[root@xuegod62 ~]# find /data/ -type f ! -name "b.txt"|xargs rm -f[root@xuegod62 ~]# cd 阅读全文
posted @ 2017-01-22 09:03 humor1314 阅读(9481) 评论(0) 推荐(0) 编辑
摘要: 1.linux系统时间同步[root@xuegod62 ~]# /usr/sbin/ntpdate ntp1.aliyun.com2.linux系统定时同步[root@xuegod62 ~]# echo "#time sync by xuegod62 at 2016-12-10" >> /var/s 阅读全文
posted @ 2017-01-22 09:00 humor1314 阅读(198) 评论(0) 推荐(0) 编辑