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 CommentTag: Ubuntu
# 开机自动启动ssh命令 sudo systemctl enable ssh # 关闭ssh开机自动启动命令 sudo systemctl disable ssh # 单次开启ssh sudo systemctl start ssh # 单次关闭ssh sudo systemctl stop ssh #…
Leave a Comment使用apt-get install redis命令安装,手动关闭redis的服务器 尝试用redis-cli shutdown和kill进程的办法,但是不起作用 经过查询使用以下命令可以(Ubuntu 16.04) systemctl stop redis-server systemctl disable redis-server
Leave a Comment临时设置 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