一、安装iptables 1.1、查看是否安装 systemctl status iptables 输出结果表示没有安装该服务,需要先安装。 1.2、安装iptables yum install iptables-services 输出结果表示安装完成。 1.3、检查是否安装成功 systemctl ...
分类:
系统相关 时间:
2020-06-20 15:45:46
阅读次数:
72
"App": { "CorsOrigins": "http://manage.l.cn,http://www..cn,https://www.lu.cn,,http://u.cn,https://portal.edu.cn" }, services.AddCors(options => { opti ...
分类:
Web程序 时间:
2020-06-20 14:06:17
阅读次数:
66
在Startup文件的ConfigureServices函数里注入服务 public void ConfigureServices(IServiceCollection services) { #region Cors跨域请求 services.AddCors(c => { c.AddPolicy( ...
分类:
Web程序 时间:
2020-06-20 01:29:58
阅读次数:
99
本文是Kubernetes.io官方文档中介绍如何创建暴露外部IP地址的Kubernetes Service 对象。 学习目标 运行Hello World应用程序的五个实例。 创建一个暴露外部IP地址的Service对象。 使用Service对象访问正在运行的应用程序。 准备工作 安装kubectl ...
分类:
Web程序 时间:
2020-06-19 23:15:58
阅读次数:
106
解决方案:1、cmd中,用regedit打开注册表2、在 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters下 1)右击parameters,添加一个新的DWORD,名字为MaxUserPort 2)然后双击Ma ...
分类:
编程语言 时间:
2020-06-19 16:34:52
阅读次数:
84
Networking overview One of the reasons Docker containers and services are so powerful is that you can connect them together, or connect them to non-Do ...
分类:
Web程序 时间:
2020-06-19 16:24:16
阅读次数:
70
// 添加Swagger services.AddSwaggerGen(c => { //接口文档名称 c.SwaggerDoc("v1", new OpenApiInfo { Title = "百川新成WEB API", Version = "v1" }); // 获取xml文件名 var xml ...
分类:
Web程序 时间:
2020-06-19 12:00:46
阅读次数:
115
net core 3.1 Authorize 1 //配置authorrize services.AddAuthentication(b => { b.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationSch ...
分类:
Web程序 时间:
2020-06-18 12:58:23
阅读次数:
83
docker-compose.yml文件样板: version: "3" services: message-service: image: message-service:latest user-service: image: user-service:latest command: - "--m ...
分类:
其他好文 时间:
2020-06-18 12:33:46
阅读次数:
149
关于docker-compose的安装这里就不做介绍了,可以看我之前的文档 vim docker-compose.yaml version: '3.5' services: zabbix-server: image: zabbix/zabbix-server-mysql:centos-5.0-lat ...
分类:
其他好文 时间:
2020-06-18 10:34:35
阅读次数:
379