散打狼在安装mysql的时候,在下图中的Startservice这个步骤出错,我尝试用客户端登录,无法登录,报错如下。解决办法如下MySQL连接错误,使用Navicat连接MySQL出现错误:1045Accessdeniedforuser‘root‘@‘localhost‘(usingpassword:YES)解决方法:编辑mysql配置文件my.ini(在mysq
分类:
数据库 时间:
2020-09-11 16:15:01
阅读次数:
66
server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location /static/ { alias /var/www/api/la ...
分类:
其他好文 时间:
2020-09-11 16:13:08
阅读次数:
52
ping localhost时出现: 在cmd中ping localhost解析出来的是ipv6的::1的原因是windows有个优先解析列表,当ipv6的优先级高于ipv4时,就会出现这种情况。 具体解决方法如下: 1.打开命令提示符:输入命令netsh interface ipv6 show p ...
分类:
其他好文 时间:
2020-09-10 22:39:28
阅读次数:
91
将模板添加给主机后需要如下配置:1,数据库授权获取数据的用户grantselecton.tozabbixmonitor@"localhost"identifiedby"zabbixmonitor";flushprivileges;2,配置文件vim/etc/zabbix/.my.cnf[client]hostname=localhostuser=zabbix
分类:
数据库 时间:
2020-09-08 20:59:23
阅读次数:
63
1 连接阿里云服务器 打开远程连接工具进行配置,这里以CRT为例。 1)新建一个session 2)填写hostname(填写公网ip) 2 修改hosts文件 [root@hadoop001 ~]# vim /etc/hosts 127.0.0.1 localhost localhost ::1 ...
分类:
其他好文 时间:
2020-09-07 18:57:02
阅读次数:
43
1、使用json-server插件 可以根据一个json文件,开启一个接口服务器,并且提供假数据。 2、如何使用? -安装:`npm i json-server -g` -使用:`json-server json文件的路径` 如:http://localhost:3000/list 3、遵循REST ...
分类:
其他好文 时间:
2020-09-03 16:46:33
阅读次数:
37
若你使用过Shell中的awk工具,会发现用它来分割字符串是非常方便的。特别是多个连续空格会被当做一个处理。[root@localhost~]#catdemo.txthelloworld[root@localhost~]#[root@localhost~]#awk‘{print$1,$2}‘demo.txthelloworld可是转换到Python上面来呢?结果可能是这样的。>>>
分类:
编程语言 时间:
2020-08-29 15:14:27
阅读次数:
65
yum install gcc 结果报错: [root@localhost ~]# yum install gcc Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * epel: ...
分类:
其他好文 时间:
2020-08-27 17:12:52
阅读次数:
174
1、简述一个用户到底是怎么请求到k8s里服务的首先用户在浏览器中输入域名,然后DNS服务器将域名解析到我们的VIP,经过L7层的负载均衡器均衡的分配到其中的一个ingress,他会在这个ingress中监听访问的URL的规则,然后根据这个规则找到kube_proxy实现的service,最后service根据标签来匹配对应的Pod来提供服务。用户--->VIP--->L7负载均衡---
分类:
其他好文 时间:
2020-08-26 17:17:38
阅读次数:
53