![]() |
| 当前位置: > 首页 ->Linux技术 ->发行版专区 ->CentOS ->CentOS4.4(32位)完美安装过程 |
|
Then run touch /aquota.user /aquota.group 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/ 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:
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!). 10 Postfix With SMTP-AUTH And TLSNow we install Postfix and dovecot (dovecot will be our POP3/IMAP server): yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot Next we configure SMTP-AUTH and TLS: postconf -e 'smtpd_sasl_local_domain =' We must edit /usr/lib/sasl2/smtpd.conf so that Postfix allows PLAIN and LOGIN logins. On a 64Bit Centos 4.4 you must edit the file /usr/lib64/sasl2/smtpd.conf instead. It should look like this: vi /usr/lib/sasl2/smtpd.conf
mkdir /etc/postfix/ssl 上一篇:centos配置 apache、php、jdk、resin 下一篇:CentOS安装及初始环境设置 | ||||||||||||||||||||||||||||||||||
| 【文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论】 | |||||||||||||||||||||||||||||||||||
| ·用SSH客户端软件登录到服务器 | ·CentOS下用OpenSSH构建SSH服务器 ·入侵监测系统的构建(chkrootkit ) ·在CentOS 4.4上安装配置OpenVZ ·使用Bastille完美加固CentOS Linux系统 ·CentOS系统安装后的初始环境设置 ·CentOS安装及初始环境设置 ·CentOS4.4(32位)完美安装过程 ·centos配置 apache、php、jdk、resin ·《社区企业操作系统》(CentOS (Community|||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||
|
声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|||||||||||||||||||||||||||||||||||