集群外访问:用户->域名->负载均衡器->NodeIP:Port(ServiceIP)->PodIP:端口1、创建NodePort型Service资源清单[root@hdss7-21~]#kubectlcreatedeploymentnginx-dp--image=harbor.od.com/public/nginx:v1.7.9-nkube-public--replica
分类:
其他好文 时间:
2020-10-06 20:22:27
阅读次数:
28
下载源码包建立组和用户groupaddmysqluseradd-r-gmysql-s/bin/falsemysql解压解压mysqltarxvf/root/mysql-5.7.20-linux-glibc2.12-x86_64.tar.gz做软连接ln-smysql-5.7.20-linux-glibc2.12-x86_64/mysqlcdmysqlmkdirmysql-fileschown-Rm
分类:
数据库 时间:
2020-10-06 20:06:05
阅读次数:
41
Q1:xpinyin模块打包之后显示找不到指定文件Mandarin.dat description: 见标题 answer: 在Anaconda\Lib\site-packages\xpinyin路径下找到__init__.py 然后在__init__.py中编辑,找到 data_path = os ...
分类:
其他好文 时间:
2020-10-05 22:32:11
阅读次数:
56
1.编写注册接口 1.1 user/urls.py 中添加路由 urlpatterns = [ path('register/', views.RegisterView.as_view()), # 注册视图, /user/register/ ] 1.2 user/views.py 中写注册视图函数 ...
分类:
其他好文 时间:
2020-10-05 22:29:06
阅读次数:
35
java 服务端测试代码: @Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { buffer.writeShort(5); buff ...
分类:
编程语言 时间:
2020-10-05 21:23:34
阅读次数:
42
MQ 的作用的什么 : 异步解耦削峰 使用监听来控制队列有变化的时候,给你服务发送请求, 最后是一个监听对一个服务。 RabbitMQ 使用的协议 AMQP协议; Rabbit 添加方式有四种类型: 常用的三种类型: 1 direct Exchange 直连 路由键 routing key = 设置 ...
分类:
其他好文 时间:
2020-09-24 22:04:40
阅读次数:
44
开发环境:mac+python3.8.3+pyqt5.15.1+vscode 使用py2app打包运行后报错。 在命令行看到如下报错: Traceback (most recent call last): File "/Users/panda/Documents/work/python/xxx/di ...
分类:
其他好文 时间:
2020-09-24 21:51:42
阅读次数:
46
import xlrdapply_dic = []def get_excel(excel_path): with xlrd.open_workbook(excel_path) as workbook : name_sheets = workbook.sheet_names() #获取Excel的sh ...
分类:
其他好文 时间:
2020-09-24 21:49:24
阅读次数:
42
在之前解压的flink安装包中,创建一个软链接 ln -s flink-1.8.0 flink 配置flink的环境变量 #flink export FLINK_HOME=/opt/modules/flink export PATH=$FLINK_HOME/bin:$PATH 配置完成后,把flin ...
分类:
其他好文 时间:
2020-09-24 21:19:20
阅读次数:
44
交换机基本工作模式及命令 打开超级终端用consol线com口连接交换机,就能在终端配置交换机了。 内存是存不住东西的,一断电你的历史操作内容全没了。 把配置文件复制到硬盘里并改名staertup-config。 nfig 或者write(厂家不同,这条命令生不生效不知道,第一条命令一定生效)。 1... ...
分类:
其他好文 时间:
2020-09-24 21:11:32
阅读次数:
60