02 2022 档案
摘要:Cockpit是一个开源的Linux服务器的web管理工具。 官方项目地址为:https://cockpit-project.org/ 安装 yum install cockpit 简单配置和访问 启用cockpit.socket服务,用于运行web服务器,并设置为开机启动 systemctl st
阅读全文
摘要:# -*- coding:utf-8 -*- import threading import time class Producer(threading.Thread): # 生产者函数,重写run()方法 def run(self): global count while True: if con
阅读全文
摘要:代码段1: 1 # -*-coding:utf-8 -*- 2 from threading import Thread, BoundedSemaphore 3 from datetime import datetime 4 import time 5 6 # 定义一个函数 7 def showti
阅读全文