GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" ... 修改第6行,GRUB_DEFAULT=0即为默认启动项, 0通常是 Ubuntu, 而 Windows 系统通常在下面, 需要在开机启动的时候数一下(从0开始数). 修改完毕后, 更新 grub:...
#创建新连接default,IP自动通过dhcp获取 nmcli con add con-name default type Ethernet ifname eth0 #删除连接 nmcli con del default #创建新连接static ,指定静态IP,不自动连接 nmcli con add con-name static ifname eth0 autoconnect no type Ethernet ipv4.addresses 172.25.X.10/24 ipv4.gateway 172.25....
apt update apt install-y vim wget gcc g++ make htop itop 二、网络配置: gateway4 变成 routes -to via network: version:2renderer: networkd ethernets: ens33: dhcp4: no dhcp6: no addresses: [192.168.0.10/24] routes:-to: default via:192.168.0.1nameservers: addresses: [114.114.114.114,8.8....
route add -net 0/0 gw IP_Gateway configura default gateway route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1 configure static route to reach network '192.168.0.0/16' route del 0/0 gw IP_gateway remove static route echo "1" > /proc/sys/net/ipv4/ip_forward activate ip rout...
"gateway_ip": null, "link_id": null } }, "status_action": "", "status_message": "Commissioning", "cpu_test_status_name": "Unknown", "memory_test_status": -1, "virtualblockdevice_set": [], "pool": { "name": "default", ...
GATEWAY=192.168.1.1 DNSIP=("223.5.5.5" "223.6.6.6") SSHPORT=20211 DefaultUser="WeiyiGeek" # 系统创建的用户名称非root用户 ROOTPASS=WeiyiGeek # 密码建议12位以上且包含数字、大小写字母以及特殊字符。 APPPASS=WeiyiGeek ## 名称: err 、info 、warning ...
scripts/os-optimize.sh-116-# 函数用途:创建系统swap分区--scripts/os-security.sh:27:# 函数名称:sec_usercheck scripts/os-security.sh-28-# 函数用途:用于锁定或者删除多余的系统账户--scripts/os-security.sh:65:# 函数名称:sec_userconfig scripts/os-security.sh-66-# 函数用途:针对拥有ssh远程登陆权限...
defgw ipaddr <x.x.x.x> Set the default gateway IP address. defgw macaddr <xx:xx:xx:xx:xx:xx> Set the default gateway MAC address. bakgw ipaddr <x.x.x.x> Set the backup gateway IP address. bakgw macaddr <xx:xx:xx:xx:xx:xx> Set the backup gateway MAC address. password <...
In this example, quorumsvr is the default user used to install the quorum server software. If the quorum server software is installed under another user and user group, change them accordingly. Import the certificates to the quorum server software. On the CLI of the quorum server software, run...
sudo apt-get install default-jre default-jdk 2.配置环境变量文件 vim ~/.bashrc 3.在文件首行加入 export JAVA_HOME=/usr/lib/jvm/default-java 4.让环境变量生效 source ~/.bashrc 5.验证 java -version 截图展示(以master为例) 回到顶部 5.修改主机名(在master,node1,node2执行) ...