CentOS 7 关闭图形界面 查看/etc/inittab如下: # systemd uses 'targets' instead of runlevels. # by default, there are two main targets: # # multi-user.target: analogous to runlevel 3 # graphical.target: analogous to runlevel 5 # # To view current default target,…
1.在/etc/init.d/目录下新建一个文件:autostart.sh #!/bin/sh #chkconfig: 2345 80 80 #description: auto start web server service iptables start sh /usr/jboss-as-7.1.1.Final/bin/standalone.sh& 前面3句是必需的. 2.cd到/etc/init.d目录下,输入命令: chkconfig --add autostart.sh chkconf…