CentOS deployment. Netcore Services

Source: Internet
Author: User
Tags dotnet

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.