Centos 命令记录

2020-05-06  本文已影响0人  楚长铭

net模式其他物理机访问方法

https://blog.csdn.net/qq_31329893/article/details/83511815

命令

ssh相关

systemctl status sshd.service
sudo netstat -atlunp | grep sshd

sdkman

curl -s "https://get.sdkman.io" | bash
 source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
sdk ls java
sdk install java 8.0.252-open
sdk default java 11.0.5.hs-adpt

java

java -version
yum list java-1.8*
yum install java-1.8.0-openjdk* -y
nohup java -jar XXX.jar > /dev/null 2>&1 &

maven

./mvnw clean install -Dmaven.test.skip=true

mvn clean install -Dmaven.test.skip=true

git

git branch 
git remote update origin --prune
git pull 
git checkout 分支名

docker

 docker build -t docker-maven-project .
docker image rm docker-maven-project
上一篇下一篇

猜你喜欢

热点阅读