教育网CentOS如何用IPV6流量更新yum!

教育网好恶心。。V4算流量,很多还是国际。
好在我朝大学都是又IPV6的,可以直接用ipv6更新CentOS的yum源!
[shell]
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.save
wget -6 http://centos.ustc.edu.cn/CentOS-Base.repo
yum update
[/shell]
搞定![......]

继续阅读

vps初始配置

开机,内存使用36M,好强大...

0、更改密码
[shell]
#root登陆后,先更改密码,输入passwd后,连续两次新密码即可
passwd
[/shell]

1、安装vim

[shell]
#默认只有vi,没有vim...囧
yum install vim-enhanced
[/shell]

2、修改PS1
[shell]
vi /root/.bash_profile

# .bash_profile
# Get the aliase[......]

继续阅读

PHP配置APC

APC是一个很好的PHP加速器,比起Xcache来说,速度略逊,但是省内存!

[shell]
#下载、编译
wget http://pecl.php.net/get/APC-3.1.4.tgz
tar -xzvf APC-3.1.4.tgz
cd APC-3.1.4
./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config

#安装、设置
[/shel[......]

继续阅读