常用工具/代码库

静态IP

#vim /etc/netplan/50-cloud-init.yaml


network:
  version: 2
  renderer: networkd
  ethernets:
    ens33:
      addresses:
        - 192.168.27.138/24
      gateway4: 192.168.27.2
      nameservers:
          addresses: [8.8.8.8, 1.1.1.1]
#修改完毕之后执行
netplan apply

JDK&Maven

# /etc/profile

export MAVEN_HOME=/usr/local/apache-maven-3.6.1
export PATH=$MAVEN_HOME/bin:$PATH:$HOME/bin


export JAVA_HOME=/usr/local/java
export JRE_HOME=/usr/local/java/jre
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/hre/bin:$PATH:$HOME/bin

posted @ 2019-07-31 10:31  X-POWER  阅读(229)  评论(0编辑  收藏  举报