01 2019 档案
摘要:源码下载:https://files.cnblogs.com/files/hardykay/login.zip 新建项目(我使用pycharm开发,也可以使用如下命令建立项目 ) 需求分析 一个登录注册系统基本包含哪些功能呢? 1、首页 2、登录/注册页面 3、验证登录信息 4、验证注册信息 5、注
阅读全文
摘要:import pika connection = pika.BlockingConnection(pika.ConnectionParameters( 'localhost')) channel = connection.channel() #声明queue channel.queue_declar
阅读全文
摘要:Items有哪些知识? 1、声明 import scrapy class Product(scrapy.Item): name = scrapy.Field() price = scrapy.Field() stock = scrapy.Field() last_updated = scrapy.F
阅读全文
摘要:1、redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程 2、当redis以守护进程方式运行时,redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定 3、指定redis监听端口,默认端口号为6379,作者在自己的一篇博文中解
阅读全文
摘要:2、序列化给定 key ,并返回被序列化的值 redis> SET greeting "hello, dumping world!" OK redis> DUMP greeting "\x00\x15hello, dumping world!\x06\x00E\xa0Z\x82\xd8r\xc1\x
阅读全文
摘要:1、下载Redis3.2.5安装包 2、解压、编译、安装redis-3.2.5 tar -zxvf redis-3.2.5.tar.gz -C /usr/src/ cd /usr/src/redis-3.2.5/ make && make install 3、创建redis相关目录 mkdir -p
阅读全文
摘要:虚拟机安装好CentOS 6系统后,发现ip在每次重启后都会还原,用ifconfig查看是有eth0网卡的(也有可能只有回环网卡lo),于是查看eth0网卡配置文件,发现在 /etc/sysconfig/network-scripts/ 目录下没有 ifcfg-eth0 这个网卡配置文件。 原因 是
阅读全文
摘要:虚拟机安装好CentOS 6系统后,发现ip在每次重启后都会还原,用ifconfig查看是有eth0网卡的(也有可能只有回环网卡lo),于是查看eth0网卡配置文件,发现在 /etc/sysconfig/network-scripts/ 目录下没有 ifcfg-eth0 这个网卡配置文件。 原因 是
阅读全文
摘要:windows平台开发和使用 安装 安装Erlang:https://pan.baidu.com/s/1QcZDaI205uaue7mMWh5cSA 安装RabbitMQ:https://pan.baidu.com/s/1r1TFv3m2SO8YmBenHMw62w 安装pika:pip insta
阅读全文