随笔分类 - Linux
摘要:数据迁移导致的数据库数据不一致事件屡见不鲜。如何避免?如何闭坑?
阅读全文
摘要:刚开始接触Python,首先要解决的就是Python开发环境的搭建。 目前比较好用的Python开发工具是PyCharm,他有社区办和专业版两个版本,但是社区版支持有限,我们既然想好好学python,那肯定得用专业的不是。 但他专业版要么只能试用一个月,要么就是 $ , 身为猿军中的一员怎么能让他们
阅读全文
摘要:解决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.
阅读全文
摘要: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
阅读全文
摘要:今天安装软件nginx的时候遇到的报错:c compiler cc is not found
查了下网上的资料,解决方案也不复杂。
先说明下环境:
- 服务器:CentOS 7
- nginx:2.3.1
原因是因为缺少 gcc-c++ 的包
解决办法很简单,执行:yum -y install gcc-c++
阅读全文