linux设备上,执行eth0端口,up和down操作,并统计ping状态
摘要:#!/usr/bin/env python3 import os import time import random import subprocess from enum import Enum class InterfaceState(Enum): DOWN = 0 UP = 1 def pin
阅读全文
posted @
2025-06-26 17:51
Star*S
阅读(24)
推荐(0)
Ubuntu搭建ipv6 dhcp 服务器
摘要:Ubuntu 搭建 DHCP ivp6 server 步骤 1、安装 DHCP server sudo apt-get install isc-dhcp-server 2、修改配置文件 /etc/dhcp/dhcpd6.conf default-lease-time 2592000; preferr
阅读全文
posted @
2024-10-12 15:12
Star*S
阅读(860)
推荐(0)
Ubuntu20.04下 vsftpd.service 状态报错code=exited, status=2解决以及简单配置
摘要:1、状态报错,启动失败 2、主要原因是ipv4和ipv6不能同时被监听,所以,注释ipv6 3、 重启服务并且登录localhost,输入用户名和密码,显示登录成功 4、配置指定目录,确保对应的值如下 anonymous_enable=NO local_enable=YES write_enable
阅读全文
posted @
2023-06-16 21:00
Star*S
阅读(1670)
推荐(1)
docker学习链接
摘要:https://haicoder.net/docker/docker-ubuntu-install.html
阅读全文
posted @
2022-12-28 14:16
Star*S
阅读(23)
推荐(0)
Ubuntu 中tab键不能自动补全解决方法
摘要:1、打开文件vim /etc/bash.bashrc(root下操作)2、找到下面几行 3、去掉前面的#号 4、最后source /etc/bash.bashrc即可
阅读全文
posted @
2022-12-28 14:13
Star*S
阅读(3966)
推荐(2)
centos安装k8s
摘要:1、确保每台机器上有docker http://get.daocloud.io/#install-docker 2、关闭 每台机器上的swap,selinux swapoff -a setenforce 0 sed -i 's/^SELINUX=enforcing$/SELINUX=disable/
阅读全文
posted @
2022-12-22 16:26
Star*S
阅读(381)
推荐(0)
centos 通过yum安装docker-ce报错
摘要:通过yum安装docker-ce报错,是因为本机安装过多次造成的,如下所示,需要解决掉冲突依赖,从新安装 1 从 https://mirrors.aliyun.com/docker-ce/linux/centos/gpg 检索密钥 2 导入 GPG key 0x621E9F35: 3 用户ID :
阅读全文
posted @
2022-12-21 16:17
Star*S
阅读(853)
推荐(0)
centos 添加yum源失败,ping 百度没响应
摘要:1、 curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo执行命令,一直没有成功 2、检查是否ping的通百度,结果没有反应,修改network配置文件
阅读全文
posted @
2022-12-07 20:49
Star*S
阅读(273)
推荐(0)
centos虚拟机yum update报错Another app is currently holding the yum lock; waiting for it to exit...
摘要:1、运行yum update报错 [root@localhost ~]# yum update已加载插件:fastestmirror, langpacks/var/run/yum.pid 已被锁定,PID 为 95864 的另一个程序正在运行。Another app is currently hol
阅读全文
posted @
2022-12-07 14:59
Star*S
阅读(294)
推荐(0)
Linux修改系统时间
摘要:linux修改系统时间命令是date -s,如: date -s "2022-10-24 12:00:00" 最后,再输入命令hwclock -w写入BIOS,否则重启后系统时间失效: hwclock -w 另外,如果只需修改具体时间,不修改日期,可使用命令: date -s 12:00:00 同理
阅读全文
posted @
2022-12-02 13:16
Star*S
阅读(1686)
推荐(0)