Win10 using Python to access Redis in Vmbox

Source: Internet
Author: User
Tags vmbox

Knowing that Redis does not have official support for Windows, the Ubuntu in Vmbox is installed with Redis

#在ubuntu中 # Search Redis related software info apt-cache Search ^Redis #不清楚为什么不加正则符号出现一些毫不相关的, such as the following #bird-BGP-Internet Routing Daemon [Transitional package] #安装redis客户端apt-getInstallredis-server# Modify Redis configuration file, otherwise the host IP will be rejectedsudo VI/etc/redis/redis.conf# comment out bind127.0.0.1Bind here means to bind the current machine's network card address, if there are multiple network cards, binding multiple addresses, space separation, not to filter out the meaning of the external IP # Founder I changed to bind127.0.0.1 192.168.0.122, restart Redis failed, bind192.168.0. 122 also not. This IP is the host's ip# restart Redissudo/etc/init.d/redis-Server restart# view Port netstat-ntlp|grep 6379#以下是win10操作 # To see if there are pip.exe# installed in Pipd:\program files\python351\scripts if not, install http://www.cnblogs.com/ptqueen/p/6678015.htmlPipInstallredis# installing Python's Redis module #python partial import Redis self.conn= Redis. Redis (db= the)
#这里用的是转发端口, default localhost and 6379, no password

Nat Port Forwarding:

Before the bridge network has been not connected, passing the big help to see, grateful

http://bbs.csdn.net/topics/392218076

Win10 using Python to access Redis in Vmbox

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.