随笔分类 - http
摘要:在ubuntu10.4server下安装nginx并支持上传和https功能环境:ubuntu18.04server在root权限下操作1. 安装编译环境 cd apt -y install make gcc libpcre3 libpcre3-dev openssl libssl-dev zlib
阅读全文
摘要:#include <stdio.h> #include <sys/socket.h> #include <sys/types.h> #include <time.h> #include <errno.h> #include <signal.h> #include <stdlib.h> #includ
阅读全文
摘要:centos7添加http服务 1. 安装httpd sudo yum install -y httpd 2. 开放端口80,开启服务 sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --add-service=ht
阅读全文
摘要:centos7支持https 1. 安装mod_ssl sudo yum install -y mod_ssl 2. 创建CA目录并将证书和私钥文件存放到该目录 sudo mkdir /etc/httpd/ca #假设证书和私钥所在目录为~ #证书名:server.crt 私钥名:server.ke
阅读全文
摘要:一、安装apache2 sudo apt install -y apache2 二、运行apache2并设置开机启动 sudo systemctl start apache2 sudo systemctl enable apache2 三、开启cgi服务 建立软链接 sudo ln -s /etc/
阅读全文