1.通过apache
//在linux中把文件放在/var/www/html目录,并打开apche,局域网内其他设备可以通过网址下载;
打开apache
# systemctl start apache2
设置默认打开apache,检查是否已开启
# systemctl enable apache2 # systemctl is-enabled apache2 enabled
//同一网段的其他设备,可通过浏览器输入地址"http://192.168.*.*/xxx.file"进行下载;
也可以通过在shell中命令获取:
# wget http://192.168.*.*/xxx.file
//其中192.168.*.*是存放文件的linux主机的ip地址;xxx.file为文件名;
//end
2.通过ssh
在linux上开启ssh, 通过xshell等软件连接;
# systemctl start sshd



