• Linux 超过21 views围观 0条评论
    php查看客户访问真实地址代码 <?php function real_ip() { static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); /* 取X-Forwar...
    07-03
  • Linux 超过56 views围观 0条评论
    安装方式1 Here are my updated install notes for OpenVAS 9 on CentOS 7.3.1611 (minimal install). Hope someone finds it useful. 😯 1) Disable SELINUX (edit /etc/selinux/config) and reboot 2) Update your CentOS installation and reboot if necessary yum -y update 3) Install the follow packages yum install -y wget bzip2 texl...
    06-25
  • Linux 超过37 views围观 0条评论
    注意事项: 1.如果是使用redis-trib.rb工具构建集群,集群构建完成前不要配置密码,集群构建完毕再通过config set + config rewrite命令逐个机器设置密码 2.如果对集群设置密码,那么requirepass和masterauth都需要设置,否则发生主从切换时,就会遇到授权问题,可以模拟并观察日志 3.各个节点的密码都必须一致,否则Redirected就会失败 [plain] view ...
    06-25
  • Linux 超过24 views围观 0条评论
    1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 daemonize no 2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定 pidfile /var/run/redis.pid 3. 指定Redis监听端口,默认端口为6379,作者在自己的一篇博文中解释了为什么选用6379作为默认端口,因为6379在手机按键上MERZ对...
    06-25
  • Linux 超过59 views围观 0条评论
    1505:S 22 Jun 13:22:31.412 # Currently unable to failover: Waiting for votes, but majority still not reached. 1509:S 22 Jun 13:22:31.420 # Currently unable to failover: Waiting the delay before I can start a new failover. 1509:S 22 Jun 13:22:32.022 # Starting a failover election for epoch 38. 1497:M 22 Jun 13:22:32.023 # Failov...
    06-22
  • Linux 超过60 views围观 0条评论
    1505:S 22 Jun 13:22:31.412 # Currently unable to failover: Waiting for votes, but majority still not reached. 1509:S 22 Jun 13:22:31.420 # Currently unable to failover: Waiting the delay before I can start a new failover. 1509:S 22 Jun 13:22:32.022 # Starting a failover election for epoch 38. 1497:M 22 Jun 13:22:32.023 # Failov...
    06-22