Ubuntu 13.04 tftp服务配置
2013-09-09 14:51
453 查看
1、安装软件包
sudo apt-get install tftpd-hpa tftp-hpa
其中tftpd-hpa是服务程序,tftp-hpa是客户端。
2、修改配置文件
vim /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/xxx/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s"
前三条不解释,一看就明白,TFTP_OPTIONS的三个选项的解释如下:
-l, --listen
Run the server in standalone (listen) mode, rather than run from inetd. In listen mode, the --timeout option is ignored, and the --address option can be used to specify a specific local address or port to listen to.
--create, -c
Allow new files to be created. By default, tftpd will only allow upload of files that already exist. Files are created with default permissions allowing anyone to read or write them, unless the --permissive or --umask options are specified.
--secure, -s
Change root directory on startup. This means the remote host does not need to pass along the directory as part of the transfer, and may add security. When --secure is specified, exactly one directory should be specified on the command line.
The use of this option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.
附:系统默认tftp的服务是随机启动的,如需手动开启、关闭、重启tftp服务,分别执行以下命令即可:
sudo service tftpd-hpa start
sudo service tftpd-hpa stop
sudo service tftpd-hpa restart
sudo apt-get install tftpd-hpa tftp-hpa
其中tftpd-hpa是服务程序,tftp-hpa是客户端。
2、修改配置文件
vim /etc/default/tftpd-hpa
# /etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/home/xxx/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="-l -c -s"
前三条不解释,一看就明白,TFTP_OPTIONS的三个选项的解释如下:
-l, --listen
Run the server in standalone (listen) mode, rather than run from inetd. In listen mode, the --timeout option is ignored, and the --address option can be used to specify a specific local address or port to listen to.
--create, -c
Allow new files to be created. By default, tftpd will only allow upload of files that already exist. Files are created with default permissions allowing anyone to read or write them, unless the --permissive or --umask options are specified.
--secure, -s
Change root directory on startup. This means the remote host does not need to pass along the directory as part of the transfer, and may add security. When --secure is specified, exactly one directory should be specified on the command line.
The use of this option is recommended for security as well as compatibility with some boot ROMs which cannot be easily made to include a directory name in its request.
附:系统默认tftp的服务是随机启动的,如需手动开启、关闭、重启tftp服务,分别执行以下命令即可:
sudo service tftpd-hpa start
sudo service tftpd-hpa stop
sudo service tftpd-hpa restart
相关文章推荐
- Ubuntu13.04安装配置 tftp 服务方法
- Ubuntu13.04安装配置 tftp 服务方法
- Ubuntu13.04安装配置 tftp 服务方法
- ubuntu-13.04 tftp服务安装配置
- Ubuntu下配置tftp服务
- Ubuntu 配置tftp服务
- Ubuntu安装配置TFTP服务
- ubuntu10.04安装配置tftp服务
- Ubuntu下配置tftp服务和NFS服务
- Ubuntu 14.04 安装配置tftp及NFS服务
- Ubuntu下配置tftp服务和NFS服务
- ubuntu14.10 tftp服务配置20150824
- ubuntu下配置tftp服务
- ubuntu10.04下配置tftp服务
- Ubuntu下配置tftp服务和NFS服务
- ubuntu10.04 安装配置tftp服务
- Ubuntu tftp服务的配置
- 制作文件系统之四:Ubuntu中NFS和TFTP服务的配置
- Ubuntu安装配置TFTP服务
- Ubuntu配置tftp和nfs服务的步骤