In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to deploy FTP services in FreeBSD". In daily operation, I believe many people have doubts about how to deploy FTP services in FreeBSD. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to deploy FTP services in FreeBSD". Next, please follow the editor to study!
Start the FTP server
We have two ways to start ftpd, one is to use standalone daemon, the other is to use inetd. Inetd is a powerful "super server" in UNIX system, which we can use to manage many system services, such as telnet, ssh, ftp and so on. Most system services are started using inetd. The advantage of using it is that you can manage various services and set service rules through it, such as whether to block some IP sources and so on. However, the disadvantage of using inetd is that every time there is an online requirement, the daemon of inetd must execute relative mapping instructions according to the type of online, so the speed is relatively slow. Another way to start FTP is to use standalone daemon, that is, to execute FTP daemon directly, and when it receives a new online, fork () comes out to process it. This way of online establishment is faster and more suitable for special FTP servers.
Use inetd
Let's first introduce how to start the FTP server using inetd. First, edit / etc/inetd.conf to remove the # at the beginning of the ftp setting: ftp stream tcp nowait root / usr/libexec/ftpd ftpd-lftp stream tcp6 nowait root / usr/libexec/ftpd ftpd-l next, we must rerun inetd:# kill-1 `cat / var/run/ inetd.pid` (based on the command already running inetd) if the ftp server is not running, enter: inetd in Alt+F2 and you can now start using FreeBSD's FTP service. ! / bin/shftpd_program= "/ usr/libexec/ftpd" ftpd_flags= "- D-l" case $1 instart) echo "Starting FTPD" $ftpd_program $ftpd_flags;;stop) echo "Stopping FTPD" killall ftpd;;restart) $0 stopsleep 1 $0 start After esac editing, we must make the file executable: # chmod 755 / usr/local/etc/rc.d/ftpd next, you can start FTPD with the following directive: # / usr/local/etc/rc.d/ftpd start or # service ftpd start if you want to stop the FTPD service, use the following directive: # / usr/local/etc/rc.d/ftpd stop
Edit welcome message
Let's first introduce how to start the FTP server using inetd. First, edit / etc/inetd.conf to remove the # at the beginning of the ftp setting: ftp stream tcp nowait root / usr/libexec/ftpd ftpd-lftp stream tcp6 nowait root / usr/libexec/ftpd ftpd-l next, we must rerun inetd:# kill-1 `cat / var/run/ inetd.pid` (based on the command already running inetd) if the ftp server is not running, enter: inetd in Alt+F2 and you can now start using FreeBSD's FTP service. ! / bin/shftpd_program= "/ usr/libexec/ftpd" ftpd_flags= "- D-l" case $1 instart) echo "Starting FTPD" $ftpd_program $ftpd_flags;;stop) echo "Stopping FTPD" killall ftpd;;restart) $0 stopsleep 1 $0 start After esac editing, we must make the file executable: # chmod 755 / usr/local/etc/rc.d/ftpd next, you can start FTPD with the following directive: # / usr/local/etc/rc.d/ftpd start or # service ftpd start if you want to stop the FTPD service, use the following directive: # / usr/local/etc/rc.d/ftpd stop, this ends the study of "how to deploy FTP services in FreeBSD" I hope I can solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.