上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 113 下一页
摘要: 基础指令 查看进程数 ps -ef | wc -l 线程数 ps -eLf |wc -l 某个程序"http"的进程数 ps -ef | grep httpd | wc -l linux服务器查看进程、线程数量 阅读全文
posted @ 2020-07-10 15:22 jiftle 阅读(214) 评论(0) 推荐(0)
摘要: strA="helloworld" strB="low" if [[ $strA =~ $strB ]] then echo "包含" else echo "不包含" fi 摘自 阅读全文
posted @ 2020-07-09 11:28 jiftle 阅读(300) 评论(1) 推荐(1)
摘要: Spacemacs配置yasnippe插件 简介 spacemacs也可以像vim一样配置快捷代码块,提高输入的效率。当前比较好用的插件是yasnippet。 安装yasnippet插件 修改.spacemacs配置文件 dotspacemacs-additional-packages '( ;; 阅读全文
posted @ 2020-06-26 22:53 jiftle 阅读(619) 评论(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 阅读(3521) 评论(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 阅读(2835) 评论(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 阅读(294) 评论(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 阅读(8665) 评论(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 阅读(570) 评论(0) 推荐(0)
摘要: 1. 理解压力测试压力测试的理解,xxx的性能10w/s,对你有意义么? 没有那家卖瓜的会说自己家的不甜,同样,没有哪个开源项目愿意告诉你在对它条件最苛刻的时候压力情况是多少,一般官网号称给你看的性能指标都是在最理想环境下的,毫无参考意义。举个栗子,redis官网压测的例子,256字节的读速度11w 阅读全文
posted @ 2020-06-12 08:56 jiftle 阅读(4304) 评论(2) 推荐(0)
摘要: pip3 install jupyterlab pip3 install notebook 使用jupyter jupyter 默认只能通过本地地址访问,要放开配置,允许jupyter远程访问。在放开远程访问时,需要设置密码,jupyter的配置文件只支持加密后的密文密码(赞一个) #生成jupyt 阅读全文
posted @ 2020-06-11 10:38 jiftle 阅读(286) 评论(0) 推荐(0)
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 113 下一页