VMware Images:
|
The Perfect Setup - CentOS 4.3 (64-bit) - Page 4
6 QuotaTo install quota, we run this command: yum install quota Edit /etc/fstab and add ,usrquota,grpquota to the / partition (/dev/VolGroup00/LogVol00): vi /etc/fstab
Then run touch /aquota.user /aquota.group to enable quota.
7 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/ BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.).
8 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:
so that it looks like this:
This adds a three second delay between the stop and start of MySQL. Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server: chkconfig --levels 235 mysqld on Now check that networking is enabled. Run netstat -tap It should show a line like this:
If it does not, edit /etc/my.cnf and comment out the option skip-networking: vi /etc/my.cnf
and restart your MySQL server: /etc/init.d/mysqld restart Run mysqladmin -u root password yourrootsqlpassword to set a password for the user root (otherwise anybody can access your MySQL database!).
|




print: 
Recent comments
3 hours 9 min ago
14 hours 13 sec ago
14 hours 59 min ago
16 hours 28 min ago
18 hours 17 min ago
20 hours 18 min ago
21 hours 56 min ago
22 hours 54 min ago
1 day 1 hour ago
1 day 1 hour ago