ubuntu 安装nginx redis dotnet
1 安装nginx
sudo apt-get update sudo apt-get install nginx
配置文件 /etc/nginx/nginx.conf
2 安装redis
sudo add-apt-repository universe sudo apt-get update sudo apt-get install redis-server
配置文件
vim /etc/redis/redis.conf
3 安装dotnet
1)在线包管理器安装 参考:https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-package-manager-ubuntu-1804#troubleshoot-the-package-manager
2) 离线安装包安装
安装依赖 参考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)
下载 https://dotnet.microsoft.com/download/dotnet-core/thank-you/sdk-2.1.401-linux-x64-binaries
解压
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-2.1.401-linux-x64.tar.gz -C $HOME/dotnet
设置环境变量
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
参考
1 https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04
2 https://www.configserverfirewall.com/ubuntu-linux/install-redis-on-ubuntu-18/