zoukankan      html  css  js  c++  java
  • Linux下ejabberd开机自启(CentOS)

    废话少说,Linux下开机自启动Ejabberd步骤如下:

    1、从ejabberd安装目录的bin目录拷贝ejabberd.init到/etc/init.d/ejabberd下

    [root@imserver ~]# cp /opt/ejabberd-2.1.13/bin/ejabberd.init /etc/init.d/ejabberd
    

    2、创建用户ejabberd

    [root@imserver init.d]# useradd ejabberd
    [root@imserver init.d]# passwd ejabberd
    Changing password for user ejabberd.
    New password: 
    Retype new password: 
    passwd: all authentication tokens updated successfully.
    

    3、赋予目录写权限  我这里为了方便直接赋给所有权限了

    [root@imserver init.d]# cd /opt/ejabberd-2.1.13/
    [root@imserver ejabberd-2.1.13]# cd ..
    [root@imserver opt]# chmod -R 777 ejabberd-2.1.13/
    

    4、建立启动的软连接

    [root@imserver opt]# cd /etc/rc5.d
    [root@imserver rc5.d]# ln -s ../init.d/ejabberd S99ejabberd
    [root@imserver rc5.d]# cd /etc/rc3.d
    [root@imserver rc3.d]# ln -s ../init.d/ejabberd S99ejabberd
    

    5、开机重新启动测试

    查看启动进程:  

    [root@rk ~]# ps -ef
    

    程序已经启动了!!!

    ejabberd  1162     1  0 14:49 ?        00:00:00 /opt/ejabberd-2.1.13/bin/epmd -daemon
    ejabberd  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 4
    ejabberd  1218  1217  0 14:49 ?        00:00:00 inet_gethost 4
    
  • 相关阅读:
    python自定义线程池
    sudo: ulimit: command not found
    HTTP长连接、短连接使用及测试
    5分钟上手:本地开发环境启动HTTPS
    Python复杂对象转JSON
    Python自定义注解
    gcc makefile
    Ubuntu 13.10 安装 ia32-lib
    vim扩展配置
    python异常类型
  • 原文地址:https://www.cnblogs.com/silent2012/p/4173949.html
Copyright © 2011-2022 走看看