mvc处理乱码:①public String isreg(User u,HttpServletRequest request)②String name = u.getname(); String str = new String(name.getBytes("iso-8859-1"),"utf-8" ...
分类:
编程语言 时间:
2020-07-28 22:53:10
阅读次数:
108
1.配置MHA实时备份binlog [root@db03 ~]# vim /service/mha/app1.cnf [root@db03 ~]# vim /service/mha/app1.cnf ...... [binlog1] # 把主库的binlog日志备份到本地 no_master=1 h ...
分类:
其他好文 时间:
2020-07-28 22:48:32
阅读次数:
107
1.VIP漂移的两种方式 1.keeplaived的方式 2.MHA自带的脚本进行VIP漂移 2.配置MHA读取VIP漂移脚本 #编辑配置文件 [root@db03 ~]# vim /service/mha/app1.cnf #在[server default]标签下添加 [server defau ...
分类:
其他好文 时间:
2020-07-28 22:44:25
阅读次数:
106
一、进入搜索模式 1. 打开文件,狂按 <Esc> 进入normal模式,然后按 / 或者 :/ 进入搜索模式,添加上关键字例如world,按回车即搜索world; :/world #向后搜索 2. 打开文件,狂按 <Esc> 进入normal模式,然后按 ? 或者 :? 进入搜索模式,添加上关键字 ...
分类:
系统相关 时间:
2020-07-28 22:21:12
阅读次数:
95
#include <iostream> #include <fstream> #include <string> #include <vector> #include <windows.h> using namespace std; string UTF8ToGB(const char* str) ...
分类:
编程语言 时间:
2020-07-28 14:12:09
阅读次数:
119
转至:http://www.178linux.com/88128 vim编辑器的使用总结: vim在工作过程当中有三种模式:编辑模式、输入模式、末行模式。 1、编辑模式:即命令模式,键盘操作常被理解为编辑命令; 2、输入模式:在文本文件当中进行输入内容; 3、末行模式:vim内置的命令行接口,执行v ...
分类:
系统相关 时间:
2020-07-28 14:10:27
阅读次数:
72
问题状况: response = requests.get(url=url, headers=headers).text html = etree.HTML(response) name = html.xpath("/html/body/div[2]/ul/li[1]/a/p/text()")[0] ...
分类:
编程语言 时间:
2020-07-28 14:08:09
阅读次数:
87
1,安装sqlite: sudo apt-get install sqlite 2,先打开以超级用户身份打开/etc/apt/source.list sudo vim /etc/apt/sources.list 3,然后在末尾加入下方代码,然后保存。 deb http://archive.ubunt ...
分类:
数据库 时间:
2020-07-28 14:05:08
阅读次数:
98
配置 Keepalived - 主 1. 通过命令 vim keepalived.conf 打开配置文件 global_defs { # 路由id:当前安装keepalived的节点主机标识符,保证全局唯一 router_id keep_171 } vrrp_instance VI_1 { # 表示 ...
分类:
其他好文 时间:
2020-07-28 13:57:35
阅读次数:
77
string myString = Marshal.PtrToStringAnsi(ocrStr); #region 转换为utf-8编码 byte[] bytes = Encoding.Default.GetBytes(myString); string myStringr = Encoding. ...