1. 程式人生 > >linux上安裝jdk,tomcat,mysql

linux上安裝jdk,tomcat,mysql

Linux上安裝jdktomcatmysql (轉自我的個人微博非他人部落格)

https://img-blog.csdnimg.cn/2018122910102513

Linux上安裝jdktomcatmysql

​​​1 上傳三個安裝包

https://img-blog.csdnimg.cn/2018122910102572


2 ​安裝jdk

https://img-blog.csdnimg.cn/20181229101025142

​​tar -zxvf jdk-7u55-linux-i586.tar.gz 

如果出現

lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

請輸入

sudo yum install glibc.i686

解壓後,發現多了個目錄

https://img-blog.csdnimg.cn/20181229101025205

配置環境變數

使用root使用者 輸入

https://img-blog.csdnimg.cn/20181229101025257

vim /etc/profile​

最後加上這句話

https://img-blog.csdnimg.cn/20181229101025301

使用source /etc/profile 使配置檔案生效,再次java -version即可

https://img-blog.csdnimg.cn/20181229101025423

安裝成功!


安裝Tomcat

https://img-blog.csdnimg.cn/20181229101025467

tar -zxvf apache-tomcat-7.0.47.tar.gz​

發現就有tomcat

https://img-blog.csdnimg.cn/20181229101025520

進入他的bin目錄

https://img-blog.csdnimg.cn/20181229101025563

啟動服務

https://img-blog.csdnimg.cn/20181229101025605

​this time not accout!

need guan bi fang huo qiang

https://img-blog.csdnimg.cn/20181229101025654

https://img-blog.csdnimg.cn/20181229101025695

​tomcat comple ! 


安裝MySQL

檢視能安裝什麼MySQL版本

https://img-blog.csdnimg.cn/20181229101025804

 yum list mysql*

 

再使用 如下命令開始安裝(注意 該步驟需要網)

​yum install mysql*

【小提示】完美解除安裝mysql      教程:​https://www.jb51.net/article/97516.htm

啟動服務

service mysqld start​

建立使用者名稱和密碼

​/usr/bin/mysqladmin -u root password 'root'

使用root使用者登陸

​mysql -u root -p

https://img-blog.csdnimg.cn/20181229101025861

​​​​​​