最小化CentOS6.7(64bit)安裝mysql5.5、jdk、tomcat,centos6.7mysql5.5

來源:互聯網
上載者:User

最小化CentOS6.7(64bit)安裝mysql5.5、jdk、tomcat,centos6.7mysql5.5

********mysql********

----------------------------------------------------------------------------------------------------------------

所需要的rpm檔案:

  (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

----------------------------------------------------------------------------------------------------------------

步驟:

1.上傳MySQL-server-5.5.48-1.linux2.6.x86_64.rpm、MySQL-client-5.5.48-1.linux2.6.x86_64.rpm到Linux上

2.使用rpm命令安裝MySQL-server-5.5.48-1.linux2.6.x86_64.rpm,缺少perl依賴

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

解決方案
[root@xcldtc5m mysql]# yum install libaio
[root@xcldtc5m mysql]# yum install perl

3、再安裝MySQL-server,rpm包衝突

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

4.卸載衝突的rpm包

rpm -e mysql-libs-5.1.73-5.el6_6.x86_64 --nodeps

5.再安裝MySQL-client和MySQL-server

rpm -ivh MySQL-server-5.5.48-1.linux2.6.x86_64.rpm

安裝成功,提示:

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.啟動mysql服務

service mysql start7。提示未安裝mysql用戶端

rpm -ivh MySQL-client-5.5.48-1.linux2.6.x86_64.rpm

8.啟動MySQL服務,然後初始化MySQL

service mysql start

/usr/bin/mysql_secure_installation

9.測試MySQL

mysql -u root -p root

*********jdk************

----------------------------------------------------------------------

jdk-7u45-linux-x64.tar.gz

---------------------------------------------------------------------

1.上傳jdk-7u45-linux-x64.tar.gz到Linux上

2.解壓jdk到/root/apps目錄

mkdir apps

tar -zxvf jdk-7u45-linux-x64.tar.gz -C /root/apps/

3.設定環境變數,在/etc/profile檔案最後追加相關內容

vi /etc/profile

export JAVA_HOME=/root/apps/jdk1.7.0_45

export PATH=$PATH:$JAVA_HOME/bin

4.重新整理環境變數

source /etc/profile

5.測試java命令是否可用

java -version

*******tomcat**********

-------------------------------------------------------------

apache-tomcat-7.0.68.tar.gz

----------------------------------------------------------------

1.上傳apache-tomcat-7.0.68.tar.gz到Linux上

2.解壓tomcat

tar -zxvf apache-tomcat-7.0.68.tar.gz -C /root/apps/

3.啟動tomcat

/root/apps/apache-tomcat-7.0.68/bin/startup.sh

4.查看tomcat進程是否啟動

jps

5.查看tomcat進程連接埠

netstat -anpt | grep 2465

6.通過瀏覽器訪問tomcat

http://192.168.0.101:8080/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.