zoukankan      html  css  js  c++  java
  • 1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

    准备CentOS

    1.1虚拟机

     CentOS的安装这里使用vmware workstation 14来做虚拟机,当然你也可以用Oracle的虚拟机或者不用虚拟机,使用云服务或者使用双系统,不是什么大问题。

    这里提供vmware workstation 14下载地址:

    http://www.xue51.com/soft/1258.html

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     如果觉得下载麻烦,也可以留言我这边提供下载和获取注册码。

    1.2CentOS安装包

    下载地址:https://www.centos.org/download/

    建议大家安装7.0及以上版本的Minimal ISO,因为有些东西我们不需要,同时高版本也是为了将来更好的支持Docker

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     1.3虚拟机安装CentOS

    该步骤比较简单,就不做过多演示,如图所示:

     1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     进入安装界面:

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     安装完成:

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     注意:安装最小化版本,ping www.baidu.com是不通的,我们修改配置 vi ifcfg-ens33

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     

    修改ONBOOT=yes

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     然后重启网卡:service network restart

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     安装ifconfig工具 sudo yum install net-tools

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     

    使用SSH方式连接到CentOS,可以使用Putty或者SecureCRT

    Putty下载地址:http://mydown.yesky.com/pcsoft/199063.html

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」 

    准备Nginx环境

    这个过程也是比较简单,大家可以参考以下教程进行安装

    https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7

    1.安装nginx仓库
    sudo yum install epel-release
    2.安装
    sudo yum install nginx
    3.启动nginx
    sudo systemctl start nginx
    4.打开防火墙
    sudo firewall-cmd --permanent --zone=public --add-service=http 
    sudo firewall-cmd --permanent --zone=public --add-service=https
    sudo firewall-cmd --reload

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     安装成功:

    1.5准备CentOS和Nginx环境「深入浅出ASP.NET Core系列」

     

    我是.NET架构师张飞洪,入行10年有余,人不堪其忧,吾不改其乐,谢谢您关注我的头条号

  • 相关阅读:
    深入nginx之《获取用户的真实IP》
    深入Nginx之《常用参数配置技巧》
    深入Nginx之《HTTP请求报文与HTTP响应报文》
    webapck html-loader 静态html模块化
    webpack四个基础概念
    从原生Android 跳转到hbuilder项目
    移动端适配方案 flexible.js
    vue使用px2rem
    koa2 post请求ctx.request.body空获取不到的解决办法
    url、href、src
  • 原文地址:https://www.cnblogs.com/alligator/p/9812212.html
Copyright © 2011-2022 走看看