ip配置
ifconfig 查看
cd /etc/sysconfig/network-scripts
vi ifcfg-en0
BOOTPROTO=static
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
ONBOOT=yes
jdk 配置环境变量
vi /etc/profile
最后一行添加如下代码
export JAVA_HOME=/usr/local/jdk1.8.0_181
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
:wq
保存后
source /etc/profile
sshd服务
systemctl start sshd 启动服务
systemctl stop sshd 停止服务
systemctl enable sshd 自启动sshd服务
防火墙
systemctl stop firewalld
systemctl start firewalld
systemctl status firewalld