IT 이야기/Linux
[RHEL6, 7] rpcbind 설정
찬찬이 아빠
2019. 11. 28. 13:49
반응형
rpcbind는 동적으로 서비스와 포트를 연결하려고 할 때 사용하며 설정은 다음과 같습니다.
1. /etc/hosts.allow 파일에 다음과 같이 추가 등록합니다.
rpcbind: 127.0.0.1
2. /etc/sysconfig/에 rpcbind라는 파일 생성 및 내용을 등록합니다.
echo 'RPCBIND_ARGS="-l -s -h localhost"' > /etc/sysconfig/rpcbind
3. rpcbind 서비스를 실행합니다.
<RHEL6일 경우>
# chkconfig --level 3 rpcbind on
# service rpcbind start
<RHEL7일 경우>
# systemctl enable rpcbind.service
# systemctl start rpcbind.service
반응형