wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz
tar -xvf rarlinux-3.9.3.tar.gz
cd rar
make


看见下面这些信息就是安装成功了

mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib

先记住两个常用命令吧:

rar x vpsyou.rar    //解压 vpsyou.rar 到当前目录
rar vpsyou.rar ./vpsyou.com/    //将 vpsyou.com 目录打包为 vpsyou.rar

原文链接:http://www.vpsyou.com/2010/06/15/to-extract-rar-centos.html

mount /dev/xvdd1 /home
echo "/dev/xvdd1              /home                   ext3    defaults        1 2" >> /etc/fstab
vim /etc/ssh/sshd_config
yum install -y screen
screen -S lnmp
wget http://my-lnmp-down.googlecode.com/files/cnmp.sh;sh cnmp.sh
vim /etc/nginx/conf.d/301.conf
server
     {
             listen       80 default;
             rewrite ^/(.*)$ http://www.redthunder.com.cn/$1 permanent;
             access_log  off;
     }

百度上搜到的Joomla的nginx伪静态规则很多都是错的,其实Joomla官方已经提供正确的规则,如下

代码中只有前一个location是伪静态规则,此规则适合2.5.x和3.x版本。

# Support Clean (aka Search Engine Friendly) URLs
        location / {
                try_files $uri $uri/ /index.php?$args;
        }
# deny running scripts inside writable directories
        location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
                return 403;
                error_page 403 /403_error.html;
        }
# caching of files
        location ~* \.(ico|pdf|flv)$ {
                expires 1y;
        }