1. 安裝MySQL
執(zhí)行命令:
sudo apt install mysql-server
另外可選mysql-client和libmysqlclient-dev
然后通過
sudo netstat -tap | grep mysql
看看有沒有相關(guān)服務(wù)
現(xiàn)在設(shè)置mysql允許遠(yuǎn)程訪問拜鹤,首先編輯文件:
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
注釋掉bind-address = 127.0.0.1
保存退出,然后進(jìn)入mysql服務(wù)好爬,執(zhí)行授權(quán)命令:
grant all on *.* to root@'%' identified by '你的密碼' with grant option;
flush privileges;
然后執(zhí)行quit命令退出mysql服務(wù)吨拍,執(zhí)行如下命令重啟mysql:
service mysql restart
2. 安裝JAVA8
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer