Ubuntu 下載鏡像
https://launchpad.net/ubuntu/+cdmirrors?_ga=2.234957249.1347477989.1553512358-1291320132.1553512358
安裝完之後分辨率不正常,在vm 上 點擊 “設備” —> 安裝增強功能
1. Tomcat配置的時候,要注意修改start.sh 和 shutdown.sh, 裏面需要根據Java 的版本來更改
可通過以下命令查看tomcat啓動日誌:
cd tomcat/logs
cat catlina.out
https://www.cnblogs.com/xizhu/p/9593543.html
2. 在 localhost 裏面啓動
2. 需要修改mysql的數據庫密碼
目前爲123
在創建Tomcat用戶的時候,如果出現如下錯誤,是因爲之前忘記了數據庫的密碼,然後關掉了數據庫校驗
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
在 /etc/mysql/mysql.conf.d 內,
sudo vi mysqld.cnf
把這個文件裏裏面的“--skip-grant-tables” 註釋掉
3. 在/etc/mysql/my.cnf 裏面修改了字符的編碼形式
[client]
default-character-set=utf8
[mysqld]
character-set-server=utf8
4.
mysql> CREATE USER 'testuser'@'localhost' IDENTIFIED BY 'test623';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
解決辦法:
https://blog.csdn.net/hello_world_qwp/article/details/79551789
在mysql命令行中輸入:
set global validate_password_policy=LOW;
5. marven 的安裝和配置
https://www.cnblogs.com/EasonJim/p/7203635.html
注意,至少需要在 ~/.bashrc 裏面更改變量後,再往後進行