现在开始安装一些常用程序:
安装net-tools:
yum install net-tools
安装wget:
yum install wget
安装telnet服务:
yum-yinstallxinetdtelnettelnet-server
安装gcc:
yum install gcc
安装jdk:
下载jdk到/usr/local目录
解压缩得到下面目录:
/usr/local/jdk1.8.0_144
编辑/etc/profile文件,追加下面设置:
JAVA_HOME=/usr/local/jdk1.8.0_144
JRE_HOME=/usr/local/jdk1.8.0_144/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH
执行下面命令,让修改生效:
source /etc/profile
安装mariadb:
http://www.cnblogs.com/starof/p/4680083.html
yum install mariadb-server mariadb
mariadb数据库的相关命令是:
systemctl start mariadb #启动MariaDB
systemctl stop mariadb #停止MariaDB
systemctl restart mariadb #重启MariaDB
systemctl enable mariadb #设置开机启动
开启mariadb远程连接:
https://mariadb.com/kb/zh-cn/configuring-mariadb-for-remote-client-access/