I. Preparations before installation and description of the required source code package: Ghost (the source code package is from the Internet, you can download it if necessary) linux Operating Platform Enterprise 5.4, IP address 192.168.101.222, the domain name is abc. com1,
I. Preparations and instructions before installation
Required source code package: Ghost (the source code package is from the Internet. You can download it if necessary)
Linux Operating Platform Enterprise 5.4, IP address 192.168.101.222, domain name: abc.com
1. Set up a DNS server:
[Root @ Eleven ~] # Mkdir/mnt/cdrom
[Root @ Eleven ~] # Mount/dev/cdrom/mnt/cdrom/
Mount: block device/dev/cdrom is write-protected, mounting read-only
Edit yum
[Root @ Eleven ~] # Vim/etc/yum. repos. d/rhel-debuginfo.repo
[Root @ Eleven ~] # Cd/mnt/cdrom/Server/
[Root @ Eleven Server] # yum install bind-chroot caching-nameserver-y
[Root @ Eleven Server] # cd/var/named/chroot/etc/
[Root @ Eleven etc] # cp-p named. caching-nameserver.conf named. conf
[Root @ Eleven etc] # vim named. conf
(Red indicates the modified content)
Modify the region declaration File
[Root @ Eleven etc] # vim named. rfc1912.zones
Generate Database
[Root @ Eleven etc] # cd ../var/named/
[Root @ Eleven named] # cp-p localhost. zone abc.com. db
[Root @ Eleven named] # vim abc.com. db
Modify to the following content:
Modify vim/etc/resolv. conf
Modify host name:
Vim/etc/sysconfig/network
Restart system: init 6
[Root @ mail ~] # Service named start
Starting named: [OK]
[Root @ mail ~] # Chkconfig named on
DNS Installation Complete
2. Install the required rpm package, which includes the following:
[Root @ mail ~] # Mount/dev/cdrom/mnt/cdrom/
Mount: block device/dev/cdrom is write-protected, mounting read-only
[Root @ mail ~] # Yum install-y httpd mysql-server mysql-devel openssl-devel dovecot perl-DBD-MySQL tcl-devel libart_lgpl libart_lgpl-devel libtool-ltdl-devel skip CT
3. Disable sendmail and disable it with the Automatic startup function of the system:
[Root @ mail ~] # Service sendmail stop
[Root @ mail ~] # Chkconfig sendmail off
4. Install the rpm package used for the following development:
Development Libraries
Development Tools
Legacy Software Development
X Software Development
Run the command yum grouplist to view the information. If no command is available, run the command yum groupinstall "packge_group_name"
5. Start the mysql database and set the password for the root user of mysql:
[Root @ mail ~] # Service mysqld start
[Root @ mail ~] # Chkconfig mysqld on
Set the new password to "RedHat". Because there is no old password, press Enter when you need to enter the old password.
[Root @ mail ~] # Mysqladmin-u root password 'redhat'
Yes.
--------------------------------- Authorize a local user
Set password for root @ 'localhost' = PASSWORD ('redhat ');
Set password for root @ '2014. 0.0.1 '= PASSWORD ('redhat ');
Flush privileges; # Make the modification take effect
------------------------------- Authorize a remote user
Grant all privileges on *. * TO root @ '%' identified by 'redhat ';
Flush privileges;