close

skip installed steps...

[change YUM's mirror to 義守's ftp]

reference: http://apt.nc.hcc.edu.tw/web/student_server_centos/student_server_centos.html#update

steps:

> cd /etc/yum.repos.d/

> cp CentOS-Base.repo CentOS-Base.repo.bak

> vim CentOS-Base.repo

 

 comment CentOS-Base.repo 裡 [base],[update],[addons],[extras],...等中的mirrorlist,

 uncomment baseurl,

    並改變

 baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

    為 

 baseurl=http://ftp.cse.yzu.edu.tw/pub/CentOS/$releasever/updates/$basearch/

 

[update PHP 5.1 to the latest version]

reference: http://centos.blog.oni.tw/2010/05/centos54yum.html

steps:

> cd /etc/yum.repos.d/

> cp CentOS-Base.repo CentOS-Base.repo.bak

> vim CentOS-Base.repo

 

在CentOS-Base.repo 最底部空白處填入以下:

 [c5-testing]

 name=CentOS-5 Testing

 baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/

 enabled=0

 gpgcheck=1

 gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

更新 php

> yum --disablerepo=\* --enablerepo=c5-testing install php

更新 php-mcrypt

> yum --disablerepo=\* --enablerepo=c5-testing install php-mcrypt

 

[setup Mysql Admin's password first]

reference: http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=1875

mysqladmin -u root password your-new-password

 

[servers start/restart/stop]

$1: your server (ex: httpd, mysqld, vsftpd, ..., etc)

Server Start:

/etc/init.d/$1 start

Server Restart:

/etc/init.d/$1 restart

Server Stop:

/etc/init.d/$1 stop

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 膩撐 的頭像
    膩撐

    哈宅哈宅

    膩撐 發表在 痞客邦 留言(0) 人氣()