- 博客(250)
- 资源 (19)
- 收藏
- 关注
转载 redis 安装
Install and Configure Redis on CentOS 7UpdatedFriday, February 25, 2022, by LinodeRedis is an open-source, in-memory, data structure store with optional disk writes for persistence. It can be used as a key-value database, or as a cache and message bro.
2022-05-20 15:34:54 116
原创 maven命令案例
(1)根据jar包生成pom文件mvn install:install-file -Dfile=file-path-to-jar \-DgroupId=<group-info> -DartifactId=<artifactId> \-Dversion=<version> -Dpackaging=jar
2021-12-14 09:17:57 331
原创 linux文件服务器之间传输
加密传输数据--------方法1:两个服务其之间传递文件:server1: $ gzip -c /backup/mydb/mytable.MYD > mytable.MYD.gz $ scp mytable.MYD.gz root@server2:/var/lib/mysql/mydb/ server2: $ gunzip /var/lib/mysql/mydb/mytable.MYD.gz----------------------------------...
2021-09-30 16:00:25 111
原创 ubuntu修改网卡ip
sudo nano /etc/netplan/01-network-manager-all.yamlnetwork:version:2renderer:NetworkManagerethernets:ens33: dhcp4:no addresses: - 192.168.72.140/24 (修改为自己的ip) gateway4:192.168.72.2 nameservers: addresses:[8.8.8.8, 8.8.4.4]$sudo...
2021-09-17 15:12:46 877
原创 Mysql总结
查询锁表: show open tables where in_use >=1;SHOW ENGINE INNODB STATUS;死锁排查步骤: show engine innodb status; explain 查看间隙锁是否关闭: show global variables like "innodb_locks%"; show global variables like "autocommit";查询事务级别 show...
2021-09-17 11:25:29 71
原创 systemd详解
systemd通过unit文件进行服务管理,unit文件的格式与windows中ini文件一致[Unit]Description=ConditionPathExists=/etc/rsyncd.conf[Service]ExecStart=/usr/bin/rsync --daemon --no-detach[Install]WantedBy=multi-user.targetunit文件在系统中存储目录:/usr/lib/systemd/system或者/lib/syste
2021-09-10 07:36:05 1233
原创 MySQL galera集群安装和迁移之路
在/etc/yum.repo.d/文件夹新建文件galera.repo,写入一下内容[galera]name = Galerabaseurl = https://releases.galeracluster.com/galera-3/DIST/RELEASE/ARCHgpgkey = https://releases.galeracluster.com/GPG-KEY-galeracluster.comgpgcheck = 1[mysql-wsrep]name = MySQL-wsrepb
2021-09-09 14:09:19 328
原创 Remove files with names with spaces, and special characters such as -, —
Tip #1: Put filenames in quotes案例:rm "my resume.doc"Tip #2: Try a backslashTip #3: Try a ./ at the beginning of the filename案例:rm -v ./-fileTry #4 — at the beginning of the filename案例:rm -v -- -fileTip #5: Remove file by an inode number
2021-09-08 15:24:17 71
原创 How to Redirect Location to Another Domain in NGINX
案例:Redirect /product to new domain (www.newsite.com).server{... location /product { rewrite ^/product(.*)$ https://www.newsite.com/$1 redirect; }...}rewrite – rewrite command tells NGINX to change one or more URLs that match a giv...
2021-09-08 15:08:57 90
原创 rust --hashmap学习
hash map: HashMap<K, V>存储映射关系:类型K 到 类型V的映射;实现中使用hashing函数,决定key和value在内存中如何安置; 创建: hash map存储data在heap上; using std::collections::HashMap; let mut scores = HashMap::new(); scores.insert(String::from("Blu")...
2021-08-09 07:56:28 424
原创 rust --String学习
实现Display trait的类型调用to_string()直接转换为String; 创建: let mut s = String::new(); 或者 let data = "Initial content"; let s = data.to_string(); // 创建一个String包含initial content; 或者 let s = String::from("initi...
2021-08-09 07:20:55 386
原创 rust --vector 学习
list structure: 存储在heap中; Vec<T> 创建对象:let v: Vec<i32> = Vec::new(); 推断Vec类型:vec!宏; let v = vec![1, 2, 3]; 更新一个vector: let mut v = Vec::new(); v.push(5); v.push(6); v.push(7); ...
2021-08-09 06:56:15 349
原创 Rust模块系统管理
Rust referred to as the module system, include: Packages: A Cargo feature that lets you build, test, and share crates Crates: A tree of modules that produces a library or executable Modules and use: Let you control the organization, scope, and...
2021-07-27 18:11:05 211
原创 java中字段校验说明
jakarta-validation-api的实现是org.hibernate.validator;hibernate具体的实现包在org.hibernate.validator.internal.constraintvalidators中;
2021-07-26 15:46:35 366
原创 IDEAJ问题
(1)Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean。我们将tomcat包设置了<scope>provided</scope>,我们本意是打包的时候才不需要将这个包加入lib里面,正常调试编译是可以编译到的,那么可不可能是编译器的问题呢?我们打开idea运行时的配置Run=>Edit configurations好了,看到这里.
2021-07-14 14:46:24 94
原创 kong网关安装
$ sudo yum install /path/to/package.rpm## 安装PostgreSQL$ sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm$ sudo yum install postgresql96$ sudo yum install postgresql96-server##...
2021-07-06 15:35:28 298
原创 mysql优化1
mysql查询日志类型: general log: 当服务器读取的查询马上记下日志,可能包含错误的查询,不包含查询时间; slow log:只包含已经执行的查询,记录查询使用时间,用于调优;缺点是粒度太粗,时间到秒,信息不全 结合general log和slow log综合分析,进行调优 配置 log = <file_name> log-slow-queries = <...
2021-02-09 13:33:17 93
原创 重要的软件下载网站
http://www.acme.com/software/:下载http_load测试工具,测量服务器的吞吐量;https://github.com/akopytov/sysbench: sysbench测试工具http_load使用案例: http_load -parallel 5 -seconds 10 urls.txt http_load -rate 5 -seconds 10 urls.txt sysbench工具使用: sysbench --test=cp...
2021-02-08 16:49:55 99
原创 nacos集成相关问题汇总
集成nacos和dubbo,因org.springframework.cloud.openfeign.Targeter无法访问导致应用启动失败的解决方法首先,这是一个Spring boot web应用,集成了Spring cloud aliababa时,启动时报如下错误:Error creating bean with name 'feignTargeter' defined in class path resource [org/springframework/cloud/openfeign/Fei.
2021-02-01 16:29:56 619
转载 mysql表解锁思路
MySQL锁概述相对其他数据库而言,MySQL的锁机制比较简单,其最显著的特点是不同的存储引擎支持不同的锁机制。比如,MyISAM和MEMORY存储引擎采用的是表级锁(table-level locking);BDB存储引擎采用的是页面锁(page-level locking),但也支持表级锁;InnoDB存储引擎既支持行级锁(row-level locking),也支持表级锁,但默认情况下是采用行级锁。MySQL这3种锁的特性可大致归纳如下。开销、加锁速度、死锁、粒度、并发性能..
2021-01-22 10:13:31 76
原创 安装vim插件
Theory: When Vim start, it first process .vimrc file; Then scans all directories in ~/.vim for plugins contained in pack/*/start 1、install vim plugins and auto loading: (1) create directory: mkdir -p ~/.vim/pack/vendor/start (2) install plugin gi.
2021-01-09 14:53:15 110
原创 java 安全基础设施
Look into Java's built-in security infrastructure探究Java内置安全基础设施, System.setSecurityManager(new SecurityManager()); //使用默认安全监控,设置安全管理器 new URL("http://www.google.com").openConnection().connect(); 返回结果: java.security.AccessControlException: access .
2021-01-08 21:56:39 118
原创 cscope使用手册
(1)找到所有需要跟踪的文件,存储到cscope.files文件中find . -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" > cscope.files(2)将cscope.files传递给cscope,构建一个引用数据库cscope -q -R -b -i cscope.files(3)使用vim文本编辑器阅读源码vim xxx.cpp...
2021-01-07 21:06:52 177
原创 dos常用命令
1、用户相关命令: 查看当前登陆用户:net config workstation 查看系统所有用户:net user 查看某个用户的权限:net user tianma3798 将某个用户加入到管理组:net localgroup adminsitrators zhangsan /add2、文件夹以及文件权限修改 icacls c:\windows\* /save...
2021-01-07 10:20:19 97
原创 开源的防火墙
一、PfSense它与Untangle非常相似;但是,PfSense开源防火墙缺少一些其他功能,例如Web过滤和防病毒。但是,有超过三打的外部加载项可通过软件包管理器轻松安装。PfSense的主要功能:禁用过滤–如果要将PfSense变成纯路由器,可以完全禁用防火墙过滤器。 NAT(网络地址转换) HA(高可用性) 多WAN(广域网) 负载均衡 VPN(虚拟专用网) PPPoE服务器 图形和日志监控 动态DNS 专属门户 DHCP服务器和DHCP中继二、Untangle防火
2021-01-05 13:33:03 3228
原创 java实现输入流写入文件
(1)一般的java代码@Testpublic void whenConvertingToFile_thenCorrect() throws IOException { InputStream initialStream = new FileInputStream( new File("src/main/resources/sample.txt")); byte[] buffer = new byte[initialStream.available()]; .
2020-12-30 10:33:37 2477
原创 linux disk commands
mount: mount filesystem mount: list current mounted file system device on mount_point type filesystem mkdir /mnt/cdrom ## create a mount_point mount -t [filesystem] /dev/sdc /mnt/cdrom umount: remove filesystem umount /dev/sdcfdisk: d.
2020-12-16 07:40:23 114
原创 k8s命令汇总
登录某个容器:kubectl exec -i -t -n iot-ns task-jx-spring-0 -c jx-spring "--" sh -c "clear; (bash || ash || sh)"
2020-12-14 15:43:22 219
原创 解决springboot应用中文乱码
(1)yaml配置中添加如下属性application.properties配置文件中添加如下属性: spring: http: encoding: force: true charset: UTF-8 enabled: true server: tomcat: uri-encoding: UTF-8(2).
2020-12-14 15:43:13 393 1
原创 mysql模拟MINUS
SELECT * FROM suppliers_1_md5MINUSselect * FROM suppliers_2_md5;The where clause picks null values in SupplierID in Table 2, which limits to rows exist in Table 1 only.SELECT select_listFROM table1LEFT JOIN table2 ON join_predica.
2020-12-10 17:55:50 159
percona-server-server_8.0.20-11-1.bionic_amd64.deb
2020-09-23
percona-server-client_8.0.20-11-1.bionic_amd64.deb
2020-09-23
percona-server-common
2020-09-23
mindmaster-7-amd64.deb
2019-12-06
MathLab2011b破解文件
2013-09-07
cygwin(Linux console 在Windows64下的版本)
2013-09-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人