One, JDK installation
1 To see if the current Linux system has a JDK installed
Input Rpm-qa | grep java
If you have:
Uninstall two openjdk, enter rpm-e--nodeps software to uninstall
2, upload jdk to Linux
3, install the JDK run required plug-in yum install glibc.i686 (optional)
4, unzip the JDK to/usr/local under TAR–XVF jdk-7u71-linux-i586.tar.gz–c/usr/local
5, configure the JDK environment variable, open the/etc/profile configuration file, copy the configuration below
#set Java Environment
Java_home=/usr/local/jdk1.7.0_71
Classpath=.: $JAVA _home/lib.tools.jar
Path= $JAVA _home/bin: $PATH
Export Java_home CLASSPATH PATH
6. Reload the/etc/profile configuration file Source/etc/profile
7. Verify that the installation is successful
Two, MySQL installation
1. See if CentOS comes with MySQL
Input Rpm-qa | grep MySQL
If you have: delete your own MySQL
2, upload MySQL to Linux
3. Install MySQL dependency (optional)
Yum-y Install libaio.so.1 libgcc_s.so.1 libstdc++.so.6
An error occurred after adding:--setopt=protected_multilib=false
Yum Update libstdc++-4.4.7-4.el6.x86_64
4, unzip MySQL to/usr/local/MySQL directory (MySQL directory needs to be created manually) within
Cd/usr/local
mkdir MySQL
TAR-XVF mysql-5.6.22-1.el6.i686.rpm-bundle.tar-c/usr/local/mysql
5, install MySQL under/usr/local/mysql
Install server side: RPM-IVH mysql-server-5.6.22-1.el6.i686.rpm
Install client: RPM-IVH mysql-client-5.6.22-1.el6.i686.rpm
An error occurred after adding:--nodeps--force
6, add MySQL to the system service and set the boot up
Join the system service: Chkconfig--add MySQL
Auto start: Chkconfig MySQL on
7, log in to MySQL
MySQL will generate a temporary random password when it is installed, and the storage location is/root/.mysql_secret.
If the following error occurs when logging in, it is missing libncurses.so.5
Yum Install libncurses.so.5
Enter the password that MySQL randomly generated and log in successfully:
8. Modify the MySQL password
The following prompt appears:
MySQL lets you modify the initial password:
Set password = password (' 123456 ');
After changing the password you can use:
9. Open remote login for MySQL
MySQL is not supported by default in MySQL for security purposes, so you need to set the right to log on to MySQL remotely.
After logging in to MySQL, enter the following command:
Grant all privileges on * * to ' root ' @ '% ' identified by ' root ';
Flush privileges;
10, open Linux port 3306 for external access
/sbin/iptables-i input-p TCP--dport 3306-j ACCEPT
/etc/rc.d/init.d/iptables Save---Persist changes to the firewall
Remote connection:
Three, Tomcat installation
1, upload tomcat to Linux
2, unzip Tomcat to/usr/local
3, open Linux port 8080 for external access
/sbin/iptables-i input-p TCP--dport 8080-j ACCEPT
/etc/rc.d/init.d/iptables Save
4, start off Tomcat
Enter Tomcat under the bin to start:./startup.sh
Access success:
Enter Tomcat under the bin to close:./shutdown.sh
Software Installation (JDK+MYSQL+TOMCAT)