blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

阿里 ECS 服务器(CentOS7) 挂载 NAS

发表于 2020-06-19 | 分类于 运维 | 0 | 阅读次数 235

V4模式支持多台服务器同时挂载 NAS

安装依赖

yum install nfs-utils

手动挂载aliyun nas 重启失效

file-system-id 请替换为你申请的NAS file-system-id

mount -t nfs -o vers=4,minorversion=0,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport file-system-id.cn-shenzhen.nas.aliyuncs.com:/ /mnt

centos7 默认启动脚本没有执行权限 需要添加否则启动脚本不生效

chmod +x /etc/rc.d/rc.local

编辑自动脚本 将挂载aliyun nas命令添加上文件末尾

vim /etc/rc.d/rc.local

mount -t nfs -o vers=4,minorversion=0,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport file-system-id.cn-shenzhen.nas.aliyuncs.com:/ /mnt

多台服务器同时挂载的话 在一台服务器上对/mnt 目录的操作会马上同步到 其它也挂载了本nas的服务器上

  • 本文作者: blank
  • 本文链接: https://blankhang.com/2020/06/19/centos7-mount-nas
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
MySQL的 sql_mode
搭建 Maven 私服
© 2021 blank
Everything is energy and everything has a frequency