1.jdk,nginx,tomcat,数据库,均已经安装配置完成,服务已经起来,后台登录,一直报用户不存在,排除网络原因(防火墙),以及日志写入失败(新服务器上没有手动创建日志目录)之后,仍然不行,后来发现是数据库大小写敏感没有关闭.
百思不得其解之后,对比本地正常使用的openfire数据库ofproperty表中的所有数据和服务器上配置过后的ofproperty表中数据的异同,发现属性名为jdbcProvider.connectionString后指定的数据库连接地址,后跟的有用户名和密码,用户名和密码均为root,
character-set-server=utf8mb4 // 顺便添加数据库Emoji表情支持
loose-default-character-set = utf8mb4
lower_case_table_names=1
max_connections=1000
配置以上几条之后,重启数据库,后台登录,成功.
百思不得其解之后,对比本地正常使用的openfire数据库ofproperty表中的所有数据和服务器上配置过后的ofproperty表中数据的异同,发现属性名为jdbcProvider.connectionString后指定的数据库连接地址,后跟的有用户名和密码,用户名和密码均为root,
服务器上的密码不是root,修改该值,重启openfire,进入后台,成功登陆,并发现用户表已经成功指定到项目用户表.
[root@localhost logs]# service openfire stop
Shutting down openfire: [ OK ]
[root@localhost logs]# rpm -qa | grep openfire //查看服务器上已经安装的openfire
openfire-4.1.3-1.x86_64
[root@localhost logs]# rpm -ql | grep openfire // 详细
rpm: no arguments given for query
[root@localhost logs]# rpm -e openfire-4.1.3-1.x86_64 // 卸载
Shutting down openfire: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
warning: /opt/openfire/resources/security/keystore saved as /opt/openfire/resources/security/keystore.rpmsave
warning: /opt/openfire/conf/security.xml saved as /opt/openfire/conf/security.xml.rpmsave
warning: /opt/openfire/conf/openfire.xml saved as /opt/openfire/conf/openfire.xml.rpmsave
[root@localhost logs]# rm -rfv /opt/openfire/ // 删除文件目录
removed `/opt/openfire/logs/error.log'
removed `/opt/openfire/logs/debug.log'
removed `/opt/openfire/logs/info.log.1'
removed `/opt/openfire/logs/nohup.out'
removed `/opt/openfire/logs/all.log'
removed `/opt/openfire/logs/all.log.1'
removed `/opt/openfire/logs/info.log'
removed `/opt/openfire/logs/warn.log'
removed directory: `/opt/openfire/logs'
[root@localhost opt]# init 6 // 服务器重启
[root@localhost opt]#
Connection closed by foreign host.
[root@localhost ~]# rpm -ivh openfire-4.1.3-1.x86_64.rpm // 安装
Preparing... ########################################### [100%]
1:openfire ########################################### [100%]
mysql> create database openfire ;
Query OK, 1 row affected (0.00 sec)
mysql> source /data/crmoa_sql/openfire_init.sql // 创建数据库并执行初始化脚本
[root@localhost ~]# service openfire start // 启动openfire 服务,openfire在安装完成后,已经自动注册为系统服务
Starting openfire:
4.查看系统开放的端口netstat -tunlp