002

linux 
Most Unix-like systems have different "runlevels" (think about them as steps) for various
stages of the system running phase. At the operating system level, a service can be activated
only if other services have been successfully activated. Thus if you activate a service that
needs network before this one is up and running, it gets faulty or useless. This is essentially
what "runlevels" are for.
The following is a list of runlevels:
rc1.d: Single user mode
rc2.d: Single user mode with networking
rc3.d: Multi-user mode—boot up in text mode
rc4.d: Undefined
rc5.d: Multi-user mode—boot up in X Windows
rc6.d: Shutdown


Most production Linux systems boot using runlevel 3 (UI is not needed and it will be a waste of
resources), but to reach all audiences, we will use level 2, 3 and 5.




WildFly comes with a predefined script, which can be used to run WildFly as a service. This
script is located in the bin/init.d folder of the WildFly installation folder. So we just need to
copy the file inside the /etc/init.d system folder and set it as a service, as follows:
$ sudo cp $WILDFLY_HOME/bin/init.d/wildfly-init-redhat.sh /etc/init.d/
wildfly
$ sudo chkconfig --add wildfly
$ sudo chkconfig wildfly on --level 235
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值