草庐IT

iaas-pre-host

全部标签

解读iaas-pre-host.脚本(国基北盛)

开始部分#!/bin/bash             #声明解释器路径                source/etc/xiandian/openrc.sh    #生效xiandian的环境变量SELinux部分#selinux            sed-i's/SELINUX=.*/SELINUX=permissive/g'/etc/selinux/config  #使用sed命令编辑selinuix的配置文件,永久关闭selinuxsetenforce0                           #临时关闭selinux1、什么是SELinux:SELinux(sec

云计算名词-IaaS,PaaS,SaaS

在学习分布式的过程中,知道了PaaS这个词儿,但是不知道是什么意思。从网上查询了之后,做了简单的了解。这里简单记录一下,方面之后的查阅。IAAS(Infrastructure-as-a-Service)基础设施即服务网上的定义是通过虚拟化技术将基础设施资源(如:服务器、存储和网络)提供给用户。比如:我们平时在阿里云上买的ECS服务器(要多少资源租多少就行)。PAAS(Platform-as-a-Service)平台即服务也是一种云服务,提供一整套的平台,包含操作系统,硬件设施,数据库,开发工具等典型的如:微信小程序(给你一个平台,自己开发想要的应用)这些可能是向外提供接口的一些服务,类似API

gitlab上传代码报错fatal: unable to access ‘http://gitlab********‘: Could not resolve host: gitlab.******

fatal:unabletoaccess‘http://gitlab.*******.git/’:Couldnotresolvehost:gitlab.*****尝试输入命令行:gitconfig--globalhttp.sslVerifyfalse

git 报错 Unable to negotiate with 106.52.160.162 port 22: no matching host key type found.

git提交代码时报错:git报错Unabletonegotiatewith106.52.160.162port22:nomatchinghostkeytypefound.Theiroffer:ssh-rsafatal:Couldnotreadfromremoterepository.Pleasemakesureyouhavethecorrectaccessrights原因:是Git找不到支持的密钥交换方法,因为新版Openssh中认为SHA1这种hash散列算法过于薄弱,已经不再支持,所以需要手动去允许对于SHA1的支持。解决办法:1、MacOS、Linux,在生成公钥的~/.ssh文件夹下,

git提交失败running pre-commit hook: lint-staged [33m‼ Some of your tasks use `git add` command

先上图吧0filecommitted,1filefailedtocommit:代码更新>runningpre-commithook:lint-staged[33m[33m‼[33mSomeofyourtasksusegitaddcommand.Pleaseremoveitfromtheconfigsinceallmodificationsmadebytaskswillbeautomaticallyaddedtothegitcommitindex.[39m[STARTED]Preparing…[SUCCESS]Preparing…[STARTED]Runningtasks…[STARTED]Ru

#开发环境篇:husky > pre-commit (node v14.15.0)

报错>git-cuser.useConfigOnly=truecommit--quiet--allow-empty-message--file-husky>pre-commit(nodev14.15.0)Stashingchanges...[started]Stashingchanges...[skipped]→Nopartiallystagedfilesfound...Runninglinters...[started]Runningtasksforsrc/**/*.{js,vue}[started]eslint--fix[started]eslint--fix[failed]→Runnin

解决cURL error 60: SSL: no alternative certificate subject name matches target host name ‘test.com‘

 按照提示前往libcurl-ErrorCodes说是SSL证书问题 解决方法:1.前往该路径下载https://curl.se/ca/cacert.pem 将文件里的内容全部复制下来,然后替换上图路径的/ca-bundle.crt 里面的内容保存即可若行不通可以尝试第二种方法2.在执行curl操作前在前面加上如下代码$ch=curl_init();curl_setopt($ch,CURLOPT_URL,"https://test.com/");curl_setopt($ch,CURLOPT_HEADER,false);//原本的代码段//...//...//...curl_close($ch

kubernetes自定义hosts域名解析

Docker的hosts文件是容器启动后动态加载的,所以无法在Dockerfile中设置,正常将可以通过配置公司的dns服务器访问集群外部域名解析,还有以下方法可参考:1、添加全局自定义域名解析        可以为coredns配置hosts来实现为kubernetes集群添加全局的自定义域名解析,适用于整个集群内都需要配置域名解析,但是需要重启coredns服务编辑coredns配置:kubectl-nkube-systemeditconfigmapcoredns加入hosts:hosts{ 10.10.10.10harbor.example.com 10.10.10.11grafana.

连接MySQL出现Host is not allowed to connect to this MySQL server 解决方法

翻译:‘不允许主机连接到此MySQL服务器’(意思是本地账号连接可以登录,但是远程登陆不行进入mysqlmysql-uroot-p输入数据库密码不知道密码可以去查mysql_secure_installation输入该命令行后看root@localhost:后的内容就是密码进入后依次输入下列命令行usemysql;updateusersethost='%'whereuser='root';FLUSHPRIVILEGES;最后退出mysqlexit;

Warning: Permanently added ‘github.com’ (ED25519) to the list of known hosts. git@github.com

解决:Warning:Permanentlyadded‘github.com’(ED25519)tothelistofknownhosts.git@github.com:Permissiondenied(publickey).fatal:Couldnotreadfromremoterepository.原因:GitHubSSH秘钥不对0.检查本地是否有id_rsa、id_rsa.pub密匙项目根目录下,输入命令ls~/.ssh(大概率没有以上两个文件,而只出现knownhosts)1.生成新秘钥ssh-keygen-ted25519-C"xxx@xxx.com"(邮箱名称可随便填写)后面一直“