- 论坛徽章:
- 0
|
/etc/services到底起了什么作用?
你用xinet.d来启动服务时他就会在/etc/services找相应的端口来启动
eg:
cat /etc/xinet.d/vsftpd
- # default: on
- # description:
- # The vsftpd FTP server serves FTP connections. It uses
- # normal, unencrypted usernames and passwords for authentication.
- # vsftpd is designed to be secure.
- service vsftpd #以该名字启动的服务他会到/etc/services找相应的端口
- {
- socket_type = stream
- wait = no
- user = root
- server = /usr/local/sbin/vsftpd
- # server_args =
- # log_on_success += DURATION USERID
- # log_on_failure += USERID
- nice = 10
- disable = no
- }
复制代码 |
|