最近在我的华为云服务器上部署了一个小站点,需要把 dotnet 命令放到环境变量以方便使用。
$ vi /etc/profile
export PATH=/root/aspnetcore-runtimes/.dotnet:$PATH source /etc/profile
亲测成功