安装配置xcache缓存插件扩展 By duncan21Posted on 2015 年 1 月 4 日Posted in LinuxTagged xcahce XCache 是一个又快又稳定的 PHP opcode 缓存器. 经过良好的测试并在大流量/高负载的生产机器上稳定运行. 经过(在 linux 上)测试并支持所有现行 PHP 分支的最新发布版本 X[……] 阅读全文 Read More
如何获取LAMP,LNMP环境编译参数配置 By duncan21Posted on 2015 年 1 月 3 日2015 年 1 月 5 日Posted in LinuxTagged 配置参数 查看nginx的编译参数: [root@localhost ~]# /application/nginx/sbin/nginx -V nginx version: nginx/1.6.2[......]阅读全文 Read More
如何让grep的输出字符有色彩 By duncan21Posted on 2014 年 12 月 23 日2015 年 1 月 4 日Posted in LinuxTagged grep 在全局变量下加入以下代码: alias grep=’grep –color=auto’ 出自grep的官方文档 --color[=WHEN], --colour[=WHEN] u[......]阅读全文 Read More
如何防止图片盗链 By duncan21Posted on 2014 年 12 月 20 日2015 年 1 月 4 日Posted in LinuxTagged 盗链 目标: 禁止其他所有网站转载abc.com网站上的gif,jpg,swf等图片和Flash文件,并且当其他网站转载了abc网站的图片后,会返回一个提示图片禁止转载 环境: [root@mys[......]阅读全文 Read More
解决service mysql3306 does not support chkconfig错误 By duncan21Posted on 2014 年 12 月 15 日2015 年 1 月 4 日Posted in Linux, MySqlTagged chkconfig 今天,在安装MySQL多实例的时候遇到这个问题,让MySQL支持开机自启动,但是出现下面的错误提示: root@localhost ~]# chkconfig –add mysql3306[……] 阅读全文 Read More
查看和修改Linux字符集 By duncan21Posted on 2014 年 12 月 14 日2015 年 1 月 4 日Posted in LinuxTagged 字符集 环境: [root@mysql ~]# cat /etc/redhat-release CentOS release 6.3 (Final) 查看 [root@mysql ~]# echo[......]阅读全文 Read More
linux运维正则表达式技术分享 By duncan21Posted on 2014 年 10 月 7 日2015 年 1 月 4 日Posted in LinuxTagged 正则表达式 linux运维正则表达式实战 1.什么是正则表达式? 简单的说,正则表达式就是一套处理大量的字符串而定义的规则和方法。 例如:假设 @代表12345 通过正则表达式这些特殊符号,我们可[......]阅读全文 Read More
inode满了 By duncan21Posted on 2014 年 9 月 26 日2015 年 1 月 4 日Posted in LinuxTagged inode 硬盘没有满,是inode用完了,导致文件不能写进硬盘 找出不需要的文件,并且删掉 find / -size 0 -print?? 找到0字节的文件或者看看邮件是[……] 阅读全文 Read More
解决perl命令执行或编译问题 By duncan21Posted on 2014 年 9 月 10 日2015 年 1 月 4 日Posted in LinuxTagged perl编译 解决perl命令执行或编译问题: 执行如下命令时 报错: [root@oldboyetc]# perl -pi -e ‘s|^passwd:???? files|passwd:???? files[……] 阅读全文 Read More
linux修改最大文件链接数 By duncan21Posted on 2014 年 8 月 2 日2015 年 1 月 4 日Posted in LinuxTagged ulimitNo Comments on linux修改最大文件链接数 linux修改最大文件链接数open files/ulimit -n 使用ulimit -a 可以查看当前系统的所有限制值,使用ulimit -n 可以查看当前的最大打开文件数。 新装的l[……] 阅读全文 Read More
[转]nagios自带插件check_http详解及用法实例 By duncan21Posted on 2014 年 8 月 1 日2015 年 3 月 21 日Posted in LinuxTagged check_http 作用: 检测指定主机上的http服务,可以是http或者https,可以重定向,查找字符串,正则表达式,检测链接次数,证书过期时间。 用法: check_http?-H?<vhost>[……] 阅读全文 Read More
linux下管理员强行踢出用户的命令使用方法 By duncan21Posted on 2014 年 7 月 5 日2015 年 1 月 4 日Posted in LinuxNo Comments on linux下管理员强行踢出用户的命令使用方法 linux强制踢出用户命令: 一、输入w命令查看已登录用户信息 [root@KW_S01_192.168.1.106_A ~]# w 19:22:31 up 2:11, 3 users,[……] 阅读全文 Read More
Linux中的 >/dev/null 2>&1 是什么意思 By duncan21Posted on 2014 年 6 月 23 日2015 年 1 月 4 日Posted in LinuxTagged /dev/nullNo Comments on Linux中的 >/dev/null 2>&1 是什么意思 在一些Shell脚本中,特别是Crontab的脚本中,经常会看到 >/dev/null 2>&1这样的写法。 其实这个很好理解。我们分两部分解释。 1.?>/dev/nu[……] 阅读全文 Read More
linux下快速清空文本文件中的内容 By duncan21Posted on 2014 年 6 月 19 日2015 年 1 月 4 日Posted in LinuxNo Comments on linux下快速清空文本文件中的内容 1.[root@desktop?huage]#?:?>?filename :是一个占位符,不会产生任何输入 ? 2.[root@desktop?huage]#?>?filename [……] 阅读全文 Read More
SecureRDP 这是个做运维的好东西 By duncan21Posted on 2014 年 4 月 12 日2015 年 3 月 21 日Posted in LinuxTagged SecureRDP SecureRDP是一款国外的软件,可以用该软件限制远程桌面登录的计算机名、MAC、IP,指定的才能登陆服务器的远程桌面,否则一律拒绝,支持Windows2003服务器操作系统,暂不支持Windows[……] 阅读全文 Read More
linux下查看用户信息相关命令 By duncan21Posted on 2014 年 4 月 4 日2015 年 1 月 4 日Posted in LinuxTagged 用户No Comments on linux下查看用户信息相关命令 一, w命令 该命令用于显示登录到系统的用户情况,w命令功能强大,它不但可以显示有谁登录到系统,还可以显示出这些用户当前正在进行的工作,并且统计数据相对who命令来说更加详细和科 学.[……] 阅读全文 Read More
linux下hosts.deny和hosts.allow应用 By duncan21Posted on 2014 年 4 月 4 日2015 年 1 月 4 日Posted in LinuxTagged hosts.allow, hosts.denyNo Comments on linux下hosts.deny和hosts.allow应用 /etc/hosts.allow和/etc/hosts.deny两个文件是控制远程访问设置的,通过他可以允许或者拒绝某个ip或者ip段的客户访问linux的某项服务。 比如SSH服务,我们通常只[……] 阅读全文 Read More
linux下crontab命令 By duncan21Posted on 2014 年 4 月 2 日2023 年 3 月 22 日Posted in LinuxTagged crontabNo Comments on linux下crontab命令 安装crontab: yum install crontabs 说明: /sbin/service crond start //启动服务 /sbin/service crond stop[……] 阅读全文 Read More
cPanel设置自定义404错误页的方法? By duncan21Posted on 2014 年 4 月 2 日2015 年 1 月 4 日Posted in LinuxTagged cpaanel自定义404页面No Comments on cPanel设置自定义404错误页的方法? 利用这个cpanel的错误页工具,你就可以定制错误页面了。设置自定义404错误页,有两种简单的方法。 一,利用cpanel后台控制面板添加设置404自定义错误页的方法 步骤 1、登录cP[……] 阅读全文 Read More
Cpanel如何设置index”缺省首页”? By duncan21Posted on 2014 年 4 月 2 日2015 年 1 月 4 日Posted in LinuxTagged Cpanel设置indexNo Comments on Cpanel如何设置index”缺省首页”? 现在我想增加index.htm与index.php为缺省首页,应该如何加? cpanel控制面板,如何设置网站默认首页index.html htm php的次序? 国外很多带有cpanel[……] 阅读全文 Read More