标签 Geoip 下的文章

Nginx使用GeoIP限制国家访问

安装Geoip库安装完成之后,GeoIP数据库会被安装在/usr/share/GeoIP/GeoIP.dat.[root@vultr ~]# yum -y install geoip-devel [root@vultr openresty-1.13.6.1]# ls /usr/share/GeoIP/GeoIP.dat /usr/share/GeoIP...

Redis单线程架构

redis使用了单线程架构和I/O多路复用模型来实现高性能的内存数据库服务。引出单线程模型开启三个redis-cli客户端同时执行命令客户端1设置一个字符串键值对127.0.0.1:6379> set hello world OK 客户端2对counter自增操作127.0.0.1:6379> incr counter 客户端3对count...