2016-11-30 3 views
-2

ejabberd에서 muc를 설정하고 mysql.One에 데이터를 저장하는 방법을 알고 싶습니다. 완벽한 채팅과 mysql 데이터베이스에 저장합니다. 설정이 있습니다. 우리는 muc를 활성화하고 MYSQL에 데이터를 저장해야합니다. 어떻게 ejabberd.One에서 muc를 구성 할 수 있습니까? 하나의 채팅은 완벽하게 작동합니다.

## This rule allows access only for local users: 
    local: 
    - allow: local 
    ## Only non-blocked users can use c2s connections: 
    c2s: 
    - deny: blocked 
    - allow 
    ## Only admins can send announcement messages: 
    announce: 
    - allow: admin 
    ## Only admins can use the configuration interface: 
    configure: 
    - allow: admin 
    ## Only accounts of the local ejabberd server can create rooms: 
    muc_create: 
    - allow: all 
    ## Only accounts on the local ejabberd server can create Pubsub nodes: 
    pubsub_createnode: 
    - allow: local 
    ## In-band registration allows registration of any possible username. 
    ## To disable in-band registration, replace 'allow' with 'deny'. 
    register: 
    - allow: all 
    ## Only allow to register from localhost 
    trusted_network: 

당신이

+0

붙여 넣기 한 설정은 설정 파일과 무관 한 무작위 스 니펫이며 mod_muc 또는 MySQL 데이터베이스 구성과는 아무런 관련이 없습니다. –

답변

0

다중 사용자 채팅을 지원하기 위해 ejabberd를 구성하려면 감사, 당신은 mod_muc 모듈을 활성화해야합니다. 이것은 ejabberd 문서에 설명되어 있습니다 : mod_muc.

이 모듈은 db_type 매개 변수를 지원하므로 사용자가 MySQL database을 백엔드로 사용하도록 지시합니다.