<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Greensun的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fujs999</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fujs999]]></copyright><item><title><![CDATA[wordpress多站点（MU）用二级域名(SUBDOMAIN)的单点登录（SSO）问题]]></title><link>https://blog.csdn.net/fujs999/article/details/7726357</link><guid>https://blog.csdn.net/fujs999/article/details/7726357</guid><author>fujs999</author><pubDate>Sun, 08 Jul 2012 13:25:44 +0800</pubDate><description><![CDATA[我将我的wordpress多站点从子目录（subdirectory）改为子域名（subdomain）后，希望用户能够在多站点间实现单点登录（SSO），但是始终不能实现。cookie不能共享。经仔细查看代码，发现在ms-default-constants.php文件中有如下代码：
/**
* @since 2.6.0
*/
if ( !defined( 'ADMIN_COOKIE_PATH']]></description><category></category></item><item><title><![CDATA[如何查看Linux下系统占用的资源(top、free、uptime)]]></title><link>https://blog.csdn.net/fujs999/article/details/7402443</link><guid>https://blog.csdn.net/fujs999/article/details/7402443</guid><author>fujs999</author><pubDate>Wed, 28 Mar 2012 12:48:10 +0800</pubDate><description><![CDATA[top
1.作用
top命令用来显示执行中的程序进程，使用权限是所有用户。
2.格式
top [－] [d delay] [q] [c] [S] [s] [i] [n]
3.主要参数
d：指定更新的间隔，以秒计算。
q：没有任何延迟的更新。如果使用者有超级用户，则top命令将会以最高的优先序执行。
c：显示进程完整的路径与名称。
S：累积模式，会将己完成或消失的子行程的CPU时间]]></description><category></category></item><item><title><![CDATA[Linux系统下如何查看物理内存占用率]]></title><link>https://blog.csdn.net/fujs999/article/details/7402250</link><guid>https://blog.csdn.net/fujs999/article/details/7402250</guid><author>fujs999</author><pubDate>Wed, 28 Mar 2012 11:38:23 +0800</pubDate><description><![CDATA[Linux下看内存和CPU使用率一般都用top命令，但是实际在用的时候，用top查看出来的内存占用率都非常高，如：
Mem:   4086496k total, 4034428k used,    52068k free,   112620k buffers
Swap: 4192956k total,   799952k used, 3393004k free, 1831700k cached]]></description><category></category></item><item><title><![CDATA[各种服务器raid监控]]></title><link>https://blog.csdn.net/fujs999/article/details/7392920</link><guid>https://blog.csdn.net/fujs999/article/details/7392920</guid><author>fujs999</author><pubDate>Sun, 25 Mar 2012 21:11:53 +0800</pubDate><description><![CDATA[对于 HP ProLiant DL360 G4p 服务器 (ns6.dns-diy)。

RAID控制器是 Smart Array 6i 。 从网站上下载了基于web的HP管理平台。

参考设置：
Linux 系统下安装阵列配置工具 
http://www.icare.hp.com.cn/TechCenter_StaticArticle/32481/32481.html]]></description><category></category></item><item><title><![CDATA[Centos(Linux)操作系统下使用MegaCli等工具查看Raid磁盘阵列状态]]></title><link>https://blog.csdn.net/fujs999/article/details/7391619</link><guid>https://blog.csdn.net/fujs999/article/details/7391619</guid><author>fujs999</author><pubDate>Sun, 25 Mar 2012 02:07:35 +0800</pubDate><description><![CDATA[以下是组建服务器raid时查到的资料，做下笔记，没兴趣的朋友请无视。

最新下载地址： http://www.lsi.com/Search/?terms=MegaCLI&x=12&y=11

http://www.lsi.com/DistributionSystem/AssetDocument/support/downloads/megaraid/miscellaneous/linux/2]]></description><category></category></item><item><title><![CDATA[Nginx 目录自动加斜线”/”]]></title><link>https://blog.csdn.net/fujs999/article/details/7354982</link><guid>https://blog.csdn.net/fujs999/article/details/7354982</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 22:23:37 +0800</pubDate><description><![CDATA[最近lnmp一键安装包的部分用户反映在访问http://www.lnmp.org/phpmyadmin时，因为域名结尾没有加斜线”/”而造成无法访问。

原来使用的自动添加斜线”/”的解决方法,通过查询Nginx wiki找到了更好的解决方法:

在nginx.conf中

http{
...
server_name_in_redirect off;   //自动添加斜线”/”语句]]></description><category></category></item><item><title><![CDATA[安装apc为php加速]]></title><link>https://blog.csdn.net/fujs999/article/details/7354765</link><guid>https://blog.csdn.net/fujs999/article/details/7354765</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 21:39:09 +0800</pubDate><description><![CDATA[Alternative PHP Cache（APC）是 PHP 的一个免费公开的优化代码缓存。它用来提供免费，公开并且强健的架构来缓存和优化 PHP 的中间代码。
主要是加速PHP..
WordPress是一个占用内存的大户,而且执行效率比较低..
我安装了APC后,VPS的整体内存降了30M左右吧..
下面是安装方法:


wget http://pecl.php.net/get/]]></description><category></category></item><item><title><![CDATA[删除mysql日志，删除mysql-bin.0000*类似的文件]]></title><link>https://blog.csdn.net/fujs999/article/details/7351688</link><guid>https://blog.csdn.net/fujs999/article/details/7351688</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 09:54:28 +0800</pubDate><description><![CDATA[登录
/usr/local/mysql/bin/mysql -u root -p

输入密码
reset master;
 

修改/etc/my.cnf 文件
log-bin=mysql-bin
binlog_format=mixed
 
再这两行前面加上 # ，将其注释掉
 

执行
/etc/init.d/mysql restart]]></description><category></category></item><item><title><![CDATA[TAR命令参数详解]]></title><link>https://blog.csdn.net/fujs999/article/details/7351289</link><guid>https://blog.csdn.net/fujs999/article/details/7351289</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 01:01:40 +0800</pubDate><description><![CDATA[TAR
命令名
tar - tar 档案文件管理程序的 GNU 版本。下面将逐个介绍其含义 
总览
tar [ - ] A --catenate --concatenate | c --create | d --diff --compare | r --append | t --list | u --update | x -extract --get [ --atime-preserve]]></description><category></category></item><item><title><![CDATA[tar命令如何排除(不包含)文件或目录]]></title><link>https://blog.csdn.net/fujs999/article/details/7351288</link><guid>https://blog.csdn.net/fujs999/article/details/7351288</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 01:00:47 +0800</pubDate><description><![CDATA[tar cvzf data.tar.gz --exclude=/data/web/aaa --exclude=/data/web/bbb /data/web/


另一种方法，先建立一个文件excludefile，里面写好
/data/web/aaa
/data/web/bbb


然后tar命令这样：
tar cvzf data.tar.gz --exclude-from /d]]></description><category></category></item><item><title><![CDATA[linux下apc安装指南]]></title><link>https://blog.csdn.net/fujs999/article/details/7351262</link><guid>https://blog.csdn.net/fujs999/article/details/7351262</guid><author>fujs999</author><pubDate>Wed, 14 Mar 2012 00:40:01 +0800</pubDate><description><![CDATA[Alternative PHP Cache (APC)是一种对PHP有效的开放源高速缓冲储存器工具，它能够隐藏编辑的脚本。
所以对于后来命令，如果它已经改变了，PHP只能重新编辑脚本。 
主要是加速PHP 
下载地址http://pecl.php.net/package/APC
解压 安装
/usr/local/php/bin/phpize
./configure --enable-a]]></description><category></category></item><item><title><![CDATA[Linux防火墙iptables配置详解]]></title><link>https://blog.csdn.net/fujs999/article/details/7350979</link><guid>https://blog.csdn.net/fujs999/article/details/7350979</guid><author>fujs999</author><pubDate>Tue, 13 Mar 2012 22:52:11 +0800</pubDate><description><![CDATA[iptables官方网站：http://netfilter.org/

数据包经过防火墙的路径禁止端口强制访问某站点发布内部网络服务器智能DNS端口映射通过NAT上网IP规则的保存与恢复iptables指令语法iptables实例
数据包经过防火墙的路径
图1比较完整地展示了一个数据包是如何经过防火墙的，考虑到节省空间，该图实际上包了三种情况：
来自外部，以防火墙（本机）为目的地的包，在]]></description><category></category></item><item><title><![CDATA[Linux字符集的修改方法]]></title><link>https://blog.csdn.net/fujs999/article/details/7350814</link><guid>https://blog.csdn.net/fujs999/article/details/7350814</guid><author>fujs999</author><pubDate>Tue, 13 Mar 2012 22:04:36 +0800</pubDate><description><![CDATA[用export LANG=zh_CN.UTF-8这样只下次重起又要重设置
修改 /etc/sysconfig/i18n 文件，如 

LANG="en_US"，xwindow会显示英文界面， 

LANG="zh_CN.GB18030"，xwindow会显示中文界面。
编辑/etc/sysconfig/i18n这个文件，
LANG="zh_CN.GB18030"
SUPPORTED]]></description><category></category></item><item><title><![CDATA[查看/修改Linux时区和时间]]></title><link>https://blog.csdn.net/fujs999/article/details/7350800</link><guid>https://blog.csdn.net/fujs999/article/details/7350800</guid><author>fujs999</author><pubDate>Tue, 13 Mar 2012 21:59:59 +0800</pubDate><description><![CDATA[查看/修改Linux时区和时间

　　一、时区

　　1. 查看当前时区

　　date -R

　　2. 修改设置时区

　　方法(1)

　　tzselect

　　方法(2) 仅限于RedHat Linux 和 CentOS

　　timeconfig

　　方法(3) 适用于Debian

　　dpkg-reconfigure tzdata]]></description><category></category></item><item><title><![CDATA[Linux下/etc/resolv.conf 配置DNS客户]]></title><link>https://blog.csdn.net/fujs999/article/details/7350750</link><guid>https://blog.csdn.net/fujs999/article/details/7350750</guid><author>fujs999</author><pubDate>Tue, 13 Mar 2012 21:47:41 +0800</pubDate><description><![CDATA[文件/etc/resolv.conf配置DNS客户，它包含了主机的域名搜索顺序和DNS服务器的地址，每一行应包含一个关键字和一个或多个的由空格隔开的参数。下面是一个例子文件： 

　　search mydom.edu.cn
　　nameserver 210.34.0.14
　　nameserver 210.34.0.2

　　合法的参数及其意义如下：

　　nameserver　表]]></description><category></category></item><item><title><![CDATA[Linux网卡配置]]></title><link>https://blog.csdn.net/fujs999/article/details/7350674</link><guid>https://blog.csdn.net/fujs999/article/details/7350674</guid><author>fujs999</author><pubDate>Tue, 13 Mar 2012 21:35:10 +0800</pubDate><description><![CDATA[Linux网卡配置













 


 




Linux网卡配置（一）网卡配置文件
（1）/etc/sysconfig/network-scripts/ifcfg-interface-name
配置文件ifcfg-interface-name包含了初始化接口所需的大部分详细信息。其中interface-name将根据网卡的类型和排]]></description><category></category></item><item><title><![CDATA[Linux 硬RAID1和不做RAID性能比较]]></title><link>https://blog.csdn.net/fujs999/article/details/7285524</link><guid>https://blog.csdn.net/fujs999/article/details/7285524</guid><author>fujs999</author><pubDate>Thu, 23 Feb 2012 02:04:43 +0800</pubDate><description><![CDATA[测试环境：
OS：CentOS 6.2
CPU：2颗Xeon 1.86GHz 
内存：16G
RAID控制器：LSI SAS1064e


测试结果：
不做RAID：
=====================================================
hdparm
测试磁盘性能（不cache）
hdparm -t /dev/sda
139.43 M]]></description><category></category></item><item><title><![CDATA[Linux：配置SSH安全访问的四个小技巧]]></title><link>https://blog.csdn.net/fujs999/article/details/7285496</link><guid>https://blog.csdn.net/fujs999/article/details/7285496</guid><author>fujs999</author><pubDate>Thu, 23 Feb 2012 01:32:43 +0800</pubDate><description><![CDATA[原文链接：http://www.chinaz.com/Webbiz/Exp/042G12OR010.html

       Linux SSH 安全策略一：关闭无关端口

       网络上被攻陷的大多数主机，是黑客用扫描工具大范围进行扫描而被瞄准上的。所以，为了避免被扫描到，除了必要的端口，例如 Web、FTP、SSH 等，其他的都应关闭。值得一提的是，我强烈建议关闭 icmp 端口]]></description><category></category></item><item><title><![CDATA[linux硬盘速度测试方法]]></title><link>https://blog.csdn.net/fujs999/article/details/7285447</link><guid>https://blog.csdn.net/fujs999/article/details/7285447</guid><author>fujs999</author><pubDate>Thu, 23 Feb 2012 00:44:38 +0800</pubDate><description><![CDATA[进行性能上的测试，主要速度方面的。
1.hdparm 测试结果
#hdparm -tT /dev/sdb1:
Timing cached reads:   5160 MB in  2.00 seconds = 2579.10 MB/sec
Timing buffered disk reads:  488 MB in  3.00 seconds = 162.58 MB/sec
2. cop]]></description><category></category></item><item><title><![CDATA[linux磁盘性能测试]]></title><link>https://blog.csdn.net/fujs999/article/details/7285405</link><guid>https://blog.csdn.net/fujs999/article/details/7285405</guid><author>fujs999</author><pubDate>Thu, 23 Feb 2012 00:05:12 +0800</pubDate><description><![CDATA[120-test:/# apt-get install hdparm


真实机器120上测试结果：


测试磁盘性能（不cache）


120-test:/home/lai# hdparm -t /dev/sda


/dev/sda:
 Timing buffered disk reads:  346 MB in  3.02 seconds = 114.65 MB/]]></description><category></category></item></channel></rss>