问轩博客

展开菜单

memcached相关整理

memcached相关整理
1.首先连接memcachedtelnet 127.0.0.0 112112.查看状态stats输出:STAT pid 22459                             进程IDSTAT uptime 1027046             ...

CentOS7安装MongoDB步骤

CentOS7安装MongoDB步骤
# 下载MongoDB Community Server(社区版)下载地址:https://www.mongodb.com/try/download/communitymkdir /root/soft && cd /root/softwget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-5.0.8.tgz# 安装tar -zxvf mongodb-linux-x86_64-rhel7...

CentOS7安装Memcached服务

CentOS7安装Memcached服务
Memcached是一个自由开源的,高性能,分布式内存对象缓存系统。官网地址:https://memcached.org/第一种# 使用Yum安装Memcached基于libevent的事件处理,首先要先安装libevent库。yum -y install libevent libevent-devel(可以不用安装,装memcached时候自动依赖安装)# 然后安装Memcachedyum -y install memcached# 查看帮助信息memcached -h#...

CentOS7 升级pip2遇到的坑

 CentOS7 升级pip2遇到的坑
问题原因:Python 2.7已于2020年1月1日到期,请停止使用。请升级您的Python,因为不再维护Python 2.7。pip 21.0将于2021年1月停止对Python 2.7的支持。pip 21.0将删除对此功能的支持。解决此问题并继续使用不受支持的Python 2.7,不应升级到最新的pip版本,而应升级到<21的版本。相关文档: https://pip.pypa.io/en/latest/development/release-process/#pyt...

CentOS7 安装pip2和pip3

CentOS7 安装pip2和pip3
pip2 安装yum install -y epel-releaseyum install -y python-pippip3  安装wget  https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gztar -xvf pip-18.0.tar.gzcd  pi...

PHP 连接 MySQL测试

PHP 连接 MySQL测试
连接 MySQL在我们访问 MySQL 数据库前,我们需要先连接到数据库服务器:实例 (MySQLi - 面向对象)<?php $servername = "localhost"; $username = "username"; $password = "password";   // 创建连接 $conn =...

php7.0以上添加memcached方法

php7.0以上添加memcached方法
只需要安装memcachedwget http://pecl.php.net/get/memcached-3.1.5.tgzyum -y install libmemcached libmemcached-devel/app/php/bin/phpize./configure --with-php-config=/app/php/bin/php-config --enable-memcachedmake && make installmemcache扩展方法/...

PHP7.2 配置 Zend OPcache

PHP7.2 配置 Zend OPcache
在php.ini 最后添加如下内容;[opcache]zend_extension=opcache.so #注意这里有个坑:就是extension=opcache.so错误,所有怎么重启都不生效。opcache.enable=1opcache.enable_cli=1opcache.memory_consumption=448opcache.interned_strings_buffer=8opcache.max_accelerated_files=100000opcache...

nginx跨越配置

nginx跨越配置
    location /  { add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-...

踩坑内核参数tcp_tw_recycle

踩坑内核参数tcp_tw_recycle
tcp_tw_recycle 启用TIME-WAIT状态sockets的快速回收,这个选项不推荐启用。在NAT(Network Address Translation)网络下,会导致大量的TCP连接建立错误。 net.ipv4.tcp_tw_recycle = 0 这个参数默认为0参考:https://blog.csdn.net/Ivan_Wz/article/details/112250255...