安装python3.7

yum -y groupinstall “Development tools” yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

yum install libffi-devel -y

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

tar -xvJf Python-3.7.0.tar.xz

mkdir /usr/local/python3 #创建编译安装目录

cd Python-3.7.0

./configure –prefix=/usr/local/python3

make && make install

ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3

ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3

刷短信接口ip黑名单。持续更新。。

以下是恶意刷短信接口的黑名单(欢迎更多人士在评论区提供):

117.136.46.220
61.158.149.39
223.104.174.87
36.113.34.29
223.150.21.181
116.21.128.197
124.224.33.226
120.230.165.209
211.138.116.110
42.234.43.22
113.57.247.62
14.213.133.211
27.44.11.65
183.13.190.6
222.32.4.221
42.224.71.123
42.102.240.57
183.25.125.75
14.16.181.45
223.112.1.19
110.184.8.6
223.104.3.13
139.214.254.101
223.221.240.34
211.138.116.29
59.42.108.94
222.93.168.170
119.123.72.252
117.136.101.17
112.65.61.119
116.148.11.61
60.181.191.148
223.89.26.79
124.239.146.53
101.28.23.79
117.24.25.138
101.246.226.44
112.114.103.91
175.150.237.105
117.179.38.136
111.147.144.124
106.6.125.116
101.206.170.33

 

Nginx安装lua-nginx-module模块

 

原文地址

https://blog.csdn.net/qq_25551295/article/details/51744815

 

按上面地址基本可以配置成功,但是 lua-nginx-module v0.10.2.tar.gz 这个版本不能使用,改成了 v0.10.13.tar.gz 安装成功\

 

配合redis 使用,还需要安装 扩展

安装redis-lua ,只需要复制到对应的安装目录

git clone https://github.com/nrk/redis-lua

cp redis-lua/src/redis.lua /usr/local/luajit/share/lua

 

安装lua-socket2.0.2

wget http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz

tar zxvf luasocket-2.0.2.tar.gz

cd luasocket-2.0.2

vim config

LUAINC=-I/usr/local/luajit/lib
LUAINC=-I/usr/local/luajit/include/luajit-2.1

原文地址 https://blog.csdn.net/secretx/article/details/46534463

centos6.5 安装 python3.7.0

配置依赖先

yum groupinstall ‘Development Tools’

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel

yum install libffi-devel -y

去下载 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

解压

tar -xvf Python-3.7.0.tgz

cd Python-3.7.0

./configure –prefix=/usr/local/python3 –enable-optimizations

make && make install

 

建立软链接

ln -s /usr/local/python3/bin/python3 /usr/bin/

pyCharm最新2018激活码

修改hosts文件
将0.0.0.0 account.jetbrains.com添加到hosts文件最后,注意hosts文件无后缀,如果遇到无法修改或权限问题,可以采用覆盖的方法去替换hosts文件

修改后请检查hosts文件是否修改,激活码无法激活的原因99.99%是因为hosts没有修改正确

Windows系统hosts文件路径为:c:\windows\system32\drivers\etc
Mac和Ubantu(Linux)系统hosts文件路径为:/etc

 

复制激活码
打开PyCharm选择Activation code激活,然后复制下面的激活码点击激活。此激活码有效期为2019-05-04

K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjo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uFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

php curl 采集时发生错误 curl connect error

php 用curl作采集服务时,返回的数据为空,

抛出异常信息后显示 curl connect error,

经phpinfo比对后发现 可用的服务器 curl 是openssl ,不可用的curl 是nss

也可以使用curl -V命令来查看,发现里面是nss

所以需要把curl重新加入openssl编译

编译方法如下:

先去官方下载 https://curl.haxx.se/download/archeology/curl-7.19.7.tar.gz

tar -xvf curl-7.19.7.tar.gz

./configure – -prefix=/usr – -without-nss – -with-ssl

make && make install

ldconfig #重新载入配置文件的命令

curl -V

这样里面就会显示 openssl

重新启动php和apache服务后生效

Hadoop 分布式文件系统

hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错性的特点,并且设计用来部署在低廉的(low-cost)硬件上;而且它提供高吞吐量(high throughput)来访问应用程序的数据,适合那些有着超大数据集(large data set)的应用程序。HDFS放宽了(relax)POSIX的要求,可以以流的形式访问(streaming access)文件系统中的数据。