准备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年有余,人不堪其忧,吾不改其乐,谢谢您关注我的头条号

内容来源于网络如有侵权请私信删除

文章来源: 博客园

原文链接: https://www.cnblogs.com/jackyfei/p/9902207.html

你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!