自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 ubuntu 服务器时间不对需要同步

时间不同步

2023-10-17 11:29:20 236

原创 ubuntu 20.04 docker安装

官网源安装阿里源安装apt update。

2023-10-17 11:24:18 83

原创 etx使用ldap账号登录认证,以及账号添加和license激活

比如服务域名为server.xxx.com,那填写方式为: uid={u},cn=users,cn=accounts,dc=xxx,dc=com。第7步选择一个ldap账号,输入账号密码认证就可以。

2022-10-09 15:39:17 945 1

原创 python ansible api + fastapi写华为网络设备下发api接口

#encoding=utf-8from fastapi import Body,FastAPI,Depends,Queryfrom typing import Optional,Listfrom pydantic import BaseModelfrom ruamel import yaml#参考 https://zhuanlan.zhihu.com/p/118411015import jsonimport shutilfrom ansible.module_utils.common.

2022-03-11 23:14:58 1078

原创 ansible playbook 华为网络设备配置保存

test.yml---- name: CloudEngine hosts: route connection: network_cli gather_facts: no vars: cli: hosts: "{{inventory_hostname}}" port: "{{ansible_ssh_port}}" username: "{{ansible_ssh_user}}" password: "{{ansible_ss...

2022-03-11 01:11:35 558

原创 ansible playbook 华为网络设备自动下发

test.yml---- name: CloudEngine hosts: route connection: network_cli gather_facts: no vars: cli: hosts: "{{inventory_hostname}}" port: "{{ansible_ssh_port}}" username: "{{ansible_ssh_user}}" password: "{{ansible_s

2022-03-11 00:29:48 473

原创 华为交换机 nornir + textfsm使用入门

安装相关模块pip3 install netmikopip3 install napalmpip3 install nornirpip3 install nornir_utilspip3 install nornir_napalmpip3 install nornir_netmikopip3 install textfsm创建相关配置文件(config.yml,defaults.yaml,groups.yaml,hosts.yaml)config.yml---inv

2022-01-31 23:23:15 1474

原创 Environment Modules 安装配置

Modules 下载路径( sourceforge.net/projects/modules/files/Modules )依赖tcl安装(下载不作说明): ./configure --prefix=安装路径 LDFLAGS=-Wl,-rpath='\$$ORIGIN/../lib'(xxx为自己的相关安装路径)Modules安装:./configure --prefix=xxx/modules/1.0/lnx --with-tcl=xxx/lib --with-tcl-ver=8.3 --wi

2022-01-31 14:58:04 1115

原创 华为云调用api获取vpc信息(token方式)

#encoding=utf-8import requestsrequests.packages.urllib3.disable_warnings()import jsonfrom retrying import retry@retrydef ListVpcsRequest(requests,region,project_id,token): url = "https://vpc."+region+".xxx/"+project_id+"/vpc/vpcs" #vpc的url 由.

2022-01-31 14:37:49 1330

原创 华为云调用api获取vpc信息(ak/sk方式)

#encoding=utf-8from huaweicloudsdkcore.auth.credentials import BasicCredentialsfrom huaweicloudsdkcore.exceptions import exceptionsfrom huaweicloudsdkcore.http.http_config import HttpConfigfrom huaweicloudsdkvpc.v2 import *def list_vpc(client): .

2022-01-31 13:57:47 1945

原创 linux rhel7/centos7源码编译安装emacs报错No X toolkit could be found

具体报错:checking for libXaw... configure: error: No X toolkit could be found. If you are sure you want Emacs compiled without an X toolkit, pass --with-x-toolkit=no to configure. Otherwise, install the development libraries for the toolkit that you want to

2021-08-18 16:03:17 647

原创 rhel7 linux安装谷歌浏览器

google浏览器 rpm包google-chrome-stable_current_x86_64.rpm需要先安装依赖(rpm -i * --force):liberation-fonts-1.07.2-16.el7.noarch.rpmliberation-fonts-common-1.07.2-16.el7.noarch.rpmliberation-mono-fonts-1.07.2-16.el7.noarch.rpmliberation-narrow-fonts-1.07.2-16..

2021-08-12 10:20:18 680

原创 cuda和cudnn的安装

1.cudnn下载需要注册账号,所以先注册登录https://developer.nvidia.com/login2.cuda下载安装下载:https://developer.nvidia.com/cuda-toolkit-archive选择runfile文件安装,安装之前kill相关进程lsof|grep nvidialsof|grep nvidia*3.cudnn下载安装选择对应的cuda版本的cudnn下载:https://developer.nvidia.com/rd

2021-08-05 17:05:08 309

原创 netapp存储 api接口

ONTAP REST APIhttps://szc-netapp-sm/docs/api

2021-06-07 16:32:28 665

原创 重启linux服务器报错

1.readonly file system重新挂载 ,mount / -o remount,rw2.网络ping不通service network restart

2021-06-04 17:21:38 312

原创 bash:fork:retry:Resource temporarily unavailable

问题解决:bash: fork: retry: Resource temporarily unavailable1.limit.conf已经设置得很大,但是问题依然存在2.用脚本不断创建线程发现ps -eLf|wc -l 到达10800就会到达瓶颈然后报错(参考文章 https://www.tutorialfor.com/questions-314508.htm )用于复现问题得脚本#include <stdio.h>#include <stdlib.h>#inc

2021-06-04 16:57:28 446

转载 Qt--操作sqlite总结

原文地址:http://blog.csdn.net/NewBee520/article/details/8247236QSqlDatabase类实现了数据库连接的操作QSqlQuery类用来执行SQL语句QSqlRecord类封装数据库所有记录QSqlRelationalTableModelQSqlQueryModelQSqlTableModel第一:QSqlDat

2017-04-16 16:35:50 461

原创 Smart Install Maker制作安装包自动填写环境变量

首先打开注册表编辑器输入regedit,按回车后就会出现注册表编辑器环境分为:1、系统变量HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment这个路径下的path就是系统变量的path2、用户变量HKEY_CURRENT_USER\Environ

2016-09-17 15:48:46 3753 3

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除