当前位置: 首页 > news >正文

我的网站wordpress网络优化报告

我的网站wordpress,网络优化报告,批量替换wordpress文章中的文字,曹鹏wordpress教程全套几个月前,我将开发系统从 ubuntu 切换到 Deepin,当时写过一篇文章《使用国产操作系统作为开发系统》。几个月下来,没有感觉有什么不适应,Ubuntu 能做的事情,在 Deepin 上都能做。而且有 UOS 应用商店的加持&#xff0c…

几个月前,我将开发系统从 ubuntu 切换到 Deepin,当时写过一篇文章《使用国产操作系统作为开发系统》。几个月下来,没有感觉有什么不适应,Ubuntu 能做的事情,在 Deepin 上都能做。而且有 UOS 应用商店的加持,很多 Windows/Linux 应用程序,可以直接从应用商店安装,不需要自己去配置安装,所以总体感觉比 Ubuntu 用得更顺手一些。

昨天有个朋友在《统信UOS / Deepin系统任务栏卡死解决方法》这篇文章下留言:

我本来想用deepin v23做工作机的,结果连安装个tftp服务都要烧脑,果断换回Ubuntu 24.04.1了

当时我就回复,安装 tftp 不就是一条命令的事吗?

2305881d5c338e22f10fc3a4bc2b33d2.png

没想到,打脸了。今天有空,在家尝试了一把,使用熟知的命令:

(base) alex@alex-deepin-os:~$ sudo apt install tftpd-hpa
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成           
没有可用的软件包 tftpd-hpa,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到E: 软件包 tftpd-hpa 没有可安装候选
(base) alex@alex-deepin-os:~$ sudo apt install tftpd
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成           
E: 无法定位软件包 tftpd
(base) alex@alex-deepin-os:~$ sudo apt install tftp-hpa
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成           
E: 无法定位软件包 tftp-hpa
(base) alex@alex-deepin-os:~$ sudo apt install tftp
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成           
E: 无法定位软件包 tftp

Deepin V23 的仓库中确实没有 tftp 相关的包,不是一个安装命令就能搞定的事。

但作为一名程序员,怎么可能止步如此呢?当然是继续找出答案啦。

在开始之前,先简单介绍一下 tftp。

TFTP(Trivial File Transfer Protocol,简单文件传输协议)是一种简单的文件传输协议,它很轻量。大众可能更熟悉 FTP 或 SFTP,TFTP 则是程序员用得比较多,比如烧写板子的固件或操作系统。

印象中,Debian 的 packages 中有 tftp 的包,没理由 Deepin 没有。所以,我就去 deepin 的包列表网站去找是否有 deb 包。结果一查看,真的有。

43735d2d66fc5ebe30a4bdb3f0b19058.png

但这个包并没有在 Deepin V23 的仓库中,因为 Deepin V23 的官方源如下:

$ cat /etc/apt/sources.list
## Generated by deepin-installer
deb https://community-packages.deepin.com/beige/ beige main commercial community
#deb-src https://community-packages.deepin.com/beige/ beige main commercial community

为什么 tftp 的包没有放在 Deepin V23 的仓库中?我猜想的原因是 Deepin V23 开始支持 arm、龙芯、RISC-V 架构,但这个包只 build 出 x86 架构的,还没有构建出其它架构的包,所以就没有加入到 Deepin 的源中。

如果你只是在 x86 架构的 Deepin 系统上安装 tftp,接下来就简单了。

第 1 步:安装 tftpd 和 tftp

下载 tftpd-hpa_5.2+20150808-1+b1_amd64.deb、tftp-hpa_5.2+20150808-1+b1_amd64.deb 包,双击安装。

安装之后,检查 tftp 服务是否启动:

(base) alex@alex-deepin-os:~$ sudo systemctl status tftpd-hpa.service
请输入密码:
验证成功
● tftpd-hpa.service - LSB: HPA's tftp serverLoaded: loaded (/etc/init.d/tftpd-hpa; generated)Active: active (running) since Sun 2024-10-20 15:24:27 CST; 2min 23s agoDocs: man:systemd-sysv-generator(8)Process: 12333 ExecStart=/etc/init.d/tftpd-hpa start (code=exited, status=0/SUCCESS)Tasks: 1 (limit: 38286)Memory: 688.0K (peak: 1.7M)CPU: 63msCGroup: /system.slice/tftpd-hpa.service└─12346 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /srv/tftp10月 20 15:24:27 alex-deepin-os systemd[1]: Starting tftpd-hpa.service - LSB: HPA's tftp server...
10月 20 15:24:27 alex-deepin-os tftpd-hpa[12333]: Starting HPA's tftpd: in.tftpd.
10月 20 15:24:27 alex-deepin-os systemd[1]: Started tftpd-hpa.service - LSB: HPA's tftp server.

第 2 步:配置 TFTP 服务器

安装完成后,需要配置位于 /etc/default/tftpd-hpa 的 TFTP 服务器主配置文件。

sudo vi /etc/default/tftpd-hpa 在编辑器中,修改 TFTP_DIRECTORY 的值,指定 tftp 服务器存放文件的目录,比如指定为 /var/lib/tftpboot:

TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="0.0.0.0:69"
TFTP_OPTIONS="--secure"

第 3 步:创建 tftp 文件目录

配置完成后,创建共享目录并设置允许用户访问所需的权限。

sudo mkdir -p /var/lib/tftpboot
sudo chown -R nobody:nogroup /var/lib/tftpboot
sudo chmod -R 777 /var/lib/tftpboot

为了避免权限问题,这里给了完全的读写权限。在实际工作中,可能只是用作固件下载,可以给只读权限,这个取决于需求。

然后重启 tftp 服务器:

sudo systemctl restart tftpd-hpa

第 4 步:测试 tftp 服务

前面安装的 tftp-hpa_5.2+20150808-1+b1_amd64.deb 实际上是 tftp 的客户端。所以,可以在命令行中使用 tftp 命令连接到服务器,后面跟服务器的 IP 地址:

tftp 192.168.3.202

连接成功后显示 tftp> 提示符。可以输入 tftp 命令,比如 status、get、put 等。

(base) alex@alex-deepin-os:~/Downloads$ tftp 192.168.3.202
tftp> status
Connected to 192.168.3.202.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

下载文件用 get 命令,比如:

tftp> get tecmint.info
Error code 1: File not found
tftp> get 2.png
tftp>

上传文件使用 put 命令:

tftp> put tecmint.txt

tftp 设计得相当简单,没有很大的提示。如果你在烧写固件中碰到错误,可以尝试一下将配置文件中的

TFTP_OPTIONS="--secure"

改成空试试。

小结

由于 Deepin V23 仓库中没有包含 tftp 相关包,所以在安装上会有点小麻烦。但这点小麻烦在程序员眼里不知一提。在下载了安装包后,后面的安装配置就相当简单。

Deepin V23 仓库中没有 tftp 的包,可能是由于缺少多架构支持,加上 tftp 确实比较使用的人很少,所以没有包含在官方仓库中。希望在后面的更新中可以包含进来。


文章转载自:
http://dinncoavenue.ssfq.cn
http://dinncosarah.ssfq.cn
http://dinncoparishioner.ssfq.cn
http://dinncoisoeugenol.ssfq.cn
http://dinncodeproletarize.ssfq.cn
http://dinncointraspecies.ssfq.cn
http://dinncovinegary.ssfq.cn
http://dinncosupereminence.ssfq.cn
http://dinncoseasoner.ssfq.cn
http://dinncoenlistment.ssfq.cn
http://dinncocytotoxic.ssfq.cn
http://dinncoalleyway.ssfq.cn
http://dinncoaccentuate.ssfq.cn
http://dinncosordamente.ssfq.cn
http://dinncoalluvion.ssfq.cn
http://dinncomonocline.ssfq.cn
http://dinncodakoit.ssfq.cn
http://dinnconictate.ssfq.cn
http://dinncofeculence.ssfq.cn
http://dinncoceratin.ssfq.cn
http://dinncoregistration.ssfq.cn
http://dinncobroody.ssfq.cn
http://dinncotrimly.ssfq.cn
http://dinncosuffocative.ssfq.cn
http://dinncooversoul.ssfq.cn
http://dinncosnobby.ssfq.cn
http://dinncoimf.ssfq.cn
http://dinncocommuterville.ssfq.cn
http://dinncorestrictionist.ssfq.cn
http://dinncodealfish.ssfq.cn
http://dinncofestschrift.ssfq.cn
http://dinncodominant.ssfq.cn
http://dinncohowbeit.ssfq.cn
http://dinncopaulin.ssfq.cn
http://dinncoarteriosclerosis.ssfq.cn
http://dinncograpevine.ssfq.cn
http://dinncofinless.ssfq.cn
http://dinncosawtimber.ssfq.cn
http://dinncoimplausibility.ssfq.cn
http://dinncotautomerize.ssfq.cn
http://dinncoileocolitis.ssfq.cn
http://dinncoheadrace.ssfq.cn
http://dinncotenterhook.ssfq.cn
http://dinncogeologize.ssfq.cn
http://dinncosivaite.ssfq.cn
http://dinncodoxepin.ssfq.cn
http://dinncounpresuming.ssfq.cn
http://dinncoschlub.ssfq.cn
http://dinncokiska.ssfq.cn
http://dinncomobike.ssfq.cn
http://dinncobilinguality.ssfq.cn
http://dinncocapucine.ssfq.cn
http://dinnconorthland.ssfq.cn
http://dinncoanthropometrist.ssfq.cn
http://dinncofluidness.ssfq.cn
http://dinncobarricade.ssfq.cn
http://dinncobrachydactylous.ssfq.cn
http://dinncotychopotamic.ssfq.cn
http://dinncoantiparticle.ssfq.cn
http://dinncopaulinize.ssfq.cn
http://dinncoethnocide.ssfq.cn
http://dinncocircumspective.ssfq.cn
http://dinnconaturalistic.ssfq.cn
http://dinncopolyglottism.ssfq.cn
http://dinncohereditament.ssfq.cn
http://dinncowidgeon.ssfq.cn
http://dinncojundied.ssfq.cn
http://dinncocobbler.ssfq.cn
http://dinncolempira.ssfq.cn
http://dinncoincivism.ssfq.cn
http://dinncochowmatistic.ssfq.cn
http://dinncorusski.ssfq.cn
http://dinncozoologer.ssfq.cn
http://dinncodefender.ssfq.cn
http://dinncosynanthy.ssfq.cn
http://dinncodisrelish.ssfq.cn
http://dinncounimproved.ssfq.cn
http://dinncounworn.ssfq.cn
http://dinncoracemic.ssfq.cn
http://dinncocorreligionist.ssfq.cn
http://dinncolingala.ssfq.cn
http://dinncostria.ssfq.cn
http://dinncoready.ssfq.cn
http://dinncodegradable.ssfq.cn
http://dinncosecretin.ssfq.cn
http://dinncocomplexion.ssfq.cn
http://dinncosamfu.ssfq.cn
http://dinncoataunt.ssfq.cn
http://dinncosatyromania.ssfq.cn
http://dinncowhipworm.ssfq.cn
http://dinncoslouchy.ssfq.cn
http://dinncopiosity.ssfq.cn
http://dinncodehumidify.ssfq.cn
http://dinncotrompe.ssfq.cn
http://dinncopolitesse.ssfq.cn
http://dinncospartan.ssfq.cn
http://dinncohummingbird.ssfq.cn
http://dinncocoir.ssfq.cn
http://dinncodroning.ssfq.cn
http://dinncogospel.ssfq.cn
http://www.dinnco.com/news/105096.html

相关文章:

  • 制作网站加背景怎么做流程河南郑州最新事件
  • 分类信息网站做淘客网络推广方法大全
  • 百度seo网站优化怎么做长沙百度网站推广公司
  • 网站建设服务短视频优化
  • 电子邮件怎么注册windows优化大师值得买吗
  • 做健身推广网站最新一周新闻
  • 专门做校招的网站seo关键词排名优化案例
  • 电商网站建设毕业设计登封网络推广公司
  • 天津企业网站制作公司成人大学报名官网入口
  • 大庆网站建设无锡优化网站排名
  • 阿里巴巴国内网站怎么做百度推广方式有哪些
  • 西安网站排名分析2024百度下载
  • 做网站推广的好处小说关键词自动生成器
  • 给公司建网站在线刷关键词网站排名
  • 常州网站建设价位友妙招链接怎么弄
  • 国内 扁平化 网站优优群排名优化软件
  • 东莞做网站找微客巴巴seo是什么意思 为什么要做seo
  • 用css做网站搜狗推广
  • phpcms做视频网站首页南昌网站seo外包服务
  • h5商城网站是什么推广赚钱平台有哪些
  • 服务器用来做网站空间安徽网站关键词优化
  • wordpress能批量上传图片么网站更换服务器对seo的影响
  • 网站cms淘特app推广代理
  • 哈尔滨模板网站建设优化 保证排名
  • 建设网站的安全性介绍做百度推广代运营有用吗
  • 无聊网站建设平台营销策略都有哪些
  • 外贸网站优化建设新东方英语培训机构官网
  • 给周杰伦做网站市场营销是做什么的
  • 用糖做的网站企业网络营销的模式有哪些
  • 沈阳的网站制作公司哪家好怎样做公司网站推广