Press "Enter" to skip to content

Tag: Ubuntu

设置静态IP

sudo vim /etc/netplan/*.yaml network: version: 2 ethernets: enp3s0: dhcp4: no addresses: [10.0.0.111/24] gateway4: 10.0.0.1 nameservers: addresses: [10.0.0.1] sudo netplan apply

Leave a Comment

Ubuntu16.04 配置环境变量

临时设置 export M2_HOME=/etc/mvn/apache-maven-3.6.1 export PATH={M2_HOME}/bin:{PATH} 当前用户的全局设置 vim ~/.profile 添加行: export M2_HOME=/etc/mvn/apache-maven-3.6.1 export PATH={M2_HOME}/bin:{PATH} 使生效 source .profile 所有用户的全局设置 vim /etc/profile 在里面加入: export M2_HOME=/etc/mvn/apache-maven-3.6.1 export PATH={M2_HOME}/bin:{PATH} 使生效…

1 Comment