w

  1. root@well:/etc# vim sysctl.conf
  2.  
  3. #kernel.domainname = example.com
  4.  
  5. #
  6. # /etc/sysctl.conf - Configuration file for setting system variables
  7. # See /etc/sysctl.d/ for additional system variables.
  8. # See sysctl.conf () for information.
  9. #
  10.  
  11. #kernel.domainname = example.com
  12.  
  13. # Uncomment the following to stop low-level messages on console
  14. #kernel.printk =
  15.  
  16. ##############################################################
  17. # Functions previously found in netbase
  18. #
  19.  
  20. # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
  21. # Turn on Source Address Verification in all interfaces to
  22. # prevent some spoofing attacks
  23. #net.ipv4.conf.default.rp_filter=
  24. #net.ipv4.conf.all.rp_filter=
  25.  
  26. # Uncomment the next line to enable TCP/IP SYN cookies
  27. # See http://lwn.net/Articles/277146/
  28. # Note: This may impact IPv6 TCP sessions too
  29. #net.ipv4.tcp_syncookies=
  30.  
  31. # Uncomment the next line to enable packet forwarding for IPv4
  32. #net.ipv4.ip_forward=
  33.  
  34. # Uncomment the next line to enable packet forwarding for IPv6
  35. # Enabling this option disables Stateless Address Autoconfiguration
  36. # based on Router Advertisements for this host
  37. #net.ipv6.conf.all.forwarding=
  38.  
  39. ###################################################################
  40. # Additional settings - these settings can improve the network
  41. # security of the host and prevent against some network attacks
  42. # including spoofing attacks and man in the middle attacks through
  43. # redirection. Some network environments, however, require that these
  44. # settings are disabled so review and enable them as needed.
  45. #
  46. # Do not accept ICMP redirects (prevent MITM attacks)
  47. #net.ipv4.conf.all.accept_redirects =
  48. #net.ipv6.conf.all.accept_redirects =
  49. # _or_
  50. # Accept ICMP redirects only for gateways listed in our default
  51. # gateway list (enabled by default)
  52. # net.ipv4.conf.all.secure_redirects =
  53. #
  54. # Do not send ICMP redirects (we are not a router)
  55. #net.ipv4.conf.all.send_redirects =
  56. #
  57. # Do not accept IP source route packets (we are not a router)
  58. #net.ipv4.conf.all.accept_source_route =
  59. #net.ipv6.conf.all.accept_source_route =
  60. #
  61. # Log Martian Packets
  62. #net.ipv4.conf.all.log_martians =
  63. #
  1. root@well:/# redis-server
  2. [] Apr ::13.317 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
  3. _._
  4. _.-``__ ''-._
  5. _.-`` `. `_. ''-._ Redis 2.8. (/) bit
  6. .-`` .-```. ```\/ _.,_ ''-._
  7. ( ' , .-` | `, ) Running in stand alone mode
  8. |`-._`-...-` __...-.``-._|'` _.-'| Port:
  9. | `-._ `._ / _.-' | PID: 1143
  10. `-._ `-._ `-./ _.-' _.-'
  11. |`-._`-._ `-.__.-' _.-'_.-'|
  12. | `-._`-._ _.-'_.-' | http://redis.io
  13. `-._ `-._`-.__.-'_.-' _.-'
  14. |`-._`-._ `-.__.-' _.-'_.-'|
  15. | `-._`-._ _.-'_.-' |
  16. `-._ `-._`-.__.-'_.-' _.-'
  17. `-._ `-.__.-' _.-'
  18. `-._ _.-'
  19. `-.__.-'
  20.  
  21. [] Apr ::13.318 # Server started, Redis version 2.8.
  22. [] Apr ::13.318 # WARNING overcommit_memory is set to ! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
  23. [] Apr ::13.318 * The server is now ready to accept connections on port
  24. ^C

redis add 'vm.overcommit_memory = 1' to /etc/sysctl.conf的更多相关文章

  1. linux的vm.overcommit_memory的内存分配参数详解

    公司的redis有时background save db不成功,通过log发现下面的告警,很可能由它引起的: [13223] 17 Mar 13:18:02.207 # WARNING overcom ...

  2. 道破Redis的VM

    原创文章是freas_1990.转载请注明出处:http://blog.csdn.net/freas_1990/article/details/42052813 Redis唯一的那个key的value ...

  3. /etc/sysctl.conf配置文件

    # vi /etc/sysctl.conf # add by digoal.zhou fs.aio-max-nr = fs. kernel.core_pattern= /data01/corefile ...

  4. 长连接锁服务优化实践 C10K问题 nodejs的内部构造 limits.conf文件修改 sysctl.conf文件修改

    小结: 1. 当文件句柄数目超过 10 之后,epoll 性能将优于 select 和 poll:当文件句柄数目达到 10K 的时候,epoll 已经超过 select 和 poll 两个数量级. 2 ...

  5. Centos7.5调试/etc/sysctl.conf文件导致宕机

    今天安装greenplus数据库,需要调试一个核心文件/etc/sysctl.conf文件,结果导致系统异常宕机,出现的问题就是使用任何命令都不能输出正确的结果,只有这个显示: 不知道是什么原因,ls ...

  6. 【转】转 Linux调优方案,sysctl.conf的设置

      http://blog.sina.com.cn/s/blog_541086000100skq0.html proc/sys/net/ipv4/下各项的意义 http://blog.chinauni ...

  7. 转 Linux调优方案,sysctl.conf的设置

    $ /proc/sys/net/core/wmem_max最大socket写buffer,可参考的优化值:873200 $ /proc/sys/net/core/rmem_max最大socket读bu ...

  8. 系统优化 /etc/sysctl.conf

    # sysctl settings are defined through files in # /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl ...

  9. Linux记录-sysctl.conf优化方案

    Sysctl是一个允许您改变正在运行中的Linux系统的接口.它包含一些 TCP/IP 堆栈和虚拟内存系统的高级选项, 这可以让有经验的管理员提高引人注目的系统性能.用sysctl可以读取设置超过五百 ...

随机推荐

  1. ftp mybatis

    c# 字符串和Ascii码转换http://www.cnblogs.com/JoshuaDreaming/archive/2010/11/19/1882068.html ftp 公式 http://w ...

  2. ibatis 动态列查询问题解决

      http://hi.baidu.com/java513/blog/item/ace7c516c400390d4a90a7c8.html   这个问题是因为你查询的sql的列是变化的,但是ibati ...

  3. 【MyBatis学习07】动态sql

    1. 动态sql 动态sql是mybatis中的一个核心,什么是动态sql?动态sql即对sql语句进行灵活操作,通过表达式进行判断,对sql进行灵活拼接.组装.就拿上一篇博文中对用户的综合查询一例来 ...

  4. 安装ecshop默认安装后的错误解决方案

    1,统一解决 php.ini中的配置 error_reporting = E_ALL | E_STRICT 这是说,显示那些不符合编码规范的警告(coding standards warnings). ...

  5. 【LeetCode】two num 利用comparable接口 对对象进行排序

    题目two num 题意:给定一个整数数组和一个目标值.要求在数组中找到两个数.使得它们的和相加等于目标值.而且返回两个数的下标 思路:1.假设使用暴力,时间复杂度为O(n^2) 2.能够先将全部数进 ...

  6. 趣味 console.log

    第三方趣味console,比我的强太多了,使用这个吧: https://github.com/yy0608/console 我的console效果图: ;(function (global, fact ...

  7. javascript - Underscore 与 函数式编程

    <Javascript函数式编程 PDF> # csdn下载地址http://download.csdn.net/detail/tssxm/9713727 Underscore # git ...

  8. 【ODPS】UDF基础

     UDF全称User Defined Function,即用户自己定义函数.ODPS提供了非常多内建函数来满足用户的计算需求,同一时候用户还能够通过创建自己定义函数来满足 不同的计算需求. UDF ...

  9. Atitit.wrmi web rmi框架新特性

    Atitit.wrmi web rmi框架新特性 1. V1d  新特性1 1.1. 增加了精确参数1 1.2. 增加了req参数,命名参数模式..1 1.3. 增加了globale  传递隐含参数r ...

  10. Debian 为nginx增加第三方模块

    为nginx增加第三方模块需要重新编译nginx的,但是debian在安装nginx的时候做了很多事情,比如systemd,/etc/nginx/里的各种文件,所以我们最好在debian源代码包的基础 ...