websocket协议解决消息发送问题 Could not decode a text frame as UTF-8.
摘要:在使用websocket 时出现了Could not decode a text frame as UTF-8 首次连接成功当发送消息时,出现了编码作错误 第一请求页面时,连接成功 当发送消息时,不加encode('utf-8') 不加ensure_ascii=False,可以连续的发送消息,但发送
阅读全文
成功解决internal/modules/cjs/loader.js:596 throw err; ^ Error: Cannot find module 'minimatch'
摘要:成功解决internal/modules/cjs/loader.js:596 throw err; ^ Error: Cannot find module 'minimatch' 解决办法 npm install -g minimatch 成功后执行
阅读全文
FastDFS客户端与自定义文件存储系统
摘要:FastDFS客户端与自定义文件存储系统<1>安装 安装提供给大家的fdfs_client-py-master.zip到虚拟环境中pip install fdfs_client-py-master.zippip install mutagenpip install requests<2>使用 使用F
阅读全文
fastdfs 中client.conf 文件
摘要:# connect timeout in seconds# default value is 30sconnect_timeout=30 连接超时 # network timeout in seconds# default value is 30snetwork_timeout=60 网络超时 #
阅读全文
centos 中 redis 的安装
摘要:安装流程 Wget http://download.redis.io/releases/redis-5.0.4.tar.gz tar xzf redis-5.0.4.tar.gz mv redis-5.0.4 /usr/local/redis cd /usr/local/redis make mak
阅读全文
redis安装成功后get: command not found
摘要:安装redis后客户端无法使用,即redis-cli执行后报找不到的错误。 这主要是安装redis的时候没有把客户端装上,在StackOverFlow上找到了一种只安装redis cli的方法。 安装过程: Wget http://download.redis.io/releases/redis-5
阅读全文
Xshell Linux常用命令
摘要:Xshell :一个强大的安全终端模拟软件,它支持SSH1, SSH2, 以及Microsoft Windows 平台的TELNET 协议. 0 帮助 命令 与清屏 help 查看帮助命令 ls 查看ls命令下的具体用法 info ls 查看ls命令的作用 clear 清屏 1。查看当前路径 pwd
阅读全文
OSError: mysql_config not found
摘要:上次在部署阿里云安装Centos7里 pip3 install mysqlclient 是 一直报 OSError: mysql_config not found 这个错,上网百度了半天终于找到了解决的办法,需要安装依赖包: yum install mysql-devel gcc gcc-devel
阅读全文
AttributeError: module 'datetime' has no attribute 'now'
摘要:在用时间转化时,一直报AttributeError: module 'datetime' has no attribute 'now', 我用的 import datetime datetime .now() 一直报错 可以使用 datetime.datetime.now()
阅读全文
CentOS查看进程端口号以及kill操作
摘要:查看端口: 使用 netstat -anp | grep 8090即:netstat –apn | grep 8090 查看进程:1、ps 命令用于查看当前正在运行的进程,grep 是搜索例如: ps -ef | grep 8090,表示查看所有进程里 CMD 进程信息2、ps -aux | gre
阅读全文
nginx报错 nginx: [alert] kill(25903, 1) failed (3: No such process)
摘要:当nginx 中报错 时 nginx报错 nginx: [alert] kill(25903, 1) failed (3: No such process) 通过在nginx/sbin,目录下 运行命令 ./nginx ,可看到如下错误: 然后,即可启动nginx了, ./nginx -s relo
阅读全文