dotnet系列
如果是centos7.9环境配置
libstcdc.so
// 进入libstdc++所在目录
cd /usr/lib64
// 查看当前文件的软链接
ll libstd*
// 删除原来的链接方式
rm -rf libstdc++.so.6
// 增加新的软链接
ln -s libstdc++.so.6 /usr/lib64/libstdc++.so.6.0.26
// 更新系统的共享库缓存
ldconfig
缺少glbc 2.18
$ wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz
$ tar -xvf glibc-2.18.tar.gz
$ cd glibc-2.18
$ mkdir build && cd build && ../configure --prefix=/usr && make -j4 && make install
$ strings /lib64/libc.so.6 |grep GLIBC_
//查找指定命令、源文件、手册页等相关文件的位置
whereis dotnet
//显示当前系统的PATH环境变量的值
echo $PATH
//添加永久dotnet运行命令
echo "export PATH=/usr/local/share/dotnet/dotnet8:/usr/local/share/dotnet/dotnet8/tools:$PATH" >> ~/.bash_profile
//重新加载
source ~/.bash_profile
#编译打包
dotnet publish -r linux-x64 /p:PublishSingleFile=true
//临时系列,建议走最下面的守护进程方式
#启动
./[程序名] --urls http://0.0.0.0:[端口号]
#nohup
nohup ./[程序名] --urls http://0.0.0.0:[端口号] &
#查看
tail -f nohup.out