原文:https://www.cnblogs.com/powerwu/articles/12978664.html 偶然看到一条命令可以获取访问者的真实 IP,就想自己实现一下。 命令如下: curl icanhazip.com 我是用的 Java 程序 + Nginx 实现的,没什么难度,但是 N ...
分类:
编程语言 时间:
2021-04-27 14:56:07
阅读次数:
0
已经有数据库,做主从复制 服务器 备注 数据库 192.168.137.6 Master 有2个数据库,不同步mysql数据库 192.168.137.3 Slave 没有数据库 Master操作 [mysqld] #############better########### log-bin = / ...
分类:
数据库 时间:
2021-04-27 14:50:54
阅读次数:
0
1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
select a.id,a.userid,c.openid from ko_answer_score a left join (select userid from ko_answer_log where answer_time > '2018-02-24 00:00:00' and answer_ ...
分类:
其他好文 时间:
2021-04-27 14:38:46
阅读次数:
0
MySQL spring.datasource.url=jdbc:mysql://localhost:3306/twitter_test?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8spring. ...
分类:
移动开发 时间:
2021-04-27 14:38:30
阅读次数:
0
/////////////////////////// 代码如下 <template> <div class="report-forms-page"> <div class="report-forms-main"> <div class="bottomForm"> <div style="margi ...
分类:
其他好文 时间:
2021-04-27 14:31:54
阅读次数:
0
ON DUPLICATE KEY UPDATE作用 先声明一点,ON DUPLICATE KEY UPDATE为Mysql特有语法,这是个坑语句的作用,当insert已经存在的记录时,执行Update 用法 什么意思?举个例子:user_admin_t表中有一条数据如下 表中的主键为id,现要插入一 ...
分类:
其他好文 时间:
2021-04-27 14:30:19
阅读次数:
0
1 Could not execute Write_rows event on table cs3.test01; Duplicate entry ‘7‘ for key ‘test01.PRIMARY‘ 1.1 主库操作 SHOW BINARY LOGS; PURGE BINARY LOGS TO ...
分类:
数据库 时间:
2021-04-27 14:28:23
阅读次数:
0
1:添加Nlog的组件 直接在NuGet里面搜索NLog.Web.AspNetCore 2:然后就是配置服务 public class Program { public static void Main(string[] args) { CreateHostBuilder(args).Build() ...
分类:
Web程序 时间:
2021-04-27 14:26:50
阅读次数:
0
ESLint模式下for in遍历对象会报错,可以这样解决: let val = { shu: [1, 2, 3] }; for (let item in val) { if (val.hasOwnProperty(item)) { console.log(item); } } 因为我们在遍历一个对 ...
分类:
移动开发 时间:
2021-04-27 14:25:28
阅读次数:
0