Home / 知识库 / Wiki / CentOS安装金笛短信Web中间件

CentOS安装金笛短信Web中间件

内容索引

安装过程

#1.将安装传输到服务器上,并 cd 到安装包所在目录

#(假设需要把中间件安装到 /opt/JDSMS )

mkdir /opt/JDSMS

mv JDSmsService-web369-linux* /opt/JDSMS/

 

#2.解压

cd /opt/JDSMS/

tar zxvf JDSmsService-web369-linux*

#提示:解压过程会有数据流刷屏,请耐心等待

 

#3.进到中间件目录并执行安装脚本

cd JDSmsService-web369

./install

#安装完成后可以在本地访问中间件(127.0.0.1:8090)

 

#4.局域网需要访问中间件时,需要开放防火墙对应端口

#CentOS 7、8

firewall-cmd --zone=public --add-port=8090/tcp --permanent

firewall-cmd --zone=public --add-port=8050/tcp --permanent

firewall-cmd --reload    #重新加载防火墙

#CentOS 5、6

/sbin/iptables -I INPUT -p tcp --dport 8090 -j ACCEPT

/sbin/iptables -I INPUT -p tcp --dport 8060 -j ACCEPT

/etc/rc.d/init.d/iptables save

#5.状态查询

#查看本机ip

ip addr |grep inet

#查询8090、3308端口运行状态

netstat -ntpl |grep 8090

#查看服务运行状态的四种方法,都可以使用

/etc/init.d/JDSmsService-web status           #通用方法

systemctl status JDSmsService-web             #新版本服务管理工具

service JDSmsService-web status                      #通用服务管理器查看

常见问题

1.安装过程提示mysql的3308端口被占用

原因:服务器上已安装 MySQL

如果是系统自带的mysql,将配置文件更名即可 (*也可以直接使用该数据库,更方便)

mv /etc/my.cnf /etc/my.cnf.bak

2.如何重启中间件

systemctl restart JDSmsService-web.service

#或

service JDSmsService-web restart

3.登录中间件地址显示不安全

实际上是因为https没有使用证书导致,忽略并继续访问即可

 

4.CentOS8无法打开

运行以下指令

sudo ln -s /usr/lib64/libncursesw.so.6  /usr/lib64/libncursesw.so.5

yum install libnsl

systemctl restart JDSmsService-web

5.防火墙详细配置,可以参考以下文章

https://blog.csdn.net/s_p_j/article/details/80979450