chmod +x /etc/rc.d/rc.local
systemctl enable rc-local.service
Note: rc.local is obsolete.
-------------------------- OR
append commands to /etc/bashrc
用一个例子来演示会更加清晰
chmod +x /etc/rc.d/rc.local
systemctl enable rc-local.service
Note: rc.local is obsolete.
-------------------------- OR
append commands to /etc/bashrc
用一个例子来演示会更加清晰
通过etcd删除,亲测可行.[root@k8s-node1 dark]# kubectl get ns |grep TNAME STATUS AGEedison Terminating 6h27mwu
rc.local 不执行解决方法
在/etc/rc.local加了开机脚本,发现没起作用,一开始以为脚本写错了,后来验证脚本没问题,并且重启了几次
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M