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

广州建网站的公司免费建站系统官网

广州建网站的公司,免费建站系统官网,怎么做自己的公司网站放在百度,微信小程序开发常见问题ubuntu自动更新--unattended-upgrades 1 介绍2 发展历程3 配置与使用4 disable Auto update服务命令 参考 1 介绍 Unattended-Upgrades 是一个用于自动更新 Debian 及其衍生系统(如 Ubuntu)的工具。它的主要功能是自动检查、下载并安装系统更新&#xf…

ubuntu自动更新--unattended-upgrades

  • 1 介绍
  • 2 发展历程
  • 3 配置与使用
  • 4 disable Auto update
    • 服务命令
  • 参考

1 介绍

Unattended-Upgrades 是一个用于自动更新 Debian 及其衍生系统(如 Ubuntu)的工具。它的主要功能是自动检查、下载并安装系统更新,特别是安全更新,从而确保系统的安全性和稳定性。该工具通过后台运行,无需用户干预,大大简化了系统维护工作。
在这里插入图片描述

2 发展历程

Unattended-Upgrades 最初是为了简化 Debian 系统的安全更新流程而开发的。随着 Ubuntu 的发展,它逐渐成为 Ubuntu 系统中默认安装的组件之一。从 Ubuntu 16.04 开始,Unattended-Upgrades 的更新触发机制从传统的 cron 定时任务转变为通过 systemd 的 timer unit 来实现。这种改进使得更新任务的调度更加灵活和高效。

3 配置与使用

安装:可以通过命令 sudo apt-get install unattended-upgrades 安装该工具。
配置:主要配置文件位于 /etc/apt/apt.conf.d/50unattended-upgrades,用户可以在此文件中指定自动更新的规则,例如允许更新的软件源、是否自动移除未使用的依赖包等。
自定义更新频率:通过编辑 /etc/apt/apt.conf.d/20auto-upgrades 文件,可以设置更新检查和安装的频率。

bot@u22:/etc/apt/apt.conf.d$ ls
00aptitude        15update-stamp       20packagekit           60icons
00trustcdrom      20apt-esm-hook.conf  20snapd.conf           60icons-hidpi
01autoremove      20archive            50appstream            70debconf
01-vendor-ubuntu  20auto-upgrades      50command-not-found    99update-notifier
10periodic        20dbus               50unattended-upgrades
bot@u22:/etc/apt/apt.conf.d$ cat 20auto-upgrades 
APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

4 disable Auto update

Ubuntu uses the unattended-upgrades package to handle automatic updates. You can disable this service to prevent automatic updates.

# 显示状态
bot@u22:~/sen$ systemctl status unattended-upgrades
● unattended-upgrades.service - Unattended Upgrades ShutdownLoaded: loaded (/lib/systemd/system/unattended-upgrades.service; enabled; >Active: active (running) since Wed 2025-04-06 06:25:39 CST; 12min agoDocs: man:unattended-upgrade(8)Main PID: 1003 (unattended-upgr)Tasks: 2 (limit: 4551)Memory: 11.7MCPU: 264msCGroup: /system.slice/unattended-upgrades.service└─1003 /usr/bin/python3 /usr/share/unattended-upgrades/unattended->4月 06 06:25:39 u22 systemd[1]: Started Unattended Upgrades Shutdown.
# 停止服务
bot@u22:~/sen$ sudo systemctl stop unattended-upgrades
[sudo] password for bot: 
# 取消服务的开机启动
bot@u22:~/sen$ sudo systemctl disable unattended-upgrades
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable unattended-upgrades
Removed /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service.
bot@u22:~/sen$ systemctl status unattended-upgrades
○ unattended-upgrades.service - Unattended Upgrades ShutdownLoaded: loaded (/lib/systemd/system/unattended-upgrades.service; disabled;>Active: inactive (dead)Docs: man:unattended-upgrade(8)4月 06 06:25:39 u22 systemd[1]: Started Unattended Upgrades Shutdown.
4月 06 06:52:48 u22 systemd[1]: Stopping Unattended Upgrades Shutdown...
4月 06 06:52:48 u22 systemd[1]: unattended-upgrades.service: Deactivated succes>
4月 06 06:52:48 u22 systemd[1]: Stopped Unattended Upgrades Shutdown.
bot@u22:~/sen$

服务命令

systemctl enable:除了激活服务以外,也可以置服务为开机启动
systemctl disable:取消服务的开机启动systemctl start:依次启动定义在 Unit 文件中的 ExecStartPre、ExecStart 和 ExecStartPost 命令
systemctl stop:依次停止定义在 Unit 文件中的 ExecStopPre、ExecStop 和 ExecStopPost 命令
systemctl restart:重启服务
systemctl kill:立即杀死服务service service_name status:查看服务状态

参考

1、How to disable Auto update for my instance
2、Linux 服务管理 service systemd systemctl

http://www.dtcms.com/wzjs/368710.html

相关文章:

  • 专业深圳网站建设寻找客户资源的网站
  • 建站abc免费版站长收录
  • 泗阳网页定制seo是付费还是免费推广
  • 做网站送给女友意义深圳网站建设专业乐云seo
  • 制作网页网站的软件seo是什么职位简称
  • 网站宣传推广互联网营销师是哪个部门发证
  • p图做网站兼职关键词排名优化软件价格
  • 临朐网站建设建站首选哪家公司营销咨询
  • 最新办公室设计百度seo公司电话
  • 高端的赣州网站建设深圳最新通告今天
  • 网站后台能进前台空白优秀营销软文100篇
  • 搜索网站做推广网站提交工具
  • 网站图标只做百度网站建设
  • 58同城青岛网站建设长沙seo优化推广
  • 响应式企业网站公司推广网站
  • 做花生的网站名词解释搜索引擎优化
  • 赣州网站设计哪里好快手seo软件下载
  • 建设网站创业网络销售每天做什么
  • 全屏滚动式网站站长平台
  • 廉政网站建设最快的新闻发布平台
  • 网站建设管理与维护ppt金华百度seo
  • 丹徒网站建设公司海外网络专线
  • 做服装有哪些好的网站网络营销方式哪些
  • 做酒店工作去哪个招聘网站好人民日报新闻消息
  • 婚纱摄影网站首页百度推广助手下载
  • 中国wix网站制作公司seo排名优化软件
  • 广州各区正在进一步优化以下措施东莞百度推广排名优化
  • 无锡网站建设企业排名百度收录入口在哪里查询
  • dw怎么做别人可以看的网站人工智能培训心得
  • 有做装修效果图赚钱的网站吗国内b站不收费网站有哪些