Linux 常用工具
YUM
yum init system
create local repo yum
centos 7 init system
FTP
How to Install and Configure vsftpd on CentOS 6
vsftp install on centos 7
Email
aliyun ecs install email
postfix smtp on centos
centos 6 postfix smpt test
GIT
gogs install centos6
git command example
git format markdown
HTTP Web
apache exampe
h5ai web php file server
apache vhosgts code debug
Nginx Web
nginx install from source
nginx set directory autoindex
autoindex with h5ai web
nginx install pugin ngx-fancyindex
proxy internal vhost to web
dynamic and static by nginx
proxy directory second by nginx
nginx proxy gogs web
jenkns proxy from nginx
ssl certify by nginx
nginx threads fix to 9x
NTP
linux install ntp use asia date
VNC
vnc remote desktop
x11vnc on centos6
Firewall
iptables on centos 7
centos7 firewalld config
Kernel
centos kernel packages
kernel update to 3.10 on centos 6
SYSCTL 内核配置参数分析
NFS
centos6 install nfs servers
mount nfs to linux
mount nfs on centos 6
centos6 nfs verify permissions
SSH
ssh keygen rsa to client
ssh config diffent
Network
centos 7 config net-tool debug ifconfig
debug network card up or down
Samba
samba install on centos 6
samba config example
VIM
VIM using example
本文档使用 MrDoc 发布
-
+
首页
mount nfs to linux
# linux mount nfs linux下配置nfs,Mac下挂载. - 我的配置环境: - 服务器是:172.16.2.3 - 挂载客户端:linux:172.16.3.99;Mac:172.16.3.100 - (服务器的/home/nfsdata的权限为777;客户端的要目录都有目录nfs,且权限为777),检查 ## 一, 在服务器上检查安装包 rpm -qa |grep portmap rpm -qa |grep nfs cat /proc/filesystem中查看有没有nfsd服务 ntsysv 选项中选中nfs ## 二,配置 exports文件是NFS的共享目录配置文件,主要是指定共享目录和共享策略。使用vi命令编辑,在文件中加入类似下面的内容: vim /etc/exprot中添加参数:/home/nfsdata *(rw,root_squash,no_all_squash,sync,insecure) 参数下面有详解 ## 三,启动服务 /etc/init.d/portmap start /etc/init.d/nfslock start /etc/init.d/nfs start 开启服务器端的NFS服务,再从客户端上查看一下NFS服务器的情况: Showmount –a显示出NFS服务器192.168.1.123的共享目录被客户端192.168.122挂载到/home中; Showmount –e显示出NFS服务器192.168.1.123上有两个共享目录:/tmp和/home/nfs-share Showmount –d显示出NFS服务器的共享目录被挂载到了/home这个挂载点上。 查看启动情况: /etc/init.d/portmap status /etc/init.d/nfs status ## 四,挂载 Linux:客户端的portmap的服务一定要启动,然后执行命令: ```bash mount -t nfs 172.16.2.3:/home/nfsdata /nfs ``` Mac:系统自带服务,直接mount_nfs -o resvport 172.16.2.3:/home/nfsdata /nfs_11 ## 五,问题: 1、提示:mount to NFS server '172.20.67.203' failed: server is down. 解决方案:可能是NFS服务器的防火墙有问题; 2、提示:mount: RPC: Timed out 解决方案:由于RPC协议没运行;启动portmap服务; 也有可能是防火墙问题;Server/Client均有可能。 MAC OSX: ```bash mount_nfs -o resvport 172.16.2.3:/share/soft /Users/bj/Sites/tmp/soft/ ``` or: ```bash sudo mount_nfs -o resvport 172.16.2.3:/share/soft /Users/bj/Sites/tmp/soft/ ```
Bobby
2021年12月20日 23:44
分享文档
收藏文档
阅读
139
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码