Original http://www.mysqlsupport.cn/linux_install_base/
Author: Wu Bingxi Source: http://www.mysqlsupport.cn/contact information: wubingxi # gmail.com reprint please indicate/translator and source, and cannot be used for commercial purposes, offenders must investigate.
This document is only used for general Server installation, and other dedicated server installation is for reference only.
System installation steps:
1) Enter Linux text and select text installation mode.
2) select English as the language environment during installation.
3) Select us as the keyboard type.
4) Select No-mouse.
5) select Custom as the installation type.
6) set the partition:
/Dev/SDA
/Dev/sda1 512 M ext3/boot
/Dev/sda2 5g ext3/home
/Dev/sda3 3G ext3/
/Dev/sda4 extended
/Dev/sda5 5g ext3/var
/Dev/sda6 2G ext3 swap
/Dev/sda7 residual space/Data
7) Use GRUB boot loader.
8) No parameter is added in the boot loader configuration.
9) do not set a password for boot loader.
10) set boot loader to start Linux.
11) install the boot loader on the hard disk MBR.
12) configure the network card according to the allocated IP address.
/Etc/sysconfig/network-scripts/
# Ls ifcfg -*
Ifcfg-eth0 ifcfg-eth1 ifcfg-Lo
Edit File
/Sbin/service network restart
13) The host name depends on the situation. It is scheduled to be a web-number, and the number is the last three digits of the IP address.
14) set the security level of the firewall to no firewall and disable SecLinux
15) English (USA) and Chinese (p.r. of China) are supported ).
16) the default language is English (USA ).
17) Select Asia/Shanghai as the time zone.
18) the root password is RedHat.
19) Use shadow passwords and enable MD5 passwords are enabled for authentication configuration.
20) Select package group:
@ Editors
@ Text-based Internet
@ Server configuration tools
@ Development tools
@ Kernel development
@ Adminitools
@ System Tools
21) You do not need to create a boot diskette.
22) configure the display option to specify the text mode at startup.
OS installation is complete.
Post-installation Configuration
1) Disable SSH1 Logon
VI/etc/ssh/sshd_config
# Port 22
# Protocol 2, 1
Change
Port 22
Protocol 2
2) more than the Service is Disabled
Rm/etc/rc. d/rc3.d/*-RF
Chkconfig network on
Chkconfig rsync on
Chkconfig sshd on
Chkconfig syslog on
Chkconfig crond on
Chkconfig xinetd on
Add your own services as needed.
3) restrict logon IP addresses
VI/etc/hosts. Allow
Join
ALL: IP.: Allow
ALL: All: deny
The IP address is the IP address that allows access to the management. Of course, this file does not need to be used.
4) timed synchronization time
Crontab-e
Join
0 0 * rdate-s time-a.nist.gov
Or
10 03 ***/usr/sbin/ntpdate-u tick.ucla.edu tock.gpsclock.com ntp.nasa.gov timekeeper.isi.edu usno.pa-x.dec.com
5) Disable Ipv6
Echo "alias net-pf-10 off">/etc/modprobe. conf. Dist