09 2017 档案
摘要:故障现象1: 运营商检测线路正常,但是端口无法up。 解决办法: 1、翻转端口 2、将端口速率强制为1000M,全双工#speed 1000 #dup full 端口正常UP。 故障现象2: 线路丢包5%。 解决办法: 1、检查端口光功率:#display transceiver diagnosis interface Ten-GigabitEthernet 1/0/XX 发现接受光...
阅读全文
摘要:#!/usr/bin/python import os import socket import _winreg #检测主机名,并将主机名作文检测结果的文件名 hostname = socket.gethostname() file = open(r'd:\%s.txt' % hostname, 'a') #定义检测位置 sub_key = [r'SOFTWARE\Microsoft\...
阅读全文
摘要:1、安装Apache web服务器 安装Apache web服务器:yum install -y httpd 启动Apache服务器systemctl start httpd 使用浏览器打开http://127.0.0.1检查Apache安装是否成功。 成功后,浏览器显示如下: 如果想Apache服务器开机后自动启动,可以使用如下命令:systemctl enable httpd 2、安装M...
阅读全文
摘要:现象: 非Root用户在使用sudo命令时,提示:"xxx is not in the sudoers file. This incident will be reported.(xxx为用户名) 解决办法: 使用 切换到root用户,编辑sudoers文件
阅读全文