Linux离线编译编译Python需要gcc编译器编译,如果没有安装直接编译会出现以下错误
源码地址为:https://www.openssl.org/source/old/;当前最新版本为 1.1.0f,https://www.openssl.org/source/old/1.1.0/openssl-1.1.0f.tar.gz
由于上面已经安装了nginx,所以我们先卸载nginx。再重新上传nginx包,解压下载。有输入提示时,输入Y即可
一般的Linux上都有默认的Python版本,CentOS6.5默认的Python版本的2.6.6的,因为工作原因,这里需要用到Python3.6.3的版本,在这里,小编将会一步步的教大家进行再Linux下Python3的安装。
博客已经许多月没有继续更新了,近期刚好有个粉丝在做直播实时流转发,需要构建推流服务器,像我提出了一些nginx构建的问题,捧着自己的粉丝请教(当时一头雾水:我只是个小安卓),但是还是专门花了一天的时间研究了下推流服务器(直播实时流服务器)RTMP流媒体服务器,现在网上现成的开源方案有很多,有SRS,Red5,wowoza,FMS等,我这里使用的是Nginx的rtmp插件实现实时流转发。
Nginx 是最流行的Web服务器,根据 W3Techs 最新的统计,世界上三分之一的网站在使用Nginx。
由于APR需要依赖几个模块,其中一个就是APR-util。所以我们得将APR依赖的模块给安装上。还是之前的下载页面,复制APR-util源码包的下载链接:
python安装完毕后,提示找不到ssl模块: www@pythontab.com ~]$ python Python 2.7.15 (default, Oct 23 2018, 18:08:43) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import ssl Traceback (most rec
学习环境:redhat 5.8 python版本:3.6.8 django版本:1.11.20
如果linux系统没有预先安装 gcc 等编译软件可以用yum源安装。安装nginx,首先需要安装依赖模块pcre、zlib、openssl。
php 开启 openssl 的方法,大多数情况下 openssl 是没有开启的,要想启用需要进行下简单的设置 windows 下开启方法:
刚接触的linux服务器上,nginx配置乱的有点令人发指,就把老的卸载了重新装一下。
编译 nginx, 需要 zlib 包, pcre 包, --with-http_ssl_module 模块, 需要 openssl 包
首先需要安装openssl和apache的ssl模块,默认ssl模块是不安装的,需要执行:
CentOS-6.4-minimal版中源码安装Apache-2.2.29 ---------------------------------------------------------------------------------------------------------------------- 源码安装软件时常见的三个步骤 1)配置环境:通常命令为./configure --prefix=DIR(即指定软件安装目录),如果还想启用其它功能,可在后面接着添加指令 比如下面的--enable-ssl用于启用Apache的SSL模块 若不想使用操作系统缺省的SSL库,还可通过--with-ssl=DIR指定自己编译的SSL库 2)编译源码:通常命令为make 3)安装应用:通常命令为make install ---------------------------------------------------------------------------------------------------------------------- 注意事项 1)httpd-2.2.29目录下的configure工具是GNU软件基金会推出的专门用于源码发布的工具 2)配置环境时若出现这个错误[configure: error: no acceptable C compiler found in $PATH],是说明缺少GCC编译环境 这时执行[yum -y install gcc]命令安装编译源码所需的工具和库就可以了 3)执行yum命令时若出现这个错误[Error: database disk image is malformed],是说明yum的缓存出错,需要清理缓存 这时执行[yum clean dbcache]命令即可 4)配置环境时configure的主要工作就是生成Makefile,编译源码时的make命令就是根据Makefile来进行编译的 5)最好以root安装和启动Apache,以root运行之后,apache就会把它的派生进程切换到非root用户 ---------------------------------------------------------------------------------------------------------------------- 安装Perl5 [root@CentOS64 software]# yum -y install wget [root@CentOS64 software]# wget http://www.cpan.org/src/5.0/perl-5.20.1.tar.gz [root@CentOS64 software]# tar zxvf perl-5.20.1.tar.gz [root@CentOS64 software]# cd perl-5.20.1 [root@CentOS64 perl-5.20.1]# ./Configure -des -Dprefix=/app/perl [root@CentOS64 perl-5.20.1]# make [root@CentOS64 perl-5.20.1]# make install [root@CentOS64 perl-5.20.1]# perl -v ---------------------------------------------------------------------------------------------------------------------- 安装OpenSSL [root@CentOS64 software]# tar zxvf openssl-1.0.1i.tar.gz [root@CentOS64 software]# cd openssl-1.0.1i [root@CentOS64 openssl-1.0.1i]# ./config --prefix=/app/openssl [root@CentOS64 openssl-1.0.1i]# make [root@CentOS64 openssl-1.0.1i]# make install [root@CentOS64 openssl-1.0.1i]# /app/openssl/bin/openssl version ---------------------------------------------------------------------------------------------------------------------- 安装Apache [root@CentOS64 software]# tar z
openvpn在使用过程中,依赖于系统时间ntpdate,openssl,libpam,lzo,tun。因此要成功安装并能够使用openvpn,需要满足这些条件
查看openssl安装包,发现缺少openssl-devel包 [root@localhost ~]# rpm -aq|grep openssl openssl-0.9.8e-20.el5 openssl-0.9.8e-20.el5 [root@localhost ~]#
命令:openssl req -new -key server.key > server.csr
需要部署nginx的https环境,之前是yum安装的openssl,版本比较低,如下: [root@nginx ~]# yum install -y pcre pcre-devel openssl openssl-devel gcc [root@nginx ~]# openssl version -a OpenSSL 1.0.1e-fips 11 Feb 2013 built on: Wed Mar 22 21:43:28 UTC 2017 platform: linux-x86_64 options:
补充1: 以下,通过httpd_vhost.conf配置了两个apache虚拟机,分别模拟http和https的转发: NameVirtualHost *:81 NameVirtualHost *:443
AP模式: Access Point,提供无线接入服务,允许其它无线设备接入,提供数据访问,一般的无线路由/网桥工作在该模式下。AP和AP之间允许相互连接。
前言 本文适合Web安全爱好者,其中会提到8种思路,7个工具和还有1个小程序,看本文前需要了解相关的Web基础知识、子域名相关概念和Python 程序的基础知识。 感谢我的好友龙哥的技巧大放送以及Oritz分享的小程序~ 首先我们引用一句名言作为开篇: 在渗透测试中,信息搜集能力的差距,不明显,也最明显。 这句话是龙哥说的,而在技术分享上,我们觉得授之以鱼之前,更重要的是授之以渔。因此本篇文章首先进行子域名搜集思路的梳理,抛砖引玉,然后介绍一下常用的工具,最后分享一个基于 HTTPS 证书的子域名查询小工具
1. Nginx简介 Nginx (发音为[engine x])专为性能优化而开发,其最知名的优点是它的稳定性和低系统资源消耗,以及对并发连接的高处理能力(单台物理服务器可支持30000~50000个并发连接), 是一个高性能的 HTTP 和反向代理服务器,也是一个IMAP/POP3/SMTP 代理服。
今天在Linux上使用paramiko模块的时候,出现了错误:ModuleNotFoundError:No module name '_ssl',但是我的系统是安装了openssl的1.0.1的,查了网络上的信息发现,Python3.7以后的版本,需要openssl1.0.2+,或者Libressl2.6.4+。
之前我的域名只有owent.net和www.owent.net买了SSL证书,现在有letsencrypt可以拿到免费的SSL签证,就稍微花了点时间把我的域名的其他部分接入了letsencrypt签证系统。另外根据其他人的一些配置建议,提高了HTTPS的安全性配置和性能配置(主要是缓存)。另外原本我的blog就已经启用了spdy,然而现在新版本的nginx(1.10)已经release,原先的spdy模块被取消,新增了http/2模块。但是直接换nginx掉包是不行滴(后面有说原因),所以顺带自己处理了一下HTTP/2和nginx新版本的问题。
Nginx是lgor Sysoev为俄罗斯访问量第二的rambler.ru站点设计开发的。从2004年发布至今,凭借开源的力量,已经接近成熟与完善。
首先请确认您的Apache服务器已经安装有加密模块,可以是OpenSSL,或是OpenSSL+ModSSL。如果您的Apacheweb服务器安装在Unix或linux平台上,
一、 Ngix依赖模块安装 Ngix依赖模块有:pcre、zlib、openssl、md5 /sha1(如果系统中没有安装相应模块,需要按照下列方式安装) 1、 安装pcre模块(8.35) 官方网站:http://www.pcre.org/ 安装命令: # unzip pcre-8.35.zip # cd pcre-8.35 # ./configure # make && make install 在64位linux系统中,nginx搜索的库位置为lib64;所以,需要建立软连接: # ln -s /usr/local/lib/libpcre.so.1 /lib64/ # ln -s /usr/local/lib/libpcre.so.1 /lib/ # ln -s /usr/local/lib/libpcre.so.1 /usr/local/lib64/ 2、 安装zlib模块(1.2.8) 官方网站:http://www.zlib.net/ 安装命令: # tar zxvf zlib-1.2.8.tar.gz # cd zlib-1.2.8 # ./configure # make && make install 3、 安装openssl模块(1.0.1h) 官方网站:http://www.openssl.org/ 安装命令: # tar zxvf openssl-1.0.1h.tar.gz # cd openssl-1.0.1h # ./config # make &&make install 4、 解压Nginx插件 1) nginx_upstream_hash插件 负载均衡Hash策略插件。 官方网站:https://github.com/evanmiller/nginx_upstream_hash # unzip nginx_upstream_hash-master.zip 2) nginx-sticky-module插件 负载均衡基于cooki的会话粘合插件,反向代理会话指向相同后端服务器。注:官方下载的源码,在源代码ngx_http_sticky_module.c中的295行代码编译错误,需要将第295行的 ngx_http_sticky_srv_conf_t *conf = iphp->sticky_conf; 放到第297行。 官方网站:https://github.com/yaoweibin/nginx-sticky-module # unzip nginx-sticky-module-master.zip 3) ngx_pagespeed插件 前端网页访问提速优化插件。 官方网站:https://github.com/pagespeed/ngx_pagespeed https://dl.google.com/dl/page-speed/psol/1.8.31.4.tar.gz # unzip ngx_pagespeed-master.zip # cp 1.8.31.4.tar.gz ./ngx_pagespeed-master # cd ngx_pagespeed-master # tar -xzvf 1.8.31.4.tar.gz
python在使用时,可能会使用ssl模块。所以在编译时,可以直接将ssl模块编译进去。
(<http://blog.csdn.net/qq_25560423/article/details/62055497>;)
FFmpeg是音视频领域绕不过去的开源库,编译FFmpeg是音视频开发的基本功,FFmpeg就像一个音视频开源框架,很多的开源库都像插件一样作为FFmpeg的子模块,例如openssl、x264、x265、fdk-aac等等库都可以通过插件的形式编译进FFmpeg开源项目中。本文主要的目的是介绍一下FFmpeg的编译过程,以及如何将这些插件编译进FFmpeg中。
配置ssl证书之前,先准备好SSL证书,至于获取的途径很多,不清楚的可以自行搜索,也可以留言
Linux下编译安装Apache并且配置HTTPS访问。https是超文本传输安全协议,是一种网络安全传输协议。http协议传输的数据都没有加密,一些私密的信息不安全,https经由超文本传输协议(http)进行通信,利用SSL/TLS来加密数据包,https开发的主要目的就是为了保护数据传输的安全性。
Nginx是使用C语言开发的,建议部署在Linux操作系统上,当然也可以安装在Windows操作系统安装Windows版本的Nginx,本文演示在CentOS操作系统上安装源码安装Nginx。
使用yum命令报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: 问题出现原因:
一些杂想(服务器篇) HTTP模块的三个逻辑区段 http:允许定义指令和嵌入 HTTP 相关模块的区段。 server: 允许声明一个站点。 location:定义一组设置,应用于网站的一个特定位置。 rewrite 模块:执行 URL 重定向。 SSI 是 Server Side Include 的首字母缩略词。包含有嵌入式服务器方包含命令的 HTML 文本。在被传送给浏览器之前,服务器会对 SHTML 文档进行完全地读取、分析以及修改。 将第三方的模块集成到 Nginx 中 下载相关功能模
1.下载nginx,链接地址:http://nginx.org/download/nginx-1.12.2.tar.gz,选择linux版本(.tar.gz)(Nginx版本为1.12.2)
工作中需要自行编译一个Python二进制程序,并尽量减少该程序依赖的库文件,使之在相同CPU架构上有更良好的可移植性。先找了下网上的资料,都不太详尽,经过探索最终还是成功了,这里记录一下过程以备忘。
该错误通常发生在尝试通过 pip 安装或更新包时,尤其是在使用需要 TLS/SSL 的 URL 时。错误信息表明 Python 中的 SSL 模块不可用,从而导致无法建立 HTTPS 连接。
4.使用yum安装的ssl无法找到一直报错时:./configure: error: SSL modules require the OpenSSL library.
主要原因是HTTP数据传输时没有对数据进行加密,所以导致数据不安全。而HTTPS在HTTP上加了一层,对数据进行加密,这样就保证了数据的安全性。防止传输的数据过程中被不法分子盗用、劫持、篡改,而导致数据信息的泄露。
Nginx是一款高性能的Web服务器、邮件服务器和反向代理服务器,由俄罗斯人Igor Sysoev(伊戈尔·赛索耶夫)开发的。
“Nginx 是一款轻量级的 HTTP 服务器,采用事件驱动的异步非阻塞处理方式框架,这让其具有极好的 IO 性能,时常用于服务端的反向代理和负载均衡。”
因为项目的原因,最近经常使用node.js搭RESTful接口。 性能还是很不错啦,感觉比Spring Boot之类的要快。而且在不错的性能之外,只要程序结构组织好,别让太多的回调把程序结构搞乱,整体开发效率比Java快的就太多了。
1 Hadoop二次开发环境构建 1.1 Hadoop编译环境构建 1.1.1 系统信息 Linux版本: 1.1.2 编译环境准备 1.1.2.1 安装jdk7.0 rpm -ivh jdk-7u2
W3af是一个基于Python的Web应用扫描器,本期我们将来唠一唠w3af的安装和使用。 在windows上安装 官网的最新版本已经不提供windows的安装方法,目前有一个旧版的exe
在日常工作学习生活中,我们常见的系统有三种:Windows、Mac、Linux。而Linux常见的有Redhat、Ubuntu、Centos。
进入到 Nginx 解压包目录/usr/local/Nginx-1.20.1 目录中,查看 Nginx 的目录。
领取专属 10元无门槛券
手把手带您无忧上云