/etc/fstab 只读无法修改的解决办法 在做saltstack的时候不小心误把/etc/fstab给注释了

/etc/fstab 只读无法修改的解决办法
在做saltstack的时候不小心误把/etc/fstab给注释了

在命令补全的时候开始报错:
[root@kafka2 ~]# cat /et-bash: cannot create temp file for here-document: Read-only file system
-bash: cannot create temp file for here-document: Read-only file system
^C

重新挂载为读写文件系统

[root@kafka2 ~]# mount -o remount,rw /