下載下傳安裝包
wget http://download.igniterealtime.org/openfire/openfire-4.2.3-1.x86_64.rpm
安裝
yum install -y glibc.i686
yum install -y openfire-4.2.3-1.x86_64.rpm
設定開機啟動
chkconfig openfire on
啟動服務
systemctl start openfire
服務啟動,進入 http://<ip>:9090 進行資料庫設定即可
安裝 mariadb 資料庫
yum -y install mariadb-server mariadb-client
啟動資料庫
systemctl start mariadb #啟動服務
systemctl enable mariadb #設定開機啟動
systemctl restart mariadb #重新啟動
systemctl stop mariadb.service #停止MariaDB
初始化 mariadb 伺服器配置,并修改密碼 root:root , 指令如下:
mysql_secure_installation
連結 db 測試
mysql -uroot -p root
建立使用者并修改通路權限
- 使用 mysql 資料庫
MariaDB [(none)]> use mysql
- 建立使用者指令
MariaDB [mysql]> create user openfire@localhost identified by 'password';
- 直接建立使用者并授權的指令
MariaDB [mysql]> grant all on *.* to openfire@localhost indentified by 'password';
- 授予外網登陸權限
MariaDB [mysql]> grant all privileges on *.* to openfire@'%' identified by 'password';
- 授予權限并且可以授權
MariaDB [mysql]> grant all privileges on *.* to openfire@'hostname' identified by 'password' with grant option;
進入到上述 openfire 背景,預設使用者名密碼 admin/admin, 配置 mysql 即可。
唯一一步是在初始化設定域名時,需要指定相應域名(這裡主要關系到 spark 用戶端注冊時所書寫的域名,通常也會存在于消息體xmpp中)