1.安装rpm包
[root@lixiaojie lixiaojie]# rpm -ivh openfire-3.9.3-1.i386.rpm Preparing... ########################################### [100%] 1:openfire ########################################### [100%]
安装位置:
[root@lixiaojie lixiaojie]# find / -name openfire /opt/openfire
2.启动提示安装glibc.i686
[root@lixiaojie bin]# ./openfire.sh ./openfire.sh: /opt/openfire/jre/bin/java: /lib/ld-linux.so.2: bad ELF interpret
执行:
[root@lixiaojie bin]# yum install glibc.i686
3.启动:
[root@lixiaojie bin]# ./openfire.sh start Openfire 3.9.3 [Jan 3, 2018 11:25:28 AM] Admin console listening at http://127.0.0.1:9090
4.安装和配置:http://192.168.88.129:9090/setup/index.jsp
语言:中文简体
域:192.168.88.129(服务器ip地址)
选择数据库:标准数据库连接
mysql> create database openfire character set utf8; Query OK, 1 row affected (0.04 sec) mysql> grant all privileges on openfire.* to 'root' @'%'; Query OK, 0 rows affected (0.08 sec) [root@lixiaojie lixiaojie]# cd /opt/openfire/resources/database/ [root@lixiaojie database]# ls openfire_db2.sql openfire_mysql.sql openfire_postgresql.sql openfire_sybase.sql openfire_hsqldb.sql openfire_oracle.sql openfire_sqlserver.sql upgrade [root@lixiaojie database]# mysql -u root -p openfire < /opt/openfire/resources/database/openfire_mysql.sql Enter password:
数据库设置:
- 驱动:mysql
- jdbc驱动:com.mysql.jdbc.Driver
- 数据库 URL:jdbc:mysql://localhost:3306/openfire
- 用户名:root
- 密:
特性设置:初始设置
管理员账户:
- 邮件:273286078@qq.com
- 密:1
5.登录管理控制台:http://192.168.88.129:9090/login.jsp
管理员账号:admin 默认密是admin 由于设置了新密码,则密是1
账号所在的表查询:
mysql> select * from ofUser; +----------+---------------+----------------------------------+---------------+------------------+-----------------+------------------+ | username | plainPassword | encryptedPassword | name | email | creationDate | modificationDate | +----------+---------------+----------------------------------+---------------+------------------+-----------------+------------------+ | admin | NULL | ac5e337e1cd002316171a442441c3c98 | Administrator | 273286078@qq.com | 001514963509734 | 0 | +----------+---------------+----------------------------------+---------------+------------------+-----------------+------------------+ 1 row in set (0.00 sec)