编程知识 cdmana.com

Alibaba cloud Ubuntu deployment Java Web Environment (ubuntu20.04)

I wrote one before 《 Alibaba cloud Ubuntu Deploy java web》, Detailed records of java、tomcat、mysql stay ubuntu16.04 Installation and configuration on version . Recently installed servers , Find out 20.04 Version of ubuntu Some small changes .

* The following is only for 20.04 Change part , Please refer to : https://blog.csdn.net/cuibo1123/article/details/39051465


1: Update source : at present ubuntu The default source is easy to use , It's also very fast , The replacement does not need to be at the source , direct update that will do

sudo apt-get update


2: install Java11

sudo apt install openjdk-11-jre-headless


3: install mysql(Ubuntu Set up mysql Of root User password )

sudo apt-get install mysql-server

Use mysql install mysql Do not set default password at prompt , But the system creates a default user (debian-sys-maint), And record the user name and password in :/etc/mysql/debian.cnf, You can use the following command to view the user name and password :

sudo vim /etc/mysql/debian.cnf

Login default user :

mysql -u debian-sys-maint -p

modify root User password :

use mysql;
update mysql.user set authentication_string=PASSWORD('newPwd'), plugin='mysql_native_password' where user='root';
flush privileges;


4: install tomcat

sudo apt-get install tomcat8


tomcat Root location :/var/lib/tomcat8/

 

版权声明
本文为[osc_ b2jll5m6]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224104932387E.html

Scroll to Top