文件操作 - cloud-config-gluster.txt
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/cloud-init/examples/cloud-config-gluster.txt
编辑文件内容
#cloud-config # vim: syntax=yaml # Mounts volfile exported by glusterfsd running on # "volfile-server-hostname" onto the local mount point '/mnt/data' # # In reality, replace 'volfile-server-hostname' with one of your nodes # running glusterfsd. # packages: - glusterfs-client mounts: - [ 'volfile-server-hostname:6996', /mnt/data, glusterfs, "defaults,nofail", "0", "2" ] runcmd: - [ modprobe, fuse ] - [ mkdir, '-p', /mnt/data ] - [ mount, '-a' ]
修改文件时间
将文件时间修改为当前时间的前一年
删除文件