Centos7 set SpringBoot project start-up

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/bj_chengrong/article/details/91467255

Check boot entry

systemctl list-unit-files |   grep enable

Add a boot entry into service

systemctl enable zabbix-server.service

Remove the boot entry services

[root@localhost bin]# systemctl disable zabbix-server.service
Removed symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service.
 

Sale script adapted from the definition of start-up

Modify this file /etc/rc.d/rc.local

For example, the boot apache, mysql, samba, svn and other problems since the launch of these services to get together:

[root@localhost ~]# vim /etc/rc.d/rc.local

# Add the following command

/usr/sbin/apachectl start

/etc/rc.d/init.d/mysqld start

/etc/rc.d/init.d/smb start

/usr/local/subversion/bin/svnserve -d

 

reboot reboot!

 

Guess you like

Origin blog.csdn.net/bj_chengrong/article/details/91467255