![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
服务器
xdreamman
这个作者很懒,什么都没留下…
展开
-
supervisor elasticsearch 排坑
ERROR: [1] bootstrap checks failed[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]原创 2020-08-08 09:42:35 · 435 阅读 · 1 评论 -
mysql查询时构建自增ID(自增序列)
SELECT (@i:=@i+1) as id from YaoJianChina,(Select @i:=0) B where based_code like "%1222%" limit 0,3;id 1 2 3 SELECT (@i:=@i+1) as id from YaoJianChina,(Select @i:=30) B where based_code like "%1222%" limit 3,3;id 31 32 33原创 2020-07-09 15:09:23 · 1025 阅读 · 1 评论 -
【mysql】pymysql.err.InterfaceError Interface Error: (0, ‘‘)
Packet sequence number wrong - got 7 expected 2(数据包序列号错误)经过排查,是因为我多线程 采用的是单例的数据库连接,导致抢占,抛出的异常。解决方案是,取消单例,每个线程实例化。原创 2020-07-08 10:05:37 · 526 阅读 · 0 评论 -
error: while accessing
sh-4.1# git clone https://github.com/EthanRosenthal/gpu-streamz.gitInitialized empty Git repository in /home/work/workspace/gitrepo/temp/gpu-streamz/.git/error: while accessing https://github.com/E...原创 2020-04-23 22:48:31 · 1023 阅读 · 0 评论 -
全新服务器搭建iMobiTrax系统
1. 使用xshell连接服务器后,首先修改服务器密码 passwd然后 参考https://www.advertcn.com/forum.php?mod=viewthread&tid=22939&highlight=imobi1. 安装lnmp2. 添加域名3. 需要单独创建一个MySQL用户,权限给足4. 把imob放进去安装百度云链接:ht...原创 2019-12-04 10:47:10 · 1158 阅读 · 0 评论 -
Linux下执行脚本报错: invalid option 2: set: -
建议shell 均检查一下,不然会导致脚本之间调用失败,无法查到原因因为windows 编写的shell文件,因为编辑器问题导致。文件为dos格式应该修改为 unix格式在vim 编辑栏 可以使用set ff 查看文件格式: set ff显示如下 fileformat=unix 修改方法: set ff=unix...原创 2019-11-29 13:37:31 · 4586 阅读 · 0 评论 -
Linux中使用crontab调用Python发送邮件,电子邮件文本转到一个名为ATT00001.bin的附件文件的解决方案
原因:解决方案:os.system("export LANG=zh_CN.UTF-8 && 你的其他代码")原创 2019-10-09 11:25:47 · 683 阅读 · 0 评论 -
centos7 按照搜狗导致的一系列问题
1. 按照搜狗输入法的时候,参照这个文章https://blog.csdn.net/longzhutengyue/article/details/84677922,我卸载了ibus,然后 就无法进入图形界面了2. 然后修复过程中,根据这个文章https://blog.csdn.net/ljx_ahut/article/details/99293289,systemctl enable gd...原创 2019-09-17 11:21:54 · 284 阅读 · 0 评论 -
shell 切割URL获取文件名
业务逻辑:请求URL 得到新的URL,然后wget 指定文件名,下载文件url=http://baidu.com/clouddd_file/recoddrd/impddort/enddd2end/casdde_10/casdde_10.tar.gz # 规则 ${parameter//pattern/string} # \/ 表示反斜杠转义,把/替换为空filename_list...原创 2019-08-29 15:13:10 · 2038 阅读 · 0 评论 -
cento6 使用mail命令指定发件人
echo"测试邮件内容,成功啦!"|mail-s"邮件标题,测试"-rfrom@csdn.net to@csdn.net目的是为了避免暴露服务器地址,所以修改自己想要设置的发件人,或者可以在/etc/mail.rc 下面增加几行,我没有测试。因为在开发中没有sudo权限 所以还是直接在命令行里面 增加参数比较ok...原创 2019-08-21 14:47:33 · 1414 阅读 · 0 评论 -
centos 7 删除旧内核
电脑提示 /boot 目录已经满了,因为升级内核之后,旧的内核还在,导致的。把旧的内核删掉就ok了1 首先看下现在运行的内核版本[xteam@collect-server boot]$ uname -r3.10.0-957.27.2.el7.x86_642 列出所有的内核版本[xteam@collect-server boot]$ rpm -q kernelkernel-3....原创 2019-08-12 10:57:21 · 835 阅读 · 0 评论 -
nginx 部署多个uwsgi 以及出现的问题
今天项目中,前端请求数据,需要同步进行,有时后端处理时间过长,造成超时,此时我的配置如下:nginxlocation /pf/ {proxy_buffering off;proxy_set_header Host $http_host;proxy_pass 10.100.100.40:8830;}uwsgi[uwsgi]http=10.100.100.40:8830以上...原创 2019-08-06 18:14:33 · 1896 阅读 · 0 评论 -
paramiko 修改服务器用户密码
python 远程修改服务器某用户的密码如果是以非root用户登陆,前提该用户属于root组,以及在/etc/suders root ALL=(ALL) ALL 下面加入一行,把root改为你的用户名# coding:utf8import paramikoimport times = paramiko.SSHClient()s.set_missing_host_key_...原创 2019-08-01 17:31:21 · 1640 阅读 · 0 评论 -
redis bind
在网上看相关资料的时候: 大部分都解释 bind表示允许 某些IP访问,这个理解是错误的bind 表示接受自己电脑某个网卡的请求,一般情况下一个服务器就两个IP,一个是127.0.0.1,另外一个是对外的ip,我自己使用的是 bind 127.0.0.1 176.122.122.122 这个等同于 bind 0.0.0.0,所有人可以使用 176.122.122.122:...原创 2019-07-30 15:11:35 · 270 阅读 · 0 评论 -
winscp 上传文件 错误码 4
当时网上搜索解决办法,都说是磁盘满了,我们的服务器比较大,所以我潜意识就把这个因素排除了。怪我对服务器容量太自信,没想到home下面1T空间都被造完了。。。提醒大家,出现这种错误,不要过于自信,先排查一下磁盘空间一般错误(服务器应该提供错误描述)。错误码:4服务器返回的错误消息:Failure...原创 2019-06-20 14:08:17 · 7633 阅读 · 0 评论