1. JDK Installation
Note: RPM and software-related commands are equivalent to software Assistant management software under Windows
Steps:
1) See if the current Linux system has Java installed
Input Rpm-qa | grep java
1) Uninstall two X OpenJDK
Enter RPM-E--nodeps software to uninstall
1) upload JDK to Linux
2) Install the required plugin for JDK operation Yum Install glibc.i686 (optional)
3) Unzip the JDK to/usr/local under TAR–XVF jdk-7u71-linux-i586.tar.gz–c/usr/local
4) Configure the JDK environment variable, open the/etc/profile configuration file, and 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
5) Reload the/etc/profile configuration file Source/etc/profile
2. MySQL Installation
Steps:
1) View the MySQL that comes with CentOS
Input Rpm-qa | grep MySQL
1) Uninstall your own MySQL
1) upload MySQL to Linux
2) Install MySQL dependency (optional)
Yum-y Install libaio.so.1 libgcc_s.so.1 libstdc++.so.6
Yum Update libstdc++-4.4.7-4.el6.x86_64
3) Unzip MySQL to/usr/local/under 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
4) 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
5) Start MySQL
Service MySQL Start
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.
Msyql–u root-p
1) Modify the MySQL password
Set password = password (' root ');
2) 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;
3) 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
3. Tomcat installation
Steps:
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
Enter Tomcat under the bin to close:./shutdown.sh
Linux-jdk-mysql-tomcat Installation