您现在的位置是:首页 > 文章详情

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

日期:2018-11-02点击:433

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

原文链接:https://yq.aliyun.com/articles/668906
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章