1. Install CentOS with minimal installation package Image: http://isoredirect.centos.org/centos/7/isos/x86_64/centos-7-x86_64- Minimal-1708.iso
2. Follow the installation steps to select a disk, such as:
3. Set the root user password:
4. Reboot after installation, enter the system, the minimum CentOS version is missing some necessary components, first to open the network card settings, with VI
edit the following files:
vi/etc/ Sysconfig/network-scripts/ifcfg-ens33
To edit the last line, change onboot=no
to onboot=yes
: Wq
Save and exit
5. Restart the network card, and then ping Baidu, should be OK:
Service network restart
6. Install network tools such as ipconfig, you need to enter y
confirm several times:
sudo yum install net-tools
7. Use ifconfig
to view native IP:
8. To download putty, use the IP address to connect remotely:
9. Install Nginx, reference material https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7:
- Installation Nginx:
sudo yum install epel-release
;sudo yum install nginx
- Start Nginx:
sudo systemctl start nginx
- Open firewall:
sudo firewall-cmd --permanent --zone=public --add-service=http
;sudo firewall-cmd --permanent --zone=public --add-service=https
- Reload the firewall:
sudo firewall-cmd --reload
10. You can now use the command to access Nginx in a Web browserhttp://server_domain_name_or_IP/
11. Install the. Net Core Environment Https://www.microsoft.com/net/download/linux-package-manager/centos/sdk-current:
sudo rpm --import https://packages.microsoft.com/keys/microsoft.ascsudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl= https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'sudo yum updatesudo yum install libunwind libicusudo yum install dotnet-sdk-2.1.4
At this point, you can enter a dotnet --version
view. Netcore has been installed successfully.
Reference:
Http://video.jessetalk.cn/course/4/task/6/show
Http://video.jessetalk.cn/course/4/task/7/show
CentOS deployment. Netcore Services