增加 TFTP_服务安装和配置.
Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
parent
22a1c767e9
commit
55de12546b
|
@ -0,0 +1,38 @@
|
|||
# TFTP 服务安装和配置
|
||||
|
||||
## 安装
|
||||
|
||||
```sh
|
||||
# Ubuntu
|
||||
sudo apt-get install tftpd-hpa
|
||||
```
|
||||
|
||||
## 配置
|
||||
|
||||
```sh
|
||||
sudo vim /etc/default/tftpd-hpa
|
||||
```
|
||||
|
||||
修改为如下内容
|
||||
|
||||
```sh
|
||||
TFTP_USERNAME="tftp"
|
||||
TFTP_DIRECTORY="<your tftp share directory>"
|
||||
TFTP_ADDRESS=":69"
|
||||
TFTP_OPTIONS="-l -c -s"
|
||||
#TFTP_OPTIONS="--secure"
|
||||
```
|
||||
|
||||
## 使能/启动 TFTP 服务
|
||||
|
||||
```sh
|
||||
sudo systemctl enable tftp-hpa
|
||||
sudo systemctl start tftp-hpa
|
||||
```
|
||||
|
||||
## 停止/禁用 TFTP 服务
|
||||
|
||||
```sh
|
||||
sudo systemctl stop tftp-hpa
|
||||
sudo systemctl disable tftp-hpa
|
||||
```
|
Loading…
Reference in New Issue