CentOS4.4(32位)完美安装过程

http://tech.ddvip.com   2007年02月27日    社区交流

本文详细介绍CentOS4.4(32位)完美安装过程

  quotaon -avug

  to enable quota.

8 Install A Chrooted DNS Server (BIND9)

  To install a chrooted BIND9, we do this:

  yum install bind-chroot

  Then do this:

  chmod 755 /var/named/

  chmod 775 /var/named/chroot/

  chmod 775 /var/named/chroot/var/

  chmod 775 /var/named/chroot/var/named/

  chmod 775 /var/named/chroot/var/run/

  chmod 777 /var/named/chroot/var/run/named/

  cd /var/named/chroot/var/named/

  ln -s ../../ chroot

  chkconfig --levels 235 named on

  /etc/init.d/named start

  BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.).

9 MySQL (4.1)

  To install MySQL, we do this:

  yum install mysql mysql-devel mysql-server

  The MySQL init script on CentOS might cause problems when you try to restart MySQL. In some cases it tries to start MySQL before the old MySQL process has stopped which leads to a failure. The solution is to edit the restart section of /etc/init.d/mysqld and add a few seconds delay between the stop and the start of MySQL.

  Edit /etc/init.d/mysqld:

  vi /etc/init.d/mysqld

  and change this section:

restart(){
  stop
  start
}

  so that it looks like this:

restart(){
  stop
  sleep 3
  start
}

  This adds a three second delay between the stop and start of MySQL.

作者:till on Wed    责编:豆豆技术应用

正在加载评论...