I. system conventions
Software source code package storage location:/usr/local/src
Source code package compilation and installation location (prefix):/usr/local/software_name
Script and maintenance program storage location:/usr/local/sbin
MySQL database location:/var/lib/MySQL (can be set as needed)
Apache website root directory:/home/www/wwwroot (which can be set as needed)
Apache VM log root directory:/home/www/logs (can be set as needed)
Apache running account: www
Ii. System Environment deployment and adjustment
1. Check whether the system is normal
# More/var/log/messages (check for system-level error messages)
# Dmesg (check whether the hardware device has an error message)
# Ifconfig (check whether Nic settings are correct)
# Ping www.bkjia.com (check whether the network is normal)
2. disable unnecessary services
# Ntsysv
Only the services to be started are listed below. We recommend that you disable all services not listed:
Atd
Crond
Irqbalance
Microcode_ctl
Network
Sendmail
Sshd
Syslog
3. restart the system
# Init 6
4. Configure vim
# Vi/root/. bashrc
Add a line under alias mv = 'mv-I ': alias vi = 'vim' Save and exit.
# Echo 'syntax on'>/root/. vimrc
5. Use the yum program to install the required development kit (The following is the standard RPM package name)
# Yum install ntp vim-enhanced gcc-c ++ gcc-g77 flex bison autoconf automake bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel kernel
6. Timing correction server clock, timing synchronization with the Chinese National Time Service Center Time Service Server
# Crontab-e
Add a row:
*/30 * ntpdate 210.72.145.44
- 5 pages in total:
- Previous Page
- 1
- 2
- 3
- 4
- 5
- Next Page