import inspect def foo(): # 获取栈帧的列表 stack = inspect.stack() # 获取调用者的栈帧,一般是第二个元素 caller_frame = stack[1] # 获取调用者的信息 caller_inf
1. 修改配置文件 vim /etc/ssh/sshd_config 大约在34行的#PermitRootLogin prohibit-password,修改为PermitRootLogin yes 大约在35行的#StrictModes yes,修改为StrictModes yes 2. 重启s
import psutil import socket import requests # 兼容Windows if 'AF_PACKET' not in socket.AddressFamily.__members__: socket.AddressFamily.AF_PACKET =
import logging # 重写日志 class MyLogHandler(logging.Handler): def emit(self, record): print(record.name, record.levelname, record.filename,
vi /etc/lightdm/lightdm.conf [SeatDefaults] autologin-user=username #需要登录的用户名 autologin-user-timeout=delay
执行docker-compose up -d后出现错误: ERROR: The Compose file './docker-compose.yaml' is invalid because: services.halo.healthcheck value Additional properties
RUN mkdir /etc/yum.repos.d/bak && mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/bak && curl -o /etc/yum.repos.d/CentOS-BaseOS.repo http: