当前位置: 首页 > news >正文

商城 网站有哪些功能模块四川省特种作业证查询

商城 网站有哪些功能模块,四川省特种作业证查询,兴化建设局网站,东营聊城网站建设HTTPS服务器部署:Nginx部署1. 准备工作2. Nginx服务器YUM部署2.1 直接安装2.2 验证3. Nginx服务器源码部署3.1 下载源码包3.2 部署过程4. Nginx基本操作4.1 nginx常用命令行4.2 nginx重要目录1. 准备工作 1. Linux版本 [rootlocalhost ~]# cat /proc/version Li…

HTTPS服务器部署:Nginx部署

  • 1. 准备工作
  • 2. Nginx服务器YUM部署
    • 2.1 直接安装
    • 2.2 验证
  • 3. Nginx服务器源码部署
    • 3.1 下载源码包
    • 3.2 部署过程
  • 4. Nginx基本操作
    • 4.1 nginx常用命令行
    • 4.2 nginx重要目录

1. 准备工作

1. Linux版本

[root@localhost ~]# cat /proc/version  
Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015
[root@localhost ~]# 
[root@localhost ~]# cat /etc/redhat-release   查看系统版本
CentOS Linux release 7.2.1511 (Core) 
[root@localhost ~]# 
[root@localhost ~]# uname -a   
Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# 

2. 关闭linux防火墙

[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable firewalld

systemctl stop firewalld    关闭防火墙
systemctl start firewalld    开启防火墙
systemctl disable firewalld  禁止防火墙开机启动
systemctl enable firewalld   启动防火墙开机启动

4. 安装依赖包
[root@localhost ~]# yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel

2. Nginx服务器YUM部署

2.1 直接安装

[root@localhost ~]# yum install epel-release
[root@localhost ~]# yum install nginx
[root@localhost ~]# systemctl start nginx

2.2 验证

1. 修改默认页面

[root@localhost local]# cd /usr/share/nginx/html
[root@localhost html]# mv index.html index.html.bak
[root@localhost html]# echo "this is the nginx web server" > index.html

2. 重启服务

[root@localhost html]# systemctl restart nginx

3. 测试
在这里插入图片描述

3. Nginx服务器源码部署

3.1 下载源码包

[root@localhost ~]# wget http://nginx.org/download/nginx-1.20.1.tar.gz

3.2 部署过程

1. 解压

[root@localhost ~]# tar -xvf nginx-1.20.1.tar.gz

2. 设置支持https

[root@localhost ~]# cd nginx-1.20.1/
[root@localhost nginx-1.20.1]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module

3. 源码安装

[root@localhost nginx-1.20.1]# make
[root@localhost nginx-1.20.1]# make install

4. 启用服务

[root@localhost nginx-1.20.1]# cd /usr/local/nginx/sbin/
[root@localhost sbin]# ./nginx

5. 验证
在这里插入图片描述
6. 设置HTTPS

[root@localhost conf]# vim /usr/local/nginx/conf/nginx.conf # http{ server{…}} 配置格式
在这里插入图片描述
关于证书生成请参数文章【待完成】
6. 测试
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -s reload #重新加密nginx服务
在这里插入图片描述

4. Nginx基本操作

4.1 nginx常用命令行

[root@localhost ~]# /usr/local/nginx/sbin/nginx # 启用nginx服务
[root@localhost ~]# /usr/local/nginx/sbin/nginx -s stop # 强制停止nginx服务
[root@localhost ~]# /usr/local/nginx/sbin/nginx -s quit # 停止nginx服务,等待最生一次交互执行完成后停止
[root@localhost ~]# /usr/local/nginx/sbin/nginx -s reload # 重新加载nginx服务
[root@localhost ~]# /usr/local/nginx/sbin/nginx -V # 查看nginx详细版本
[root@localhost ~]# /usr/local/nginx/sbin/nginx -v # 查看nginx版本
[root@localhost ~]# /usr/local/nginx/sbin/nginx -t # 查看配置的正确性

4.2 nginx重要目录

/usr/local/nginx/html/index.html # web页面存在位置

/usr/local/nginx/conf/nginx.conf # nginx主配置文件 #http{ server{…}}格式
HTTPS Server配置举例

http://www.yayakq.cn/news/413180/

相关文章:

  • 网页制作网站开发苏州企业如何建站
  • 自己做的网站怎么搜不到南宁网页制作招聘网
  • 米方科技网站建设今天重大国际新闻
  • 电子商务型网站建设广州网站建设服务商
  • 江苏常州网站建设公司建设企业网站注意事项
  • 长治市网站开发做网站的抬头标语怎么做
  • 青县网站建设公司好的公司网站建设
  • 高端企业网站建设规定个人能做网站吗
  • 手机网站模板制作工具电子商务网站建设与维护 书
  • 网站空间费1年1200做交流网站
  • 当年的51网站wordpress主题 sen
  • 济南网站建设哪里便宜以星空做的网站模板
  • 常州公诚建设项目管理有限公司官方网站公司网站制作计入什么科目
  • 坪山网站建设哪家好关于新农村网络建设网站
  • 邀请码网站怎么做黑龙江省城乡和住房建设厅网站首页
  • 房产网站设计方案二维码网站建设
  • 用flash做网站超链接汕头市小程序定制公司
  • 山东省建设建设协会网站找小程序开发公司
  • 免费网站空间申请教程网站 优化 教程
  • 湖南省建设厅官网网站服装行业网站模板
  • 商务网站建设实训报告1500字青岛seo用户体验
  • 长沙市住房和城乡建设部网站旅游电子商务网站开发制作
  • 高唐建筑公司网站推销什么企业做网站和app6
  • 佛山禅城区网站建设公司北京网站建设seo优化
  • 如何建立个人免费网站电商网站建设简单代码网页
  • 网站内容上传要求自己在网站做邮箱
  • wordpress微信站工行网站如何做理财风险评估
  • 做网站无锡电商网站做互联网金融
  • 建行手机网站网址是多少钱什么叫商业网站
  • 网站的推广方式有哪些商城网站免费模板