• 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系列」

     

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

  • 相关阅读:
    牛客小白月赛4-E-浮点数输出 字符串
    HDU 5319 Painter(模拟)
    AtCoder Regular Contest 098 D
    strchr函数的用法
    fgets()
    格式
    Uncaught TypeError: Cannot read property 'addEventListener' of null
    window cmd下常用操作
    nuxt导入css样式
    ERROR EPERM: operation not permitted, mkdir 'C:UsersAdministratorDesktop ext uxtasic.nuxtcomponents'
  • 原文地址:https://www.cnblogs.com/jackyfei/p/9902207.html
Copyright © 2020-2023  润新知