使用AWS中的Centos,当云初始化始终重置/ etc / sysconfig / network时,我们该如何更改?

时间:2019-10-26 02:06:19

标签: amazon-web-services networking nfs cloud-init

我有一个方案,我必须使用NETWORKDELAY设置才能可靠地装入NFS卷,但是,cloud-init总是在重新启动后删除我的更改。有解决方案吗?这是下面的示例尝试-

[deadlineuser@ip-10-0-11-20 ~]$ cat /etc/sysconfig/network
# Created by cloud-init on instance boot automatically, do not edit.
#
NETWORKING=yes
NETWORKDELAY=20
[deadlineuser@ip-10-0-11-20 ~]$ sudo reboot
packet_write_wait: Connection to UNKNOWN port 0: Broken pipe
vagrant@openfirehawkserverdev:/vagrant$ ssh deadlineuser@10.0.11.20
Last login: Sat Oct 26 12:58:35 2019
[deadlineuser@ip-10-0-11-20 ~]$ cat /etc/sysconfig/network
# Created by cloud-init on instance boot automatically, do not edit.
#
NETWORKING=yes

0 个答案:

没有答案