06 2020 档案

摘要:Spacemacs配置yasnippe插件 简介 spacemacs也可以像vim一样配置快捷代码块,提高输入的效率。当前比较好用的插件是yasnippet。 安装yasnippet插件 修改.spacemacs配置文件 dotspacemacs-additional-packages '( ;; 阅读全文
posted @ 2020-06-26 22:53 jiftle 阅读(587) 评论(0) 推荐(0) 编辑
摘要:vim /etc/hosts.allowsshd:192.168.31.109:allow //只允许192.168.31.109登录vim /etc/hosts.denysshd:ALL //开启白名单,只允许192.168.31.109登录systemctl restart sshd ,重启ss 阅读全文
posted @ 2020-06-23 11:39 jiftle 阅读(3502) 评论(0) 推荐(0) 编辑
摘要:一. 设置firewall规则 例1:对外暴露8080端口 firewall-cmd --permanent --add-port=8080/tcp 例2:使mysql服务的3306端口只允许192.168.1.1/24网段的服务器能访问 #添加规则 firewall-cmd --permanent 阅读全文
posted @ 2020-06-23 11:04 jiftle 阅读(2782) 评论(0) 推荐(0) 编辑
摘要:Docker supports the following storage drivers: overlay2 is the preferred storage driver, for all currently supported Linux distributions, and requires 阅读全文
posted @ 2020-06-21 19:28 jiftle 阅读(288) 评论(0) 推荐(0) 编辑
摘要:阿里druid数据源配置及数据库密码加密 注意: 1、阿里默认只对用户密码解密 2、druid 1.0.16版本及以上的解密时需要同时配置publicKey 一.生成密文密码 1 前提:已经配置了jdk环境 1、生成密文密码需要准备druid的jar包.然后通过命令行生成,如下步骤: 1.1准备ja 阅读全文
posted @ 2020-06-17 14:37 jiftle 阅读(8577) 评论(0) 推荐(0) 编辑
摘要:Oh My Zsh 网址 https://ohmyz.sh/ 安装 # 安装zsh sudo apt install zsh -y # 安装oh my zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/ 阅读全文
posted @ 2020-06-15 09:37 jiftle 阅读(540) 评论(0) 推荐(0) 编辑
摘要:1. 理解压力测试压力测试的理解,xxx的性能10w/s,对你有意义么? 没有那家卖瓜的会说自己家的不甜,同样,没有哪个开源项目愿意告诉你在对它条件最苛刻的时候压力情况是多少,一般官网号称给你看的性能指标都是在最理想环境下的,毫无参考意义。举个栗子,redis官网压测的例子,256字节的读速度11w 阅读全文
posted @ 2020-06-12 08:56 jiftle 阅读(4224) 评论(2) 推荐(0) 编辑
摘要:pip3 install jupyterlab pip3 install notebook 使用jupyter jupyter 默认只能通过本地地址访问,要放开配置,允许jupyter远程访问。在放开远程访问时,需要设置密码,jupyter的配置文件只支持加密后的密文密码(赞一个) #生成jupyt 阅读全文
posted @ 2020-06-11 10:38 jiftle 阅读(277) 评论(0) 推荐(0) 编辑
摘要:在git config文件里面设置别名。git config --global alias.lg "log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue) 阅读全文
posted @ 2020-06-09 16:28 jiftle 阅读(7620) 评论(0) 推荐(2) 编辑
摘要:Dockerfile中使用HEALTHCHECK的形式有两种:1、HEALTHCHECK [options] CMD command(本次详细解释)2、HEALTHCHECK NODE 意思是禁止从父镜像继承的HEALTHCHECK生效下面我们主要介绍第一种形式的应用:options有三个参数可设定 阅读全文
posted @ 2020-06-09 16:13 jiftle 阅读(1852) 评论(0) 推荐(0) 编辑
摘要:压力测试的目标是测试出极限,或者理解为极限情况下应用程序的状态。 比如: 1. 磁盘满的情况下,服务能够正常的返回应答信息。 2. CPU资源占用>80%,情况下能够正常工作 3. 请求数保持固定的数目情况下,程序无故障运行时间 4. 测试的3个维度,客户端、服务端、服务器资源占用。 5. 极限测试 阅读全文
posted @ 2020-06-08 00:19 jiftle 阅读(691) 评论(0) 推荐(0) 编辑
摘要:处理已经存在的日志 查看当前Docker占用空间大小 ls -lh $(find /var/lib/docker/containers/ -name *-json.log) cat /dev/null > /var/lib/docker/containers/f3a48a90e5e46e23ddf6 阅读全文
posted @ 2020-06-06 23:42 jiftle 阅读(531) 评论(0) 推荐(0) 编辑
摘要:在 1-2 年前,Docker 所有容器都连接于默认的桥接网络上,也就是很多老文章鼓捣的 docker0 桥接网卡。因此实际上默认情况下所有容器都是可以互联的,没有隔离,当然这样安全性不好。而服务发现,是在这种环境下发展出来的,通过修改容器内的 /etc/hosts 文件来完成的。凡是 --link 阅读全文
posted @ 2020-06-06 23:40 jiftle 阅读(1765) 评论(0) 推荐(0) 编辑
摘要:# Nginx配置TCP服务负载均衡## 前置条件- nginx 1.18 (1.9之后支持tcp负载)- 两个前置服务## 配置文件修改LegacyStable```# cat nginx.confuser nginx;# 增加工作线程worker_processes 4;error_log /v 阅读全文
posted @ 2020-06-05 15:16 jiftle 阅读(1989) 评论(0) 推荐(0) 编辑
摘要:1. Docker容器的重启策略Docker容器的重启策略是面向生产环境的一个启动策略,在开发过程中可以忽略该策略。Docker容器的重启都是由Docker守护进程完成的,因此与守护进程息息相关。Docker容器的重启策略如下: no,默认策略,在容器退出时不重启容器 on-failure,在容器非 阅读全文
posted @ 2020-06-04 23:53 jiftle 阅读(2192) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="UTF-8"?> Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no decl 阅读全文
posted @ 2020-06-04 15:34 jiftle 阅读(404) 评论(0) 推荐(0) 编辑
摘要:官方仓库地址https://github.com/joaotavora/yasnippetEmacs: How to Define Templates in YASnippethttp://ergoemacs.org/emacs/yasnippet_templates_howto.htmlemacs 阅读全文
posted @ 2020-06-03 10:50 jiftle 阅读(223) 评论(0) 推荐(0) 编辑
摘要:安装python 3.x: 1.sudo apt-get install python3 安装完成后 2.sudo apt-get install ipython3 它所相对应的python版本为python3,是下面这个样子的 阅读全文
posted @ 2020-06-01 19:52 jiftle 阅读(561) 评论(0) 推荐(0) 编辑
摘要:Nov 18, 2018 pythonnet简介 pythonnet是cpython的扩展 pythonnet提供了cpython和.net程序集之间交互的桥梁 pythonnet开源在github上 pythonnet安装 通过pip install pythonnet安装 pythonnet的使 阅读全文
posted @ 2020-06-01 19:39 jiftle 阅读(479) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示