Note: DNS1 must be set here, otherwise () cannot be performed.įinally, configure /etc/nf: nameserver 192.168.129.2 Then modify /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE="eth0" etc/sysconfig/network-scripts/ifcfg-eth0įirst modify /etc/sysconfig/network as follows: NETWORKING=yes Three configuration files are involved, namely: /etc/sysconfig/network Click NAT Settings to check the GATEWAY address: Select VMnet8 and remove the Use local DHCP service to distribute IP address to VMs option. Because the previously built MongoDB shard did not use a replica set, the current network has been under pressure recently, so I am going to study it, so I set up the environment in my computer's virtual machine, but I found that VMware set up DHCP before, so The IP in the virtual machine changes every time after restarting, causing the mongodb environment that has been built before to always have problems and it is troublesome to rebuild, so the steps to set a static static IP are very simple:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |