分类目录

链接

2024 年 5 月
 12345
6789101112
13141516171819
20212223242526
2728293031  

近期文章

热门标签

新人福利,免费薅羊毛

2021年可用的Microsoft login hosts

2021年可用的Microsoft login hosts  117.28.245.88 logincdn.msauth.net117.28.245.88 login.live.com117.28.245.88 account.live.com117.28.245.88 acctcdn.msauth.net

云计算 暂无评论 阅读(131)

.netcore docker 使用 UseUrls 绑定端口时无法访问

.netcore docker 使用 UseUrls 绑定端口时无法访问 目录结构DockerfileFROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS baseWORKDIR /appEXPOSE 8080COPY ./publish .ENV TZ=Asia/ShanghaiENTRYPOINT ["dotnet","CAS.Api.dll"] 生成容器:docker build -t cas.api .能够正常启动:docker run -d -p 8080:8080 cas.apidocker ps -a浏览器缺无法访问!!!服务器是没有打开防火墙的,应该不是这个问题。 进容器内去看看能不能访问:docker exec ...

Docker 暂无评论 阅读(175)

pip install Caused by SSLError

pip install lightgbm -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

Python 暂无评论 阅读(152)

docker pull提示x509错误的对应方法

google说是证书问题,于是我echo -n | openssl s_client -showcerts -connect registry.aliyuncs.com:4432>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'>/etc/ssl/certs/registry.aliyuncs.com.crtecho -n | openssl s_client -showcerts -connect k8s.gcr.io:4432>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'>/etc/ssl/certs/k8s.gcr.io.crt无效,还是有问题虽然x509为认证相关的问题,但是经过确认为虚拟机的时间与实际时间发生过大偏差所导...

Docker 暂无评论 阅读(130)

.Net连接Mysql数据库的Convert Zero Datetime日期问题

Convert Zero Datetime=True; 如题,其实这已经是以前遇到过的一个问题了。在.Net中使用Mysql的组件MySql.Data(Nuget.org的链接在这里http://www.nuget.org/packages/MySql.Data/)时需要在web.config的连接字符串中配置一些额外的属性,以最大程度地契合MS SERVER的数据类型,下面我以自己在实现工作遇到的问题为例子,来说明在连接字符串中配置的作用:Web.config连接Mysql字符串:12<span class="hljs-tag">&lt;<span class="hljs-name">add</span> <span class=...

.NET, MySQL 暂无评论 阅读(173)

dotnetCore利用Configuration读取自定义配置文件

在appsettings.json中:{"Logging":{"LogLevel":{"Default":"Warning"}},"Name":"Cas.Api","AllowedHosts":"*","urls":"http://0.0.0.0:8080","ConsulUrl":"http://127.0.0.1:8500","ConnectionStrings":{"DefaultConnection":"server=192.168.2.100;port=3306;database=dati;user=root;password=888888.;CharSet=utf8;"},"appid":"wx*******","secret":"xxx*********"}在controller中:private readonly IConfiguration _configuration;publicAppController(IConfiguration configurati...

Others 暂无评论 阅读(152)

k8s查看pod实时日志

  kubectl get pods|grep mut | awk '{print $1}'| xargs kubectl logs -f

LINUX 暂无评论 阅读(81)

idea bootrun: CreateProcess error=206, 文件名或扩展名太长

edit build.gradlebuildscript {  repositories {    maven {      url "https://plugins.gradle.org/m2/"    }  }  dependencies {    classpath "gradle.plugin.ua.eshepelyuk:ManifestClasspath:1.0.0"  }} apply plugin: "ua.eshepelyuk.ManifestClasspath" 

JAVA 暂无评论 阅读(266)

pe-deployment

kind: DeploymentapiVersion: apps/v1metadata:  name: pe-deployment  namespace: default   labels:    app: pe spec:  replicas: 1  selector:    matchLabels:      app: pe  template:    metadata:       labels:        app: pe    spec:      containers:        - name: pe          image: 'pe:20210531'          ports:            - containerPort: 3001              protocol: TCP

k8s 暂无评论 阅读(110)

k8s之mongo-deployment

kind: DeploymentapiVersion: apps/v1metadata:  name: mongo-deployment  namespace: default  labels:    app: mongospec:  replicas: 1  selector:    matchLabels:      app: mongo  template:    metadata:      labels:        app: mongo    spec:      containers:        - name: mongo          image: mongo          ports:            - containerPort: 27017              protocol: TCP      

k8s 暂无评论 阅读(131)