Start / Stop FTP server on FreeBSD / OpenBSD
来源:互联网 发布:java int 0xff 编辑:程序博客网 时间:2024/05/20 18:45
ftpd is the Internet File Transfer Protocol server under BSD and configured via inetd. The ftpd utility is the Internet File Transfer Protocol server process. The server uses the TCP protocol and listens at the port specified or by default at port 21.
The inetd server should be run at boot time by /etc/rc. It then listens for connections on certain internet sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors. After the program is finished, inetd continues to listen on the socket.
Task: Disable FTPD
Login as root user.
To disable ftpd open /etc/inetd.conf file:
# vi /etc/inetd.conf
Find line:
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
To disable a service, comment it out by prefixing the line with '#'.
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
Save and close the file.
Task: Restart inetd
Now just restart inetd, enter:
# /etc/rc.d/inetd restart
OR if you are using OpenBSD:
# kill -HUP `cat /var/run/inetd.pid`
The inetd server should be run at boot time by /etc/rc. It then listens for connections on certain internet sockets. When a connection is found on one of its sockets, it decides what service the socket corresponds to, and invokes a program to service the request. The server program is invoked with the service socket as its standard input, output and error descriptors. After the program is finished, inetd continues to listen on the socket.
Task: Disable FTPD
Login as root user.
To disable ftpd open /etc/inetd.conf file:
# vi /etc/inetd.conf
Find line:
ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
To disable a service, comment it out by prefixing the line with '#'.
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
Save and close the file.
Task: Restart inetd
Now just restart inetd, enter:
# /etc/rc.d/inetd restart
OR if you are using OpenBSD:
# kill -HUP `cat /var/run/inetd.pid`
To enable ftp, reverse the step # 1.
From: http://www.cyberciti.biz/faq/star-stop-bsd-ftp-service/
0 0
- Start / Stop FTP server on FreeBSD / OpenBSD
- OpenBSD ftp server 搭建
- How to start/restart/stop apache server on ubuntu
- Installing OpenBSD on VMware Server
- 在 FreeBSD 5.4/OpenBSD 3.8 上安装 BT Server
- freebsd, openbsd, netbsd
- Comparison Of Freebsd And Openbsd
- How to start stop restart mysql on Mac
- Configure PPTP Server With PopTop on FreeBSD
- Setup FTP Server on Ubuntu
- install ftp server on centos6
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- 安装远程桌面,VNC Server on FreeBSD + VNC Viewer on Windows !
- BSD家族大观:FreeBSD、OpenBSD、NetBSD
- Linux、FreeBSD、OpenBSD、OpenSolaris乱战
- FreeBSD OpenBSD NetBSD BSD家族大观
- leetcode Anagrams
- 微信公众账号多帐号管理工具---微乎
- Effective Objective - C 2.0 笔记
- Unity3D流体插件FluidSim使用总结
- js实现上传图片预览,购物车加减
- Start / Stop FTP server on FreeBSD / OpenBSD
- 浅谈ASP.NET调用淘宝API之初入江湖
- /etc/fstab
- linux挂载
- Java NIO——3 非阻塞与selector
- VS2010 安装 Boost 库 1.54
- 2013整理资料-UIViewController生命周期
- jQuery-uploadify3.2带有滚动条的文件上传
- 域名解析图解教程