Figure-ProFTPD
SetXinetdTo startProftpd:
In fact, most FTP daemon are currently active on super daemon! So here we also set up proftpd directly with xinetd! It would be safer to have one more second of Management! ^_^! The set method is really simple ~ Just upload the content in proftpd and proftpd. conf under xinetd! [Root @ test root] # vi/etc/xinetd. d/proftpd
- service ftp
-
- {
-
- disable = no
-
- flags = REUSE
-
- socket_type = stream
-
- wait = no
-
- user = root
-
- server = /usr/local/proftpd/sbin/proftpd
-
- server_args = -c /usr/local/proftpd/etc/proftpd.conf
-
- log_on_success += DURATION USERID
-
- log_on_failure += USERID
-
- }
-
# The above points are at the place where the two lines of rough characters are located! Especially the server =... line!
# Because we use Tarball security, we naturally place our contents in our case,
# If you use RPM security, it is not the same here!
# In addition, The server_args is followed by the parameter name set for the parameter!
[Root @ test root] # vi/usr/local/proftpd/etc/proftpd. conf
# Find The following setting value:
ServerType standalone
Group nogroup
# Because our system does not have the nogroup group, you must change it
# Make sure there are groups in the system! The server failover methods include super daemon and
# Stand alone, so:
- ServerType inetd
-
- Group nobody
-
- [root@test root]# /etc/rc.d/init.d/xinetd restart
-
- [root@test root]# netstat -tlnp
-
- tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 8483/xinetd
-
# Haha! 21. This port has appeared! There is no problem in the discussion, but it still needs to be analyzed.
# The content of/var/log/messages is okay!
Generally, we recommend that you use xinetd to activate servers, especially FTP servers. In this case, we use xinetd to initiate an action. However, proftpd's settings define proftpd. in the conf file, you must specify the ServerType setting value. There are two options:
Standalone: indicates the meaning of an automatic snapshot;
Inetd: indicates that super daemon is used. Whether it is inetd or xinetd, this setting value is used.
Therefore, repair is required! Then, you can initiate an animation! Very simple! ^_^!
Through the article of laruence, we can clearly see that it is very easy to start proftpd by setting xinetd. I hope everyone can learn about it!