Linux因为不熟而感觉麻烦
- 安装系统:CentOS-7-x86_64-DVD-2003.iso
- 发现无法上网,参考:https://www.cnblogs.com/memoa/p/9963946.html
- 进入配置目录 cd /etc/sysconfig/network-scripts
- 修改配置文件 vi ifcfg-ens33
- BOOTPROTO为dhcp ,自动获取IP
- ONBOOT=yes ,自启动网络服务
- Esc后打 :qw 退出
- 重启服务:service network restart
- ping www.163.com
- 默认没有wget,先安装yum install wget,很小容易安装
- asp.net core很大100M多,先替换成国内源,参考: https://www.cnblogs.com/mmdln/p/9039158.html
- 先备份原来的文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
- 下载阿里云的源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- 更新yum update(强迫症
- 下载微软信任秘钥:sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
- 安装sdk: