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

 

posted @ 2019-11-04 16:37  julian_chang  阅读(156)  评论(0编辑  收藏  举报