1. Modify SSH Configuration
References:
Http://www.centospub.com/make/sshd.html
Modify command: VI/etc/ssh/sshd_config
Restart the SSH command:/etc/rc. d/init. d/sshd restart
2. Install JDK 6 in Linux
1. Download the jdk rpm package jdk-6u11-linux-i586-rpm.bin from the sun website;
2. Create a Java directory under/USR and copy the jdk-6u11-linux-i586-rpm.bin to the Java directory;
3. Add execution permissions to the jdk-6u11-linux-i586-rpm.bin,
Command: chmod A + x jdk-6u11-linux-i586-rpm.bin
4. Execute:./jdk-6u11-linux-i586-rpm.bin to get the jdk-6u11-linux-i586.rpm
5. Execution: RMP-IVH jdk-6u11-linux-i586.rpm
6. Now, the installation is successful and environment variables are set;
7. To set global environment variables for Linux, you must have the root permission. You can enter Su in the command line to switch to the root user;
8. Modify the etc/profile file and add the followingCode:
# Set Java environment
Export java_home =/usr/Java/jdk1.6.0 _ 11
Export Path = $ java_home/bin: $ java_home/JRE/bin: $ path
Export classpath = $ classpath: $ java_home/lib: $ java_home/JRE/lib
3. install Tomcat 6 in Linux
1. Download the Tomcat file apache-tomcat-6.0.18.tar.gz from the Apache website;
2. Create a tomcat directory under the/usr directory;
3. decompress the apache-tomcat-6.0.18.tar.gz file,
Command tar-xvzf apache-tomcat-6.0.18.tar.gz
4. Modify the etc/profile file and add the following code at the end:
Export tomcat_home =/usr/tomcat
5. If you need to use the manager function, you need to modify the tomcat_home/CONF/tomcat-users.xml file, add
<Role rolename = "manager"/>
<User Username = "admin" Password = "123" roles = "manager"/>
6. Start tomcat, change the command line to the installation directory, and run
./Catalina. Sh Run Command to start Tomcat with Console
./Catalina. Sh start command to start Tomcat without Console
./Startup. Sh start Tomcat without Console
7. Close Tomcat and run
./Shutdown. Sh or./Catalina. Sh stop
8. Test whether Tomcat is successfully installed.
Http: // localhost: 8080
4. centos Network Configuration
Http://www.cublog.cn/u/5948/showart_1285866.html
Restart the network:/etc/init. d/network restart or service network restart
Modify DNS:/etc/resolv. conf to Google 8.8.8.8.
5. Install MySQL nginx
Recommended banquet collectionArticleHttp://blog.s135.com/post/366/
Add gcc-related compilation. Use Yum to modify the yum source.
Yum-y install GCC gcc-C ++ Autoconf libjpeg-devel libpng-devel FreeType-devel libxml2 libxml2-devel zlib-devel glibc-devel glib2 glib2-devel Bzip2 bzip2-devel ncurses- devel curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn-devel OpenSSL-devel OpenLDAP openldap-devel nss_ldap openldap-clients openldap-servers