【NFS】nfs安装调优
nfs
[root@flymaster ~]# rpm -qa nfs-utils rpcbind
nfs-utils-1.2.3-75.el6.x86_64
rpcbind-0.2.0-13.el6_9.1.x86_64
[root@flymaster ~]#
[root@flymaster ~]# /etc/init.d/rpcbind status
rpcbind 已停
[root@flymaster ~]# /etc/init.d/rpcbind start
Starting rpcbind: [ OK ]
[root@flymaster ~]# /etc/init.d/rpcbind status
rpcbind (pid 1632) is running...
[root@flymaster ~]# lsof -i :111
-bash: lsof: command not found
[root@flymaster ~]# yum install -y lsof
[root@flymaster ~]# lsof -i :111
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
rpcbind 1632 rpc 6u IPv4 13600 0t0 UDP *:sunrpc
rpcbind 1632 rpc 8u IPv4 13603 0t0 TCP *:sunrpc (LISTEN)
rpcbind 1632 rpc 9u IPv6 13605 0t0 UDP *:sunrpc
rpcbind 1632 rpc 11u IPv6 13608 0t0 TCP *:sunrpc (LISTEN)
[root@flymaster ~]# netstat -lnup|grep rpcbind
udp 0 0 0.0.0.0:959 0.0.0.0:* 1632/rpcbind
udp 0 0 0.0.0.0:111 0.0.0.0:* 1632/rpcbind
udp 0 0 :::959 :::* 1632/rpcbind
udp 0 0 :::111 :::* 1632/rpcbind
[root@flymaster ~]# chkconfig --list rpcbind
rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@flymaster ~]#
[root@flymaster ~]# rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
[root@flymaster ~]# /etc/init.d/nfs status
rpc.svcgssd 已停
rpc.mountd is stopped
nfsd is stopped
[root@flymaster ~]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS mountd: [ OK ]
Starting NFS daemon: [ OK ]
正在启动 RPC idmapd: [确定]
[root@flymaster ~]# netstat -lntup|grep 2049
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 :::2049 :::* LISTEN -
udp 0 0 0.0.0.0:2049 0.0.0.0:* -
udp 0 0 :::2049 :::*
[root@flymaster ~]# rpcinfo -p localhost
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 32888 mountd
100005 1 tcp 34816 mountd
100005 2 udp 60305 mountd
100005 2 tcp 53106 mountd
100005 3 udp 60915 mountd
100005 3 tcp 43298 mountd
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100021 1 udp 50673 nlockmgr
100021 3 udp 50673 nlockmgr
100021 4 udp 50673 nlockmgr
100021 1 tcp 60233 nlockmgr
100021 3 tcp 60233 nlockmgr
100021 4 tcp 60233 nlockmgr
[root@flymaster ~]# less /etc/init.d/nfs
#!/bin/sh
#
# nfs This shell script takes care of starting and stopping
# the NFS services.
#
# chkconfig: - 30 60
# description: NFS is a popular protocol for file sharing across networks.
# This service provides NFS server functionality, which is \
# configured via the /etc/exports file.
# probe: true
# config: /etc/sysconfig/nfs
### BEGIN INIT INFO
# Provides: nfs
# Required-Start: $local_fs $network $syslog $rpcbind
# Required-Stop: $local_fs $network $syslog $rpcbind
# Default-Stop: 0 1 6
# Short-Description: Start up the NFS server sevice
# Description: NFS is a popular protocol for file sharing across networks \
# This service provides NFS server functionality, \
# which is configured via the /etc/exports file.
### END INIT INFO
[root@flymaster ~]# ps -ef|egrep "rpc|nfs"
root 1734 2 0 15:23 ? 00:00:00 [rpciod/0]
root 1943 1 0 15:27 ? 00:00:00 rpc.mountd
root 1950 2 0 15:27 ? 00:00:00 [nfsd4]
root 1951 2 0 15:27 ? 00:00:00 [nfsd4_callbacks]
root 1952 2 0 15:27 ? 00:00:00 [nfsd]
root 1953 2 0 15:27 ? 00:00:00 [nfsd]
root 1954 2 0 15:27 ? 00:00:00 [nfsd]
root 1955 2 0 15:27 ? 00:00:00 [nfsd]
root 1956 2 0 15:27 ? 00:00:00 [nfsd]
root 1957 2 0 15:27 ? 00:00:00 [nfsd]
root 1958 2 0 15:27 ? 00:00:00 [nfsd]
root 1959 2 0 15:27 ? 00:00:00 [nfsd]
root 1986 1 0 15:27 ? 00:00:00 rpc.idmapd
rpc 2077 1 0 15:32 ? 00:00:00 rpcbind
root 2132 1445 0 15:55 pts/0 00:00:00 egrep rpc|nfs
[root@flymaster ~]# ls -l /etc/exports (nfs配置文件)
-rw-r--r--. 1 root root 0 Jan 12 2010 /etc/exports
echo "/data 192.168.1.*(insecure,rw,sync,no_root_squash)" >/etc/exports
[root@nfs-server101 ~]# mkdir /data
[root@nfs-server101 ~]# /etc/init.d/nfs reload(平滑生效)
[root@nfs-server101 ~]# exportfs -rv
exporting 192.168.1.*:/data
[root@nfs-server101 ~]# showmount -e 127.0.0.1
Export list for 127.0.0.1:
/data 192.168.1.*
[root@nfs-server101 ~]# mount -t nfs 192.168.70.101:/data /mnt
[root@nfs-server101 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_flymaster-lv_root
18G 977M 16G 6% /
tmpfs 495M 0 495M 0% /dev/shm
/dev/sda1 477M 28M 425M 6% /boot
192.168.70.101:/data 18G 977M 16G 6% /mnt
[root@nfs-server101 ~]# touch /data/fly.txt
[root@nfs-server101 ~]# cd /mnt/
[root@nfs-server101 mnt]# ls
fly.txt
Export list for 192.168.70.101:
/data 192.168.70.*
[root@lamp102 /]# mount -t nfs 192.168.70.101:/data /mnt
[root@lamp102 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_flymaster-lv_root
18G 976M 16G 6% /
tmpfs 495M 0 495M 0% /dev/shm
/dev/sda1 477M 28M 425M 6% /boot
192.168.70.101:/data 18G 977M 16G 6% /mnt
[root@lamp102 mnt]# grep 65534 /etc/passwd
nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
[root@lamp102 mnt]#
【NFS】nfs安装调优的更多相关文章
- 在Oracle数据库中使用NFS,怎样调优?
MOS上有好多文章,基本上都跑不了以下三点: Setup can make a big difference 1. Network topology and load 2. NFS mount opt ...
- NATS_07:NATS之top工具监控以及测量调优工具
概述 你可以使用 nats-top 来实现类似于 linux 中 top 命令的实时监控 nats 服务: 可以使用 nats 提供的工具来进行针对性的调优. 安装nats-top $ go get ...
- 开源服务专题之------sshd服务安装管理及配置文件理解和安全调优
本专题我将讨论一下开源服务,随着开源社区的日趋丰富,开源软件.开源服务,已经成为人类的一种公共资源,发展势头可谓一日千里,所以不可不知.SSHD服务,在我们的linux服务器上经常用到,很重要,涉及到 ...
- CentOS 6.3 NFS的安装配置、启动及mount挂载方法
一.环境介绍: 服务器:centos 192.168.1.225 客户端:centos 192.168.1.226 二.安装: NFS的安装配置: centos 5 : yum -y install ...
- Nginx源码安装及调优配置
导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前的优 ...
- Linux下安装、配置、授权、调优Mysql
以前在linux已经安装了很多次的Mysql,但是时间间隔长了以后,安装步骤总是会遗漏,趁这次安装,做一下安装记录. 检查系统是否已经安装Mysql rpm -qa|grep -i mysql Mys ...
- CentOS NFS的安装配置、启动及mount挂载方法
一.环境介绍: 服务器:centos 192.168.1.225 客户端:centos 192.168.1.226 二.安装: NFS的安装配置:centos 5 : yum -y install n ...
- CentOS5、6 NFS的安装配置及mount方法
一.环境介绍: 服务器:centos 192.168.1.225 客户端:centos 192.168.1.226 二.安装: NFS的安装配置:centos 5 : yum -y install n ...
- Centos6.4 NFS的安装与配置
NFS,是Network File System的简写,即网络文件系统.网络文件系统是FreeBSD支持的文件系统中的一种,也被称为NFS. NFS允许一个系统在网络上与他人共享目录和文件.通过使用N ...
随机推荐
- [Python Study Notes]字符串操作
字符串操作 a.字符串格式化输出 name = "liu" print "i am %s " % name #输出: i am liu PS: 字符 ...
- Maven编译问题
Maven构建的Project默认使用JDK1.5进行编译,要想使用JDK1.8进行编译,最好在项目的POM文件中加上以下的字段. <build> <plugins> < ...
- CentOS安装JDK 8
准备工作 首先,更新包: yum update 检查服务器上是否已安装旧版本的Java: java -version 如果有旧版本的Java则移除: yum remove java-1.6.0-ope ...
- Docker Centos6 下建立 Docker 桥接网络
cd /etc/sysconfig/network-scripts/; cp ifcfg-eth0 ifcfg-br0 vi ifcfg-eth0 //增加BRIDGE=br0,删除IPADDR,N ...
- JVM自动内存管理-Java内存区域与内存溢出异常
摘要: JVM内存的划分,导致内存溢出异常的可能区域. 1. JVM运行时内存区域 JVM在执行Java程序的过程中会把它所管理的内存划分为以下几个区域: 1.1 程序计数器 程序计数器是一块较小的内 ...
- .NET平台开源项目速览(19)Power BI神器DAX Studio
PowerBI更新频繁,已经有点更不上的节奏,一直在关注和学习中,基本的一些操作大概是没问题,更重要的是注重Power Query,M函数,以及DAX的使用,这才是核心. 上个月研究了DAX的一些 ...
- eclipse中创建一个maven项目
1.什么是Maven Apache Maven 是一个项目管理和整合工具.基于工程对象模型(POM)的概念,通过一个中央信息管理模块,Maven 能够管理项目的构建.报告和文档. Maven工程结构和 ...
- Spring-mvc 静态资源不拦截
在Spring-mvc.xml文件中加入这个就可以了 <!-- 用于对静态文件进行解析 --> <mvc:annotation-driven /> <mvc:resour ...
- Laravel框架中Form表单Get请求搜索(在此感谢[https://simon8.com])
首先看一下HTML部分的Form表单 <form role="search" method="get" id="searchform" ...
- 微博爬虫“免登录”技巧详解及 Java 实现(业余草的博客)
一.微博一定要登录才能抓取? 目前,对于微博的爬虫,大部分是基于模拟微博账号登录的方式实现的,这种方式如果真的运营起来,实际上是一件非常头疼痛苦的事,你可能每天都过得提心吊胆,生怕新浪爸爸把你的那些账 ...