Linux
doris_peng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
php安装扩展gd报错解决
问题: checking whether to enable JIS-mapped Japanese font support in GD... no configure: error: webp/decode.h not found. 解决: yum install -y libwebp libwebp-devel原创 2017-11-13 16:41:58 · 7621 阅读 · 0 评论 -
centos7 yum安装php7
参考 :http://blog.youkuaiyun.com/tomspcc/article/details/71696691因https方式打不开网址,故而采用http方式连接安装php7yum源 rpm -Uvh http://mirror.webtatic.com/yum/el7/webtatic-release.rpm修改mirrorlist 编辑/etc/yum.repos.d/{web...转载 2018-03-13 11:51:39 · 1015 阅读 · 0 评论 -
sftp子系统申请已拒绝 请确保ssh连接的sftp子系统设置有效
转自:http://blog.youkuaiyun.com/settingsun66/article/details/54616227 打开配置: [root@bogon ~]# vi /etc/ssh/sshd_config 将 # override default of no subsystems # Subsystem sftp /usr/libe转载 2017-11-27 15:54:59 · 1418 阅读 · 1 评论 -
tmp目录下文件被删除
描述:线上服务器tmp目录下有一目录用来接收部署系统发送的压缩文件并解压到运行目录,但是该目录多次消失导致部署报错 分析:想起来centos6系统中有tmpwatch文件配置tmp目录内容自动清除机制,查询发现centos7下改为systemd-tmpfiles-setup.service服务统一控制,其配置文件在/usr/lib/tmpfiles.d/tmp.conf v /tmp 1777原创 2017-12-05 15:23:49 · 2724 阅读 · 0 评论 -
mongo无法正常认证登录
参考文档:http://www.jb51.net/article/62918.htm 问题:某个节点mongodb服务在本节点可以正常认证登录,在其他节点报错: Error: 18 { ok: 0.0, errmsg: "auth failed", code: 18, codeName: "AuthenticationFailed" } 查资料发现应该是本节点mongo为源码安装,与其他节点原创 2017-11-24 10:22:55 · 3650 阅读 · 0 评论 -
tortoisegit无法克隆代码问题解决记录
问题描述:同事使用的tortoisegit clone项目时报错如下: git.exe clone --progress -v "git@git.linewin.cc:share/protocol.git" "E:\github\tortoise\protocol" Cloning into 'E:\github\tortoise\protocol'... fatal: Could not原创 2017-11-23 15:47:27 · 37118 阅读 · 2 评论 -
某项目网站频繁出现503问题解决
问题描述:公司某项目频繁出现503 问题分析:503一般是因为服务器维护或者过载,近期服务器并未进行维护,查询监控记录发现负载也不是很高,猜测是不是服务器对项目的某些配置产生了限制,查看nginx,php日志发现: [15-Nov-2017 15:23:51] WARNING: [pool www] server reached pm.max_children setting (5), con原创 2017-11-21 09:43:36 · 8516 阅读 · 0 评论 -
php安装mongo扩展问题解决
问题: configure: error: sasl.h not found! 解决: yum list|grep sasl yum install -y cyrus-sasl-devel cyrus-sasl原创 2017-11-14 10:22:16 · 717 阅读 · 0 评论 -
php安装imagick问题解决
问题: checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist checking Testing /usr/bin/MagickWand-config... Doesn't ex原创 2017-11-13 17:28:21 · 4322 阅读 · 0 评论 -
zabbix监控mongo数据库,数据空白段问题解决
问题描述: 公司使用zabbix对mongo数据库进行基础监控,出于节省资源的角度考虑把监控数据采集和zabbix server获取数据分开,数据采集由计划任务管理,数据采集包括以下部分: */1 * * * * /usr/local/zabbix/scripts/refresh_file.sh mongo_status */1 * * * * sleep 30; /usr/lo原创 2017-11-08 16:39:26 · 806 阅读 · 0 评论 -
supervisor管理进程停止异常问题记录
问题描述: Python写的程序直接使用supervisor管理,正常启动后多次停止进行代码调整,结果发现CPU飙高,ps检查后发现是这个python程序存在多个进程。问题分析: supervisor在管理时没能真正停止进程,kill -9 杀死所有进程后重新启动服务,ps显示进程发现有两个一样的进程: root 18082 1353 0 14:41 ?原创 2017-10-25 23:30:49 · 9736 阅读 · 0 评论 -
dos文件
问题描述: Linux执行shell脚本时报错如下: mkdir: cannot create directory `/usr/local/zabbix/logs\r': No such file or directory 'est2.bash: line 16: syntax error near unexpected token `in 'est2.bash: line 16: `原创 2017-10-24 15:54:51 · 400 阅读 · 0 评论 -
Linux伙伴系统
转载自http://blog.youkuaiyun.com/vanbreaker/article/details/7605367 伙伴系统的概述 Linux内核内存管理的一项重要工作就是如何在频繁申请释放内存的情况下,避免碎片的产生。Linux采用伙伴系统解决外部碎片的问题,采用slab解决内部碎片的问题,在这里我们先讨论外部碎片问题。避免外部碎片的方法有两种:一种是之前介绍过的利转载 2017-11-09 18:10:56 · 392 阅读 · 0 评论 -
linux终端ssh连接超时问题记录
问题描述:公司某台服务器搭建了jumpsever服务,在使用其登陆其他服务器时,windows下使用xshell连接一切正常,Linux下终端1-2min不适用终端就会卡死,无法输入内容,只能强行关闭。 问题分析:首先考虑是否为服务设置的超时产生效果,查看代码jlog/log_api.py: def kill_invalid_connection(): unfinished_logs原创 2017-10-23 22:12:19 · 6740 阅读 · 0 评论 -
gitlab修改默认端口号
问题:gitlab 拉取文件是报错: ssh: connect to host xxx.xxxxxxxx.xxxxx port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights原创 2017-11-08 17:53:00 · 3344 阅读 · 0 评论 -
gitlab迁移
备份: gitlab-rake gitlab:backup:create RAILS_ENV=production 备份路径:/var/opt/gitlab/backups,发送备份文件至对方节点备份路径下 恢复: 修改权限为777 cd /opt/gitlab/bin/ chmod 777 /var/opt/gitlab/backups/1505740476_2017原创 2017-11-08 17:43:01 · 457 阅读 · 0 评论 -
一条命令的简单脚本记录(1)
问题描述: 开发写的服务会每天产生一个日志,日志没有设定保存时间,长此以往日志会大量占据磁盘空间,导致报警 问题解决: 计划任务调用如下脚本: find /var/log/ -name 'main*' -mtime +6 -exec rm -rf {} \; /var/log为日志路径。main为所有日志文件向相同的部分, +6表示保存七天,过滤出符合要求的文件删除原创 2017-11-08 17:08:56 · 346 阅读 · 0 评论
分享