03 2018 档案

摘要:转自 http://blog.uouo123.com/post/704.html Linux之sed匹配第N个进行替换 文本: aa sda 88 sdf bb ppp 88 cde 88 cccccdf cc ccccclla 88 cccas 88sfweee faawfw aa sda 88 阅读全文
posted @ 2018-03-27 20:15 猎手结缘 阅读(1066) 评论(0) 推荐(0)
摘要:centos6.x 搭建nfs yum -y install nfs nfs-utils mkdir /gong_xiang_mu_lu setfacl -m u:nobody:rx /gong_xiang_mu_lu 创建并编辑 vim /etc/exports /gong_xiang_mu_lu 阅读全文
posted @ 2018-03-27 10:09 猎手结缘 阅读(202) 评论(0) 推荐(0)
摘要:show databases; select database();show tables; desc table_name; #这几个命令是必须要敲的 创建数据库有两种方法 第一种是用bash命令来创建再授权mysql用户这样也可以 第二种当然是用sql命令来创建了 create database 阅读全文
posted @ 2018-03-23 21:59 猎手结缘 阅读(123) 评论(0) 推荐(0)
摘要:转自 https://zhidao.baidu.com/question/480328606.htmltrunk模式 是交换机的一种传输模式 举例另一个 access 模式 A access B trunk两个交换机 sw1 sw2 vlan10 vlan20 vlan10 vlan20 PC11 阅读全文
posted @ 2018-03-22 23:02 猎手结缘 阅读(1361) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/xiaocheche/p/7616503.html 阅读全文
posted @ 2018-03-20 15:07 猎手结缘 阅读(93) 评论(0) 推荐(0)
摘要:cetnos6.x mysql5.6 主服务器(master) 192.168.0.22 yum -y install gcc gcc-c++ ncurses-devel cmake ls /usr/local/mysql || mkdir /usr/local/mysql cd /usr/loca 阅读全文
posted @ 2018-03-20 14:04 猎手结缘 阅读(152) 评论(0) 推荐(0)
摘要:[root@mysql-slave src]# yum clean allerror: db3 error(22) from dbenv->open: 无效的参数error: cannot open Packages index using db3 - 无效的参数 (22)error: cannot 阅读全文
posted @ 2018-03-20 10:37 猎手结缘 阅读(278) 评论(0) 推荐(0)
摘要:yum install -y gettext msgunfmt /usr/share/locale/zh_CN/LC_MESSAGES/wget.mo -o - | sed 's/eta(英国中部时间)/ETA/' | msgfmt - -o /tmp/zh_CN.mo sudo cp /tmp/z 阅读全文
posted @ 2018-03-20 01:28 猎手结缘 阅读(142) 评论(0) 推荐(0)
摘要:centos7.x 安装zabbix3.0 http://blog.csdn.net/u014057054/article/details/66476990 [root@zabbix-server zabbix-server-mysql-3.0.15]# systemctl restart zabb 阅读全文
posted @ 2018-03-18 12:39 猎手结缘 阅读(776) 评论(0) 推荐(0)
摘要:setenfore 0service iptables stop yum -y install samba sestatus mkdir /samba echo sldfj > /samba/ii.txt vi /etc/samba/smb.conf #在末尾加上这样的内容就可以,当然参数在配置里面 阅读全文
posted @ 2018-03-16 09:14 猎手结缘 阅读(164) 评论(0) 推荐(0)
摘要:iptables -F iptables -X iptables -Z sed -i 's/enforcing/disabled/g' /etc/selinux/config ; nl /etc/selinux/config setenforce 0 yum -y install zlib zlib 阅读全文
posted @ 2018-03-14 21:17 猎手结缘 阅读(170) 评论(0) 推荐(0)
摘要:lnmp+memcache 》 192.168.0.10 iptables -Fiptables -Xiptables -Z sed -i 's/enforcing/disabled/g' /etc/selinux/config ; nl /etc/selinux/configsetenforce 阅读全文
posted @ 2018-03-13 17:11 猎手结缘 阅读(202) 评论(0) 推荐(0)
摘要:主服务器 master > 192.168.0.60 修改redis服务脚本,加入如下所示的红色授权信息即可: vi /etc/init.d/redis_6379 $CLIEXEC -a "password" -p $REDISPORT shutdown /etc/init.d/redis_6379 阅读全文
posted @ 2018-03-11 13:43 猎手结缘 阅读(141) 评论(0) 推荐(0)
摘要:curl -I -m 10 -o /dev/null -s -w %{http_code} www.baidu.com -I 仅测试HTTP头 -m 10 最多查询10s -o /dev/null 屏蔽原有输出信息 -s silent -w %{http_code} 控制额外输出 阅读全文
posted @ 2018-03-08 22:17 猎手结缘 阅读(270) 评论(0) 推荐(0)