1, Package download link: Package download password: ADVK
2. Installing the JDK
(1) See if the current Linux system has Java installed, enter Rpm-qa | grep Java;
(2) Uninstall two OpenJDK
(3) Upload JDK to Linux
(4) Install the plugin of the JDK operation required Yum install glibc.i686;
(5) Decompression jdk to/usr/local: TAR–XVF jdk-7u71-linux-i586.tar.gz–c/usr/local;
(6) Configure the JDK environment variable, open the/etc/profile configuration file, copy the configuration below;
1 #set Java Environment 2 java_home=/usr/local/jdk1.7. 0_713 classpath=.: $JAVA _home/Lib.tools.jar 4 path= $JAVA _home/bin: $PATH5
(7) Reload/etc/profile configuration file source/etc/profile;
(8) Use Java, Javac, Java-verison, javac-version and other authentication.
3. Install MySQL
(1) View MySQL from CentOS, enter Rpm-qa | grep MySQL;
(2) Uninstall the self-brought MySQL;
(3) upload MySQL to Linux;
(4) Installation of MySQL dependency
Yum-y Install libaio.so.1 libgcc_s.so.1 libstdc++.so.6yum update libstdc++-4.4.7-4.el6.x86_64
(5) Unzip MySQL to/usr/local/under the MySQL directory (MySQL directory needs to be created manually) inside;
① create the MySQL directory under the/usr/local/directory, using the command:
Cd/usr/local
mkdir MySQL
② unzip MySQL to/usr/local/MySQL directory
(6) Install MySQL under/usr/local/mysql;
① installation Server side: RPM-IVH mysql-server-5.6.22-1.el6.i686.rpm;
② installation client: Rpm-ivh mysql-client-5.6.22-1.el6.i686.rpm.
(7) Start Mysql:service MySQL start
(8) Add MySQL to the system service and set the boot up
① added to System services: Chkconfig--add MySQL;
② auto Start: Chkconfig MySQL on.
(9) Log in to MySQL
Mysql-u root-p
When MySQL is installed, a temporary random password is generated and the storage location is/root/.mysql_secret.
(10) Modify the MySQL password
Set password = password (' root ');
(11) Open remote login for MySQL
MySQL is not supported by default in MySQL for security purposes, so it is necessary to set the permission to log on to MySQL remotely;
After logging in to MySQL, enter the following command:
1 Grant all privileges on * * to ' root ' @ '% ' identified by ' root '; 2 flush privileges;
(12) Ports for external access to open Linux 3306
①/sbin/iptables-i input-p TCP--dport 3306-j ACCEPT
②/etc/rc.d/init.d/iptables Save---Persist changes to the firewall
③ connecting to remote MySQL
4. Tomcat Installation
(1) Upload tomcat to Linux;
(2) Extract Tomcat to/usr/local;
(3) Change the name of the apache-tomcat-7.0.57 directory to Tomcat;
(4) port 8080 for external access to open Linux;
1 /sbin/iptables-i input-p tcp--dport 8080-J ACCEPT2 /etc/rc.d/init.d/iptables Save
(4) Start off Tomcat.
① into Tomcat under the bin start:./startup.sh
② into Tomcat under the bin shutdown:./shutdown.sh
05006_linux JDK, MySQL, tomcat installation