![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
wangjinyu124419
这个作者很懒,什么都没留下…
展开
-
centos虚拟机elasticsearch集群报错:failed to send join request to master
利用mac主机和centos虚拟机搭建个es集群,发现centos虚拟机es启动报错。完整信息:[2020-08-29T02:27:13,100][INFO ][o.e.d.z.ZenDiscovery ] [node-2] failed to send join request to master [{node-1}{JMIZXySPQh6ZMTpHAOtHKQ}{CtWr86TgQ7utoO22T5UROA}{172.16.88.1}{172.16.88.1:9300}], reaso..原创 2020-08-29 17:38:26 · 959 阅读 · 0 评论 -
mac系统nginx: [emerg] getgrnam("") failed 以及brew无法启动nginx
电脑重装后发现nginx有点问题,brew services start nginx 虽然显示成功了但是实际上没有启动nginx。需要用户brew services start nginx启动,因为nginx默认是root用户。所以想改下nginx的默认用户,改成自己的名字后还是报错,提示:nginx: [emerg] getgrnam("myname") failedngi...原创 2020-03-31 15:24:38 · 1143 阅读 · 0 评论 -
zsh 像bash一样提示未安装的软件
This feature is provided by thecommand-not-foundpackage. Ubuntu installs it by default, and makes it active by default in bash but not in zsh. Just add this line to your~/.zshrc:. /etc/zsh_comm...转载 2020-02-22 12:21:47 · 743 阅读 · 1 评论 -
nginx配置直接下载文件
location配置, location ~ ^/file { if ($request_filename ~* ^.*?\.(txt|doc|pdf)$){ add_header Content-Disposition: 'attachment'; add_header Content-Type a...原创 2020-02-20 23:47:51 · 8272 阅读 · 1 评论 -
MySQL show processlist过滤
背景有客户需要根据processlist做一些监控,需要用到过滤上面的操作。根据某个用户过滤mysql> select * from information_schema.processlist where User='UserName';+----------+------------+---------------------+------+---------------...转载 2019-10-24 17:08:51 · 1400 阅读 · 0 评论 -
linux 批量杀进程的命令
批量杀掉gunicorn:ps -ef | grep gunicorn | grep -v grep | awk '{print $3}' | xargs sudo kill -9 参考:https://blog.csdn.net/sky_zhe/article/details/9419665原创 2019-10-23 10:28:27 · 367 阅读 · 1 评论 -
Linux rsync实现断点续传
Linux 主机之间即时传送文件,scp命令大家都很熟悉但当要传送的文件较大,过程中如果网络中断了,就比较悲剧了。这时候可以考虑使用rsync命令替代scp,实现断点续传文件。试验:rsync使用环境:2台RHEL 5.7需求:主机A传送文件夹TestDB到主机B 1 rsync -rP--rsh=ssh /home/oracle/TestDB/ o...转载 2019-09-28 00:50:40 · 1216 阅读 · 0 评论