最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】CentOS 6.6中安装了openfire 3.10.2但是无法启动

Openfire crifan 3259浏览 0评论

【背景】

折腾:

【记录】在CentOS 6.6中安装OpenFire

期间,已经安装了openfire的rpm包,但是无法启动:

[root@bogon ~]# service openfire start
Starting openfire: 
[root@bogon ~]# service openfire status
openfire is not running
[root@bogon ~]# service openfire on
Usage /etc/init.d/openfire {start|stop|restart|status|condrestart}
[root@bogon ~]# service openfire status
openfire is not running

【解决过程】

1.再去试试systemctl,结果没有这个工具:

[root@bogon ~]# systemctl
-bash: systemctl: command not found

2.先去看看各个服务的状态:

[root@bogon ~]# service --status-all
atd (pid  1665) is running...
auditd (pid  1118) is running...
crond (pid  1650) is running...
ip6tables: Firewall is not running.
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:22 
2    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:3306 
3    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8080 
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:8081 
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:9090 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5701 
7    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5269 
8    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5275 
9    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5222 
10   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           tcp dpt:5223 

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

Kdump is operational
lvmetad is stopped
mdmonitor is stopped
messagebus (pid  1248) is running...
mysqld (pid 69798) is running...
netconsole module not loaded
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth1
nginx (pid  1773) is running...
openfire is not running
master (pid  1640) is running...
rdisc is stopped
rsyslogd (pid  73837) is running...
sandbox is stopped
saslauthd is stopped
openssh-daemon (pid  69512) is running...
PID file exists, but process is not running[FAILED]
[root@bogon ~]# 

可以看到:

mysqld已经在运行了。

openfire没有运行,但是对应的端口9090已经有了。

3.参考:

CentOS 64位 安装openfire | 在这里-迦楠的后花园

去手动启动:

[root@bogon ~]# /etc/init.d/openfire start
Starting openfire: 
[root@bogon ~]# service openfire status
openfire is running
[root@bogon ~]# 

4.再去设置开机启动:

[root@bogon ~]# chkconfig openfire on
[root@bogon ~]# chkconfig --list
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off
auditd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
blk-availability        0:off   1:on    2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
ip6tables       0:off   1:off   2:on    3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off
kdump           0:off   1:off   2:off   3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
mdmonitor       0:off   1:off   2:on    3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:on    3:on    4:on    5:on    6:off
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
nginx           0:off   1:off   2:off   3:off   4:off   5:off   6:off
openfire        0:off   1:off   2:on    3:on    4:on    5:on    6:off
postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rdisc           0:off   1:off   2:off   3:off   4:off   5:off   6:off
restorecond     0:off   1:off   2:off   3:off   4:off   5:off   6:off
rsyslog         0:off   1:off   2:on    3:on    4:on    5:on    6:off
saslauthd       0:off   1:off   2:off   3:off   4:off   5:off   6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
tomcat6         0:off   1:off   2:off   3:off   4:off   5:off   6:off
udev-post       0:off   1:on    2:on    3:on    4:on    5:on    6:off
[root@bogon ~]# 

 

【总结】

此处是通过:

/etc/init.d/openfire start

正常启动了openfire,并且可以通过:

service openfire status

确认已经正在运行了。

转载请注明:在路上 » 【已解决】CentOS 6.6中安装了openfire 3.10.2但是无法启动

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.185 seconds, using 22.23MB memory