安全认证系列之-(二)环境安装配置

1.写作目的

熟悉公钥加密与 PKI 的概念,公钥加密,数字签名,公钥认证,认证授权,基于 PKI 授权等内容。建立基于 PKI 的安全信道。

2.环境安装

因为后面要配置单向认真双向认证,openssl是必须的,以及nginx也是必须的。服务器为centos7.5版本。

2.1 安装gcc automake autoconf libtool make

yum -y install gcc automake autoconf libtool make  

在这里插入图片描述2.2 安装gcc-c++

[root@instance-n4r06itt ~]# yum install gcc gcc-c++

在这里插入图片描述
2.3 安装PCRE库
下载路径,兄弟们,锅里来,come on!!!
直接用ftp工具上传到linux系统。
在这里插入图片描述

tar -zxvf pcre-8.39.tar.gz   
cd pcre-8.39   
./configure   
make   
make install

2.4 安装zlib库

cd /usr/local/src   
wget http://zlib.net/zlib-1.2.11.tar.gz  
tar -zxvf zlib-1.2.11.tar.gz   
cd zlib-1.2.11   
./configure   
make   
make install

安装包下载
2.5 安装openssl

[root@instance-n4r06itt ~]# yum -y install openssl openssl-devel

在这里插入图片描述
2.6 安装nginx

cd /usr/local/src   
wget http://nginx.org/download/nginx-1.9.9.tar.gz  
tar -zxvf nginx-1.9.9.tar.gz   
cd nginx-1.9.9  
./configure  
make  
make install 

在这里插入图片描述
80端口好像被占用
在这里插入图片描述
换个端口改为8000
在这里插入图片描述
2.7 启动nginx

[root@instance-n4r06itt objs]# ./nginx -c /usr/src/nginx-1.9.9/conf/nginx.conf 
[root@instance-n4r06itt objs]# jps
9001 QuorumPeerMain
28540 Jps
[root@instance-n4r06itt objs]# ps -ef | grep nginx
root     28535     1  0 20:03 ?        00:00:00 nginx: master process ./nginx -c /usr/src/nginx-1.9.9/conf/nginx.conf
nobody   28536 28535  0 20:03 ?        00:00:00 nginx: worker process
root     28562 17497  0 20:03 pts/1    00:00:00 grep --color=auto nginx

启动成功!
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值