Specification for installation and configuration of wireless LINUX
Source: Internet
Author: User
Specification for installation and configuration of wireless LINUX-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Author: zkjian517
V1.0 2006-xx-14
Install
Preparations: obtain the following information: size of the SWAp partition, IP address, mask, gateway, boot loader password, and root password;
1. Partition:/boot: 100 M
Swap: Assume that RAM is m G, IF m = 1 THEN swap = 2g else swap = mG END
/: 2G
/Usr: 6 GB
/Var: 2G
/Home2G
/Tmp 2G
/Opt: all available space
2. Set the boot loader password: see xx linux host security specifications.
3. Configure static IP, Gateway, DNS Server, and hostname
4. Firewall: No Firewall; Enable SELinux? Active
5. language: English (USA), Chinese (P. R. of China)
6. Time Zone: Asia/Shanghai
7. root Password: see xx linux host security specifications.
8. Software Package: X Window System, GNOME Desktop Environment;
Editors;
Text Internet;
Development Tools, X Software Development, Legacy Software Development
Administration Tools, System Tools (net-snmp-utils, sysstat)
Ii. Configuration
1. Initial Configuration: RedHat Login: Select Tell my why...
Why Register? : Select .... Remind me later.
System User: No System User is created.
2. Configure the kernel startup parameters: the kernel line at/boot/group/grub. conf.
DB server: elevator = deadline
WEB server: elevator =
The server has a good RAID card: elevator = noop
Other cases: use the default RHEL4 configuration (elevator = cfq)
3. Create and enter the/opt/software Directory, download the host.tar.gz package from sftp ht-root@software.xx.com:/software, decompress the package, and enter the host directory
4. Configure the default running level: 3
5. Configure time synchronization: a. perform synchronization at a.m. every day with the time server 172.16.0.60.
B. The configuration is completed in the "Configure cron" section.
6. Configure the/etc/hosts file: a. Configuration: # install config/hosts/etc/hosts
B. Verify: # cat/etc/hosts
127.0.0.1 localhost. localdomain localhost
Loghost.xx.com loghost
Software.xx.com software
Backcenter.xx.com backcenter
7. Configure kernel parameters: a. Configuration: # install config/sysctl. conf/etc/sysctl. conf; sysctl-p
B. Verify: # sysctl? P
Net. ipv4.ip _ forward = 0
Net. ipv4.tcp _ syncookies = 1
Net. ipv4.conf. all. rp_filter = 1
Net. ipv4.conf. all. accept_source_route = 0
Net. ipv4.conf. all. accept_redirects = 0
Net. ipv4.tcp _ keepalive_time = 1800
Net. ipv4.tcp _ timestamps = 0
Net. ipv4.tcp _ fin_timeout = 30
Net. ipv4.tcp _ window_scaling = 1
Net. ipv4.tcp _ sack = 0
Net. ipv4.tcp _ max_syn_backlog = 1280
Net. ipv4.tcp _ synack_retries = 2
Net. ipv4.tcp _ syn_retries = 3
Net. ipv4.icmp _ echo_ignore_broadcasts = 1
Net. ipv4.icmp _ ignore_bogus_error_responses = 1
Net. ipv4.ip _ local_port_range = 32768 61000
Kernel. sysrq = 0
Kernel. core_uses_pid = 1
Kernel. ctrl-alt-del = 1
8. configure system logs: a. System logs are stored on the host loghost in a centralized manner, and logs are backed up for 4 weeks locally.
B. Configure: run the script/config_log.sh.
C. Verify: # cat/etc/syslog. conf
*. = Emerg *
*. = Emerg/var/log/emergent. log
*. = Crit; kern. none/var/log/critical. log
Kern. */var/log/kernel. log
Authpriv. */var/log/secure. log
Mail. */var/log/mail. log
Cron. */var/log/cron. log
Local7. */var/log/boot. log
*. Info; mail. none; authpriv. none; cron. none/var/log/messages
*. Info @ loghost
# Cat/etc/logrotate. d/syslog
/Var/log/emergent. log/var/log/critical. log/var/log/kernel. log \
/Var/log/secure. log/var/log/mail. log/var/log/cron. log \
/Var/log/boot. log/var/log/messages {
Sharedscripts
Postrotate
/Bin/kill-HUP 'cat/var/run/syslogd. pid 2>/dev/null' 2>/dev/null | true
Endscript
}
9. script: 1). directory structure:/opt/script/prod: stores strictly tested (in use) scripts
/Opt/script/test: the place where the test script is written.
/Opt/script/temp: the place where the temporary file of the script is stored
/Opt/script/data: the place where the permanent data of the script is stored
2) Benchmark Script: backup. sh backup script
Monitor _ cpu_mem.sh script used to monitor CPU and memory usage of a single system process
App_log_dealwith.sh: script for processing application logs
3) run the script/config_script.sh.
10. Application: 1). Principle: a. All applications are installed in the/opt directory.
B. Create a directory of software under/opt, store the software to be installed, and install the software under this directory.
2). JAVA: a. JAVA_HOME =/opt/java/jdk
B. Establish a connection that complies with/opt/java/jdk and point to/opt/java/jdk-
C. Run the script: script/install_jdk.sh to complete the installation.
3). MySQL: a. MYSQL_HOME =/opt/mysql
B. data File directory:/opt/mysql/data
C. log File directory:/opt/mysql/log
D. configuration file: copy the custom configuration file config/my. conf to/etc /.
E. User: mysql
F. Compilation options: -- prefix =/opt/mysql
-- Sysconfdir =/etc
-- Localstatedir =/opt/mysql/data
-- With-mysqld-user = mysql
-- Enable-largefile
-- With-extra-charsets = gbk
G. startup options: skip-innodb = 1
Log-bin =/opt/mysql/log/mysql-bin
Logs-bin-index =/opt/mysql/log/mysql-bin.index
Log =/opt/mysql/log/access. log
Log-error =/opt/mysql/log/error. log
Pid-file =/opt/mysql/log/mysql. pid
H. Automatic Start Script: Use the MySQL script mysql. server to copy the script.
/Etc/init. d/mysql
I. Run script/install_mysql.sh to complete MySQL installation and configuration.
4). Apache: a. APACHE_HOME =/opt/apache2
B. Data, logs, and configuration file directory: default location
C. Module: authn-basic authn-default authn-file authz-default authz-host
Authz-groupfile authz-user access dir env http log-config mime
Setenvif status cache disk-cache expires file-cache
Headers logio mem-cache mime-magic rewrite so
Worker
(Httpd? L verify the modules installed)
D. MPM mode: worker
E. configuration file: copy the custom configuration file config/httpd. conf to/opt/apache2/conf/. If you need to modify the file, modify it at the corresponding location.
F. Automatic Start script: copy the Custom script/apache. sh to/etc/init. d/apache.
G. Run script/install_apache.sh to complete Apache installation configuration.
5). resin: a. RESIN_HOME =/opt/resin
B. Data, logs, and configuration file directory: default location
C. Compilation options: -- enable-jni -- enable-linux-smp? With-apxs =/opt/apache2/bin/apxs
E. startup options:
F. configuration file: copy the custom configuration file config/resin. conf to/opt/resin/conf/. If you need to modify the file, modify it at the corresponding location.
G. Automatic Start script: copy the Custom script/resin. sh to/etc/init. d/resin.
H. Run script/install_resin.sh to complete the Resin installation configuration.
6). JAVA application: a. Installation Point:/opt/java_app
B. Place each application in the/opt/java_app directory named after the application.
7). Configure the environment variables: a. Add JAVA_HOME, MYSQL_HOME, RESIN_HOME, and APACHE_HOME to/etc/profile.
B. Set $ JAVA_HOME/bin, $ MYSQL_HOME/bin, $ RESIN_HOME/bin,
$ APACHE_HOME/bin Add/etc/profile
C. Run the Custom script/config_env.sh to complete the configuration.
8. Backup: a. Tool: rsync
B. Method: incremental
C. backup Source: all directories except the backup Directory and the java application log directory that do not need to be backed up under the/opt directory
D. Destination: directory on backcenter.xx.com/backup/ <本机的外部ip> ; Local/opt/backup/
E. Time: 05:10 every day (you need to adjust it based on the backup center settings)
F. Run script/config_backup.sh to complete the backup configuration;
9. Configure cron: a. Content: backup; time synchronization; process, DISK, CPU, MEM monitoring; Application Log Processing
B. Run the script/config_cron.sh to complete cron configuration.
10. Configure security: 1). Disable all services except syslog, network, sshd, crond, mysql, resin, and apache.
2). Modify the default sshd port (65522)
3). Firewall: Use the Custom script/my_iptables.sh to copy it to/etc/init. d/my_iptables,
Copy config/my_iptables.conf to/etc/rc. d/, and make the appropriate
Modify and then run chkconfig my_iptables on
4) run script/config_security.sh to complete the security configuration;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service