添加防火墙
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8848/tcp --permanent
firewall-cmd --reload
查看端口占用并杀死
[root@v2x bin]
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 889/redis-server 12
[root@v2x bin]
redis 889 0.0 0.0 143068 7680 ? Ssl Sep08 2:59 /usr/bin/redis-server 127.0.0.1:6379
root 2514 0.0 0.0 112820 2336 pts/0 S+ 10:04 0:00 grep --color=auto 6379
[root@v2x bin]
[root@v2x bin]
root 2517 0.0 0.0 112820 2328 pts/0 S+ 10:05 0:00 grep --color=auto 6379