Needless to say, Linux boot from boot ejabberd steps are as follows:
1. Copy Ejabberd.init to/etc/init.d/ejabberd from the bin directory of the Ejabberd installation directory
[Email protected] ~]# Cp/opt/ejabberd-2.1.13/bin/ejabberd.init/etc/init.d/ejabberd
2. Create User Ejabberd
[[email protected] init.d]# useradd ejabberd[[email protected] init.d]# passwd ejabberdchanging password for user ejabberd . New Password:retype New Password:passwd:all authentication tokens updated successfully.
3, give the directory Write permission I'm here for the convenience of giving all permissions directly
[Email protected] init.d]# Cd/opt/ejabberd-2.1.13/[[email protected] ejabberd-2.1.13]# CD. [Email protected] opt]# Chmod-r 777 ejabberd-2.1.13/
4. Establish a soft connection to start
[Email protected] opt]# cd/etc/rc5.d[[email protected] rc5.d]# ln-s. /init.d/ejabberd S99ejabberd[[email protected] rc5.d]# cd/etc/rc3.d[[email protected] rc3.d]# ln-s. /init.d/ejabberd S99ejabberd
5. Power-On Restart test
To view the startup process:
[Email protected] ~]# Ps-ef
The program has been started!!!
Ejabberd 1162 1 0 14:49? 00:00:00/opt/ejabberd-2.1.13/bin/epmd-daemonejabberd 1164 1 0 14:49? 00:00:03/opt/ejabberd-2.1.13/bin/beam.smp-k true-p 250000---root/opt/ejabberd 1217 1164 0 14:49?
00:00:00 inet_gethost 4ejabberd 1218 1217 0 14:49? 00:00:00 Inet_gethost 4
Linux under Ejabberd boot (CentOS)