Linux常用
安装mariadb
yum install mariadb-server
启动服务
systemctl start mariadb
开机自启动服务
systemctl enable mariadb
配置数据库
mysql_secure_installation
MySQL安装
yum -y install mysql-community-server
启动MySQL
systemctl start mysqld.service
查看可安装JAVA
yum -y list java*
安装JAVA
yum -y install java-1.8.0-openjdk*
密钥登录服务器(阿里云)
chmod 400 /root/mysshkey.pem
ssh -i /root/mysshkey.pem root@10.10.xx.xxx