1. linux防火墙端口设置
firewall-cmd --zone=public --add-port=5060/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-ports
2. host设置
hostname
vi /etc/hosts
3. dump
jmap -dump:live,format=b,file=aaa.txt 5006
4.修改yum信息
vi /etc/yum.repos.d/myrepo.repo
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
5.升级yum
yum whatprovides libstdc++.so.6
yum update
6.springboot 启动
nohup java -jar ? >/dev/null 2>&1 &
7. linux防火墙端口设置
firewall-cmd --zone=public --add-port=5060/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-ports
8.host设置
hostname
vi /etc/hosts
网友评论