Minimal CentOS6.7 (64bit) Installation of mysql5.5, jdk, tomcat, centos6.7mysql5.5
* ******* Mysql ********
Bytes ----------------------------------------------------------------------------------------------------------------
Required rpm file:
Https://downloads.mysql.com/archives/community)
MySQL-client-5.5.48-1.linux2.6.x86_64.rpm
MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
Bytes ----------------------------------------------------------------------------------------------------------------
Steps:
1. Upload MySQL-server-5.5.48-1.linux2.6.x86_64.rpm, MySQL-client-5.5.48-1.linux2.6.x86_64.rpm to Linux
2. Install the MySQL-server-5.5.48-1.linux2.6.x86_64.rpm with rpm commands, without perl Dependencies
Rpm-ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
Solution
[Root @ xcldtc5m mysql] # yum install libaio
[Root @ xcldtc5m mysql] # yum install perl
3. Install MySQL-server again. The rpm package conflict.
Rpm-ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
4. Uninstall the conflicting rpm package
Rpm-e mysql-libs-5.1.73-5.el6_6.x86_64 -- nodeps
5. Install MySQL-client and MySQL-server again.
Rpm-ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm
The installation is successful. The following message is displayed:
Please remember to set a password for the MySQL root USER!
To do so, start the server, then issue the following commands:
/Usr/bin/mysqladmin-u root password 'new-password'
/Usr/bin/mysqladmin-u root-h shizhan01 password 'new-password'
Alternatively you can run:
/Usr/bin/mysql_secure_installation6. Start the mysql service.
Service mysql start7. Prompt that the mysql client Is Not Installed
Rpm-ivh MySQL-client-5.5.48-1.linux2.6.x86_64.rpm
8. Start the MySQL service and initialize MySQL
Service mysql start
/Usr/bin/mysql_secure_installation
9. Test MySQL
Mysql-u root-p root
* ******** Jdk ************
----------------------------------------------------------------------
Jdk-7u45-linux-x64.tar.gz
---------------------------------------------------------------------
1. Upload jdk-7u45-linux-x64.tar.gz to Linux.
2. Decompress jdk to the/root/apps directory.
Mkdir apps
Jdk-7u45-linux-x64.tar.gz-C/root/apps/tar-zxvf/
3. Set environment variables and append relevant content to the/etc/profile file.
Vi/etc/profile
Export JAVA_HOME =/root/apps/jdk1.7.0 _ 45 Export PATH = $ PATH: $ JAVA_HOME/bin |
4. Refresh Environment Variables
Source/etc/profile
5. Test whether java commands are available
Java-version
* ******* Tomcat **********
-------------------------------------------------------------
Apache-tomcat-7.0.68.tar.gz
----------------------------------------------------------------
1. Upload apache-tomcat-7.0.68.tar.gz to Linux.
2. Unzip tomcat
Apache-tomcat-7.0.68.tar.gz-C/root/apps/tar-zxvf/
3. start tomcat
/Root/apps/apache-tomcat-7.0.68/bin/startup. sh
4. Check whether the tomcat process is started.
Jps
5. View tomcat process Port
Netstat-anpt | grep 2465
6. Access tomcat through a browser
Http: // 192.168.0.101: 8080/