标签:mct work pat script 添加 pre usr stop 启动
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
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
systemctl start sshd 启动服务
systemctl stop sshd 停止服务
systemctl enable sshd 自启动sshd服务
systemctl stop firewalld
systemctl start firewalld
systemctl status firewalld
标签:mct work pat script 添加 pre usr stop 启动
原文地址:https://www.cnblogs.com/pengsn/p/13278453.html