windwos下怎样配置redis服务器

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/xbk123123/article/details/77344723

redis作为一款高性能的key_value型的nosql数据库,当下有非常多的公司使用redis数据库。

近一段时间,自己在学习redis,我会及时将学到的知识呈现给大家,希望各位同仁多多指教。

1、首先下载redis安装包:

下载地址:https://github.com/MSOpenTech/redis/releases。这里的安装包分为32和64两种,根据自己的需要下载(这个软件需要翻墙才可以下载)

2、将下载的安装包解压到某个目录下面(自己放置在c:\redis目录下面)

3、测试自己的redis是否可以正常的使用

1)开启redis服务器配置:

打开cmd,然后转化到c:\redis目录下面,如图所示:

2)输入下面的命令,开启redis服务器配置:redis-server  redid.windwos.conf。显示下面的结果,证明可以服务器配置完成

上面的命令我们可以写在一个bat文件中,下次执行时,我们可以直接执行该bat文件即可。

@echo 打开redis服务器端的配置文件
redis-server  redis.windows.conf
pause

3)测试客户端

点击redis-cli.exe,执行该文件,测试(在测试时,不能关闭服务器的cmd框)

下面是以cmd的方式打开的(如果是直接运行EXE,就直接执行set和get命令测试就行)

C:\WINDOWS\system32>cd c:\redis

c:\Redis>redis-cli.exe -h 127.0.0.1 -p 6379
127.0.0.1:6379> set mykey 123
OK
127.0.0.1:6379> get mykey
"123"
127.0.0.1:6379>

到此我就将redis的配置讲解完成了。


展开阅读全文
博主设置当前文章不允许评论。

windwos配置php+IIS+MYSQL,验证码问题?

05-16

windwos下配置php+IIS+MYSQL,我的GD库已经安装成功了但还是不能看到验证码,为什么呢?rnrn下面是PHPINFO信息:请大虾们帮帮忙,小弟先谢谢啦!rnrnPHP Version 5.2.4 rnrnSystem Windows NT SG 5.2 build 3790 rnBuild Date Aug 30 2007 07:05:48 rnConfigure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" rnServer API ISAPI rnVirtual Directory Support enabled rnConfiguration File (php.ini) Path C:\WINDOWS rnLoaded Configuration File C:\WINDOWS\php.ini rnPHP API 20041225 rnPHP Extension 20060613 rnZend Extension 220060519 rnDebug Build no rnThread Safety enabled rnZend Memory Manager enabled rnIPv6 Support enabled rnRegistered PHP Streams php, file, data, http, ftp, compress.zlib rnRegistered Stream Socket Transports tcp, udp rnRegistered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* rnrnrngdrnGD Support enabled rnGD Version bundled (2.0.34 compatible) rnFreeType Support enabled rnFreeType Linkage with freetype rnFreeType Version 2.1.9 rnT1Lib Support enabled rnGIF Read Support enabled rnGIF Create Support enabled rnJPG Support enabled rnPNG Support enabled rnWBMP Support enabled rnXBM Support enabled rnrnrnhashrnhash support enabled rnHashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 rnrnrniconvrniconv support enabled rniconv implementation "libiconv" rniconv library version 1.9 rnrnDirective Local Value Master Value rniconv.input_encoding ISO-8859-1 ISO-8859-1 rniconv.internal_encoding ISO-8859-1 ISO-8859-1 rniconv.output_encoding ISO-8859-1 ISO-8859-1 rnrnrnISAPIrnServer Variable Value rnAUTH_TYPE Negotiate rnAUTH_USER SG\Administrator rnCONTENT_LENGTH 0 rnPATH_TRANSLATED E:\Php\bangyi.net\bangyi\2.php rnREMOTE_ADDR 127.0.0.1 rnREMOTE_HOST 127.0.0.1 rnREMOTE_USER SG\Administrator rnREQUEST_METHOD GET rnSERVER_NAME localhost rnSERVER_PORT 80 rnSERVER_PROTOCOL HTTP/1.1 rnSERVER_SOFTWARE Microsoft-IIS/6.0 rnAPPL_MD_PATH /LM/W3SVC/1/Root/bangyi rnAPPL_PHYSICAL_PATH E:\Php\bangyi.net\bangyi\ rnINSTANCE_ID 1 rnINSTANCE_META_PATH /LM/W3SVC/1 rnLOGON_USER SG\Administrator rnURL /bangyi/2.php rnALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:zh-cn HTTP_AUTHORIZATION:Negotiate TlRMTVNTUAADAAAAAAAAAEgAAAAAAAAASAAAAAAAAABIAAAAAAAAAEgAAAAAAAAASAAAAAAAAABIAAAABcKIogUCzg4AAAAP HTTP_COOKIE:rtime=2; ltime=1242366335500; cnzz_eid=70291834-1241748262-; Visitor=123; GdQoyoChZdusername=admin; PHPSESSID=7999461278a7c30798f54b2836ce9567 HTTP_HOST:localhost HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727) HTTP_UA_CPU:x86 rnHTTPS off rnSCRIPT_NAME /bangyi/2.php rnSERVER_PORT_SECURE 0 rnrnsessionrnSession Support enabled rnRegistered save handlers files user rnRegistered serializer handlers php php_binary wddx rnrnDirective Local Value Master Value rnsession.auto_start Off Off rnsession.bug_compat_42 On On rnsession.bug_compat_warn On On rnsession.cache_expire 180 180 rnsession.cache_limiter nocache nocache rnsession.cookie_domain no value no value rnsession.cookie_httponly Off Off rnsession.cookie_lifetime 0 0 rnsession.cookie_path / / rnsession.cookie_secure Off Off rnsession.entropy_file no value no value rnsession.entropy_length 0 0 rnsession.gc_divisor 100 100 rnsession.gc_maxlifetime 1440 1440 rnsession.gc_probability 1 1 rnsession.hash_bits_per_character 4 4 rnsession.hash_function 0 0 rnsession.name PHPSESSID PHPSESSID rnsession.referer_check no value no value rnsession.save_handler files files rnsession.save_path no value no value rnsession.serialize_handler php php rnsession.use_cookies On On rnsession.use_only_cookies Off Off rnsession.use_trans_sid 0 0 rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn rnrnrnrn 论坛

没有更多推荐了,返回首页