Linux网卡重启失败,使用 systemctl status network.service命令进行查看状态,发现启动有异常产生 network.service: control process exited, code=exited status=1Failed to start LSB: Bring up/down networking. 进入到网卡配置文件,查看网卡配置文件参数为hwaddr的值是否和ifconfig命令的ether值是否一致,如果不一致的话,把配置文件里面的值改成一样,
1:查看crond 服务状态(确认Linux任务计划服务开启) service crond status crond (pid 1937) is running... 2:编写重启Tomcat的sh可执行文件restart_tomcat.sh #!/bin/sh #./etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_112 sh /opt/apache-tomcat-9.0.0.M11/bin/shutdown.sh sleep 60s sh