데몬 스크립트 파일 : /etc/rc.d/init.d/nfs
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,414 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/nfs
NFS 서비스 데몬을 시작(종료, 재시작)하는 스크립트입니다.
NFS는 TCP/IP 네트워크상에서 파일공유를 위해 많이 사용되고있는 프로토콜입니다.
이 스크립트로 NFS서비스를 실행하면 /etc/exports파일의 설정대로 NFS서버기능을 할 수 있도록 설정합니다.
이 스크립트에 관련된 명령어들은 이 책의 NFS명령어편을 참조하시기 바랍니다.
사용옵션 : start|stop|status|restart|reload
설정파일 : /etc/sysconfig/nfs
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/nfs stop Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/nfs start
Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/nfs restart Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] Starting NFS mountd: [ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/nfs status rpc.mountd (pid 4947) is running... nfsd (pid 4939 4938 4937 4936 4935 4934 4933 4932) is running... rpc.rquotad (pid 4928) is running... [root@command init.d]# [root@command init.d]# root 4932 1 0 23:44 ? 00:00:00 [nfsd] root 4933 1 0 23:44 ? 00:00:00 [nfsd] root 4934 1 0 23:44 ? 00:00:00 [nfsd] root 4935 1 0 23:44 ? 00:00:00 [nfsd] root 4936 1 0 23:44 ? 00:00:00 [nfsd] root 4937 1 0 23:44 ? 00:00:00 [nfsd] root 4938 1 0 23:44 ? 00:00:00 [nfsd] root 4939 1 0 23:44 ? 00:00:00 [nfsd] root 4965 1993 0 23:45 pts/0 00:00:00 grep nfs [root@command init.d]# |
관련자료
-
이전
-
다음