Ubuntu Server 12.04 安装 Jabberd2 服务器
本篇文章由:http://xinpure.com/install-ubuntu-server-12-04-jabberd2-server/
Ubuntu Server 12.04 安装 Jabberd2 服务器
安装 Jabberd2
在终端输入以下命令安装 Jabberd2:
sudo apt-get install jabberd2
配置
修改 /etc/jabberd2/sm.xml 文件
1.修改服务器地址 ( 第6行 ):
6 <id>localhost.localdomain</id>
将 localhost.localdomain 替换为自己的服务器地址即可。
如:
6 <id>192.168.1.200</id>
2.修改数据库信息,找到 <storage> 下的 <mysql> 模块 ( 第70行 到 第112行 )
70 <storage>
71 <!-- Dynamic storage modules path -->
72 <path>/usr/lib/jabberd2</path>
73
74 <!-- By default, we use the MySQL driver for all storage -->
75 <driver>mysql</driver>
76
······
101 <!-- MySQL driver configuration -->
102 <mysql>
103 <!-- Database server host and port -->
104 <host>localhost</host>
105 <port>3306</port>
106
107 <!-- Database name -->
108 <dbname>jabberd2</dbname>
109
110 <!-- Database username and password -->
111 <user>jabberd2</user>
112 <pass>secret</pass>
替换 <dbname> , <user> , <pass> 为 自己的数据库名, 数据库用户名, 数据库密码
如:
107 <!-- Database name -->
108 <dbname>MY_DB_NAME</dbname>
109
110 <!-- Database username and password -->
111 <user>MY_DB_USERNAME</user>
112 <pass>MY_DB_PASSWORD</pass>
修改 /etc/jabberd2/c2s.xml 文件
1.修改服务器地址, 在 <local> 模块中找到如下: ( 第125行 )
125 <id register-enable='true'>localhost.localdomain</id>
同样是替换为自己的服务器地址:
125 <id register-enable='true'>192.168.1.200</id>
2.修改数据库信息, 在 <authreg> 中的 <mysql> 模块 ( 第320行 到 383行 )
320 <authreg>
321 <!-- Dynamic authreg modules path -->
322 <path>/usr/lib/jabberd2</path>
323
324 <!-- Backend module to use -->
325 <module>mysql</module>
······
372 <!-- MySQL module configuration -->
373 <mysql>
374 <!-- Database server host and port -->
375 <host>localhost</host>
376 <port>3306</port>
377
378 <!-- Database name -->
379 <dbname>jabberd2</dbname>
380
381 <!-- Database username and password -->
382 <user>jabberd2</user>
383 <pass>secret</pass>
同样是替换 <dbname> , <user> , <pass> 为 自己的数据库名, 数据库用户名, 数据库密码
如:
107 <!-- Database name -->
108 <dbname>MY_DB_NAME</dbname>
109
110 <!-- Database username and password -->
111 <user>MY_DB_USERNAME</user>
112 <pass>MY_DB_PASSWORD</pass>
重启 Jabberd2 服务
重新启动 Jabberd2 服务器,激活最新的配置
sudo /etc/init.d/jabberd2 restart
or
sudo service jabberd2 restart
你需要使用 Jabber 客户端来链接服务器,如: Message ( Mac ) 和 Pidgin ( Windows )
Ubuntu Server 12.04 安装 Jabberd2 服务器的更多相关文章
- Ubuntu Server 12.04安装图解教程
Ubuntu S ...
- ubuntu server 16.04安装GPU服务器
1 Ubuntu16.04 系统安装过程中,需要勾选openssh-server 方便远程连接 2 必须安装gcc 与g++ 3 安装显卡驱动 NVIDIA-Linux-x86_64-367.57.r ...
- ubuntu server 12.04安装任何软件都出现the following packages have unmet dependencies的解决方法
虽然目前没太弄清这到底是怎么回事,但是暂时可以给出一个解决的方法, 如果在安装任何软件都会出现这个问题,那么尝试着输入sudo apt-get install -f试一下. 在该命令执行完成后,我这边 ...
- 安装Drupal7.12+Postgresql9.1(Ubuntu Server 12.04)
怀揣着为中小企业量身定做一整套开源软件解决方案的梦想开始了一个网站的搭建.http://osssme.org/ OS环境准备 这次是从OS开始安装的.最开始装Ubuntu12.04这里就不再赘述, 唯 ...
- U盘安装ubuntu server 12.04的问题检测不到CDROM的解决
U盘安装ubuntu server 12.04的问题检测不到CDROM的解决 ========================== 我是u盘安装ubuntu 14 64Bit 也是出现同样的问题 用u ...
- Ubuntu Server 12.04 静态IP简洁配置
PS:很长时间没使用Ubuntu了,刚才安装个Ubuntu Server 12.04做测试.Ubuntu的网络设置跟Redhat系是不一样的,配置IP时发现跟以前的Ubuntu桌面版本也有所不同,记录 ...
- [Linux] Ubuntu Server 12.04 LTS 平台上搭建WordPress(Nginx+MySql+PHP) Part II
接着上一节继续搭建我们的LNMP平台,接下来我们安装PHP相关的服务 sudo apt-get install php5-cli php5-cgi php5-fpm php5-mcrypt php5- ...
- [Linux] Ubuntu Server 12.04 LTS 平台上搭建WordPress(Nginx+MySQL+PHP) Part IV
接下来我们去下载 WorePress 用最新的 3.7.1 下载地址是:http://cn.wordpress.org/wordpress-3.7.1-zh_CN.zip 我们先建立一个文件夹 /va ...
- vagrant Ubuntu server 12.04 dpkg: dependency problems prevent configuration of python-gi
Ubuntu server 12.04因为尝试安装过xfce,导致sudo apt-get install xxx 都会返回,如: vagrant@precise32:~$ sudo apt-get ...
随机推荐
- xtuoj 1233 coins(dp)
Coins Accepted : 120 Submit : 305 Time Limit : 1000 MS Memory Limit : 65536 KB Coins Problem Des ...
- Problem D: 统计元音字母数
#include<stdio.h> int main() { ]; int n,j,k,a,e,i,o,u; a=e=i=o=u=; gets(c); ;c[k]!='\0';k++) { ...
- 数据库系统入门 | Oracle Linux上部署Oracle 11g服务,并实现SSH远程登录管理
文章目录 写在前面 一.实验内容 二.实验前期准备 1.软件目录 2.准备一些配置文件.脚本文件 三.实验方案(具体步骤) (一)在虚拟机上安装Oracle Linux (二)在Linux上安装Ora ...
- [转]JSP中常见的Tomcat报错错误解析(一)
1**:请求收到,继续处理2**:操作成功收到,分析.接受3**:完成此请求必须进一步处理4**:请求包含一个错误语法或不能完成5**:服务器执行一个完全有效请求失败 100——客户必须继续发出请求1 ...
- ERDAS遥感图像配准、及其它一些基本处理
内容中包含 base64string 图片造成字符过多,拒绝显示
- 虚函数&纯虚函数&抽象类&虚继承
C++ 虚函数&纯虚函数&抽象类&接口&虚基类 1. 多态 在面向对象语言中,接口的多种不同实现方式即为多态.多态是指,用父类的指针指向子类的实例(对象),然后通过 ...
- iOS Web应用开发:运用HTML5、CSS3与JavaScript
<iOS Web应用开发:运用HTML5.CSS3与JavaScript> 基本信息 原书名:Pro iOS web design and development:HTML5, CSS3, ...
- SQL locate()函数
LOCATE(substr,str), LOCATE(substr,str,pos) 第一个语法返回字符串str第一次出现的子串substr的位置. 第二个语法返回第一次出现在字符串str的子串sub ...
- [Android Memory] 内存分析工具 MAT 的使用
转载自: http://blog.csdn.net/aaa2832/article/details/19419679 1 内存泄漏的排查方法 Dalvik Debug Monitor Server ( ...
- iOS:进度条控件的详细使用
进度条控件:UIProcessView:UIView 功能:顾名思义,用来显示下载进度或者传输数据进度. 属性: @property(nonatomic) UIProgressViewStyl ...