Linux下ejabberd開機自啟(CentOS)

來源:互聯網
上載者:User

標籤:

廢話少說,Linux下開機自啟動Ejabberd步驟如下:

1、從ejabberd安裝目錄的bin目錄拷貝ejabberd.init到/etc/init.d/ejabberd下

[[email protected] ~]# cp /opt/ejabberd-2.1.13/bin/ejabberd.init /etc/init.d/ejabberd

2、建立使用者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、賦予目錄寫入權限  我這裡為了方便直接賦給所有許可權了

[[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、建立啟動的軟串連

[[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、開機重新啟動測試

查看啟動進程:  

[[email protected] ~]# ps -ef

程式已經啟動了!!!

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下ejabberd開機自啟(CentOS)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.