随笔分类 -  linux

摘要:如下文本 zimu.txt aaaaa #bbbbbb cccccc dddddd 以下命令如果需要在文本中更改 需要加 -i 或者 -ri参数 用sed在aaa前加#注释 sed 's/^aaa/#&/' zimu.txt # &的意思是匹配任意字符(就是说未知数,啥都行) 这条命令是 替换以aa 阅读全文
posted @ 2018-11-23 14:06 DevOps_QXW 阅读(2220) 评论(0) 推荐(0)
摘要:1.客户端请求IP 客户端发一个DHCP DISCOVEY(包含主机名、mac地址)广播包 2.服务端响应请求 DHCP服务器收到请求后,查看自己的地址池是否有合法的地址。如果有,广播一个DHCP offer 包(ip,mac地址) 3.客户端选择IP 客户端收到DHCP offer后,广播出一个D 阅读全文
posted @ 2017-10-13 13:01 DevOps_QXW 阅读(399) 评论(0) 推荐(0)
摘要:参考链接:http://blog.csdn.net/gatieme/article/details/50912910 依赖包安装: yum install -y SDL-devel mesa-libGL-devel yum -y install perl-Time-HiRes 阅读全文
posted @ 2017-08-21 10:07 DevOps_QXW 阅读(1547) 评论(0) 推荐(0)
摘要:现在有不少团队开始使用了一个新型高效的 NoSQL数据库 - SSDB,如 京东、唱吧 ……SSDB 官网的定义一个高性能的支持丰富数据结构的 NoSQL 数据库,用于替代 Redis官网 http://ssdb.io/zh_cn 特点 兼容 Redis,支持 Redis 客户端有与 Redis 一 阅读全文
posted @ 2017-07-27 13:37 DevOps_QXW 阅读(4657) 评论(0) 推荐(0)
摘要:请参考:http://www.cnblogs.com/sunxucool/p/3449068.html 阅读全文
posted @ 2017-05-17 13:09 DevOps_QXW 阅读(297) 评论(0) 推荐(0)
摘要:1.把下面的代码保存为tomcat文件,并让它成为可执行文件 chmod 755 tomcat. #!/bin/bash # # /etc/rc.d/init.d/tomcat # init script for tomcat precesses # # processname: tomcat # 阅读全文
posted @ 2017-03-23 17:12 DevOps_QXW 阅读(212) 评论(0) 推荐(0)
摘要:MogileFS是一个开源的分布式文件存储系统,由LiveJournal旗下的Danga Interactive公司开发。Danga团队开发了包括 Memcached、MogileFS、Perlbal 等多个知名的开源项目。目前使用MogileFS 的公司非常多,如日本排名先前的几个互联公司及国内的 阅读全文
posted @ 2017-03-14 11:14 DevOps_QXW 阅读(606) 评论(0) 推荐(0)
摘要:#!/bin/sh # #chkconfig: 2345 80 90 #description: mongodb start() { /usr/local/yunshipei/enterplorer/mongodb/bin/mongod -f /usr/local/yunshipei/enterplorer/mongodb/etc/mongodb.conf } stop... 阅读全文
posted @ 2017-02-20 14:32 DevOps_QXW 阅读(2069) 评论(0) 推荐(0)
摘要:#nginx,keepalived安装略过 MASTER 节点配置文件(192.168.1.11) vi /etc/keepalived/keepalived.conf global_defs { ##keepalived自带的邮件提醒需要开启sendmail服务。建议用独立的监控或第三方SMTP 阅读全文
posted @ 2017-02-16 18:02 DevOps_QXW 阅读(168) 评论(0) 推荐(0)
摘要:dbpath=/home/mongodb/data logpath=/home/mongodb/log/mongodb.log logappend=true port=27017 fork=true noauth=true master=true oplogSize=2048 slave=true source=10.0.0.7 slavedelay=1 autoresync=true 阅读全文
posted @ 2017-02-09 14:08 DevOps_QXW 阅读(210) 评论(0) 推荐(0)
摘要:1.说明 fish is a fully-equipped command line shell (like bash or zsh) that is smart and user-friendly. fish supports powerful features like syntax highl 阅读全文
posted @ 2017-01-19 14:07 DevOps_QXW 阅读(1557) 评论(0) 推荐(0)
摘要:说明:1)nohup执行后,需要回车跳过当前命令,$str变量表示回车;2)nohup需要用相对路径执行;3)将脚本加入rc.local中执行开机自启。 阅读全文
posted @ 2017-01-12 09:35 DevOps_QXW 阅读(3682) 评论(0) 推荐(0)