ubuntu install nginx redis dotnet

1 install nginx

sudo apt-get update
sudo apt-get install nginx

Profile /etc/nginx/nginx.conf

 

2 install redis

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install redis-server

Profiles 

vim /etc/redis/redis.conf

3 install dotnet

  1) On-line Package Manager Installation Reference: https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1804#troubleshoot-the-package-manager

 2) offline installation package

  Reference mounted reliance https://docs.microsoft.com/zh-cn/dotnet/core/install/dependencies?pivots=os-linux&tabs=netcore21

  • liblttng-ust0
  • libcurl3 (for 14.x and 16.x)
  • libcurl4 (for 18.x)
  • libssl1.0.0
  • libkrb5-3
  • zlib1g
  • libicu52 (for 14.x)
  • libicu55 (for 16.x)
  • libicu57 (for 17.x)
  • libicu60 (for 18.x)

      Download   https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-2.1.401-linux-x64-binaries

  Decompression 

mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-2.1.401-linux-x64.tar.gz -C $HOME/dotnet

  Set Environment Variables

export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

 

 

 

 

 

 

 

 

 

reference

https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04

https://www.configserverfirewall.com/ubuntu-linux/install-redis-on-ubuntu-18/

https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1804#troubleshoot-the-package-manager

Guess you like

Origin www.cnblogs.com/wolbo/p/12037962.html