随笔分类 -  Linux

摘要:数据迁移导致的数据库数据不一致事件屡见不鲜。如何避免?如何闭坑? 阅读全文
posted @ 2020-01-10 11:09 上海小胖 阅读(1931) 评论(1) 推荐(0)
摘要:解决mongodb 启动告警 /sys/kernel/mm/transparent_hugepage/enabled is 'always'. /sys/kernel/mm/transparent_hugepage/defrag is 'always' soft rlimits too low. rlimits set to 15012 processes, 102400 files. Number of processes should be at least 51200 : 0.5 times number of files. 阅读全文
posted @ 2019-09-05 18:22 上海小胖 阅读(739) 评论(0) 推荐(0)
摘要:CentOS 6.2 安装Nginx时报错 错误提示: ./configure: error: the HTTP rewrite module requires the PCRE library. 解决办法: 1. 安装 pcre-devel 与 openssl-devel 2. yum -y install pcre-devel openssl openssl-devel 3. ./configure --prefix=/usr/local/nginx 4. make 5. make install 阅读全文
posted @ 2019-09-04 06:39 上海小胖 阅读(9529) 评论(0) 推荐(0)
摘要:今天安装软件nginx的时候遇到的报错:c compiler cc is not found 查了下网上的资料,解决方案也不复杂。 先说明下环境: - 服务器:CentOS 7 - nginx:2.3.1 原因是因为缺少 gcc-c++ 的包 解决办法很简单,执行:yum -y install gcc-c++ 阅读全文
posted @ 2019-09-03 21:30 上海小胖 阅读(34571) 评论(1) 推荐(1)