摘要: VPS测速脚本: 这是测试VPS主机入口与出口的带宽一键脚本,执行命令: 阅读全文
posted @ 2016-08-29 17:22 德俊 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 下面是优化部分,优化的前提是内核版本是需要3.7以上,查看内核版本,执行命令uname -a会返回你的内核信息。 接着我们要进行一些优化,这才是选择CentOS 7 x64系统的主要原因。 重启之后,我们用PUTTY重新登陆服务器。 首先我们要在系统中启用TCP Fast Open运行命令 echo 阅读全文
posted @ 2016-08-01 16:50 德俊 阅读(2927) 评论(0) 推荐(0) 编辑
摘要: 查看当前内核 unam -r 显示已经安装的内核 rpm -qa | grep kernel 安装指定内核 rpm -ivh http://soft.91yun.org/ISO/Linux/CentOS/kernel/kernel-3.10.0-229.1.2.el7.x86_64.rpm --fo 阅读全文
posted @ 2016-07-20 10:53 德俊 阅读(11120) 评论(0) 推荐(0) 编辑
摘要: CentOS7安装iptables防火墙 CentOS7安装iptables防火墙 CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables service iptables status #安装 阅读全文
posted @ 2016-07-20 09:32 德俊 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.单网卡绑定2个IP 修改/etc/network/interfacesauto eth0iface eth0 inet staticaddress 172.16.3.123netmask 255.255.255.0network 172.16.3.0broadcast 172.16.3.255g 阅读全文
posted @ 2016-07-19 14:52 德俊 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Google高级搜索关键字 site:qq.com inurl:indexof intitle:神州 intext:服务器运维 Ext:文件后缀 它可以帮你搜索各种后缀格式的文件 cache:URL链接 搜索显示的是某个链接在Google服务器上的缓存 阅读全文
posted @ 2016-07-14 08:53 德俊 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1.Javascript模块化编程(三):require.js的用法 http://www.ruanyifeng.com/blog/2012/11/require_js.html 阅读全文
posted @ 2016-07-07 17:12 德俊 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1. document.write('<script src="http://echarts.baidu.com/echarts2/doc/asset/js/jquery.min.js"></script>'); 会导致页面刷新 2. var script = document.createElem 阅读全文
posted @ 2016-07-07 17:09 德俊 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.hyjiacan.com/codemirror-config/ CodeMirror是一款在线的支持语法高亮的代码编辑器。官网: http://codemirror.net/ 下载后,解压开得到的文件夹中,lib下是放的是核心库和核心css,mode下放的是各种支持语言的 阅读全文
posted @ 2016-07-07 16:53 德俊 阅读(5070) 评论(0) 推荐(0) 编辑
摘要: 替换掉所有换行符 \r\n 模式转义 空格 \s 模式正则表达式 阅读全文
posted @ 2016-07-07 16:34 德俊 阅读(502) 评论(0) 推荐(0) 编辑