Dotnet运维故障记录

警告
本文最后更新于 2019-02-21,文中内容可能已过时。

安装故障

Failed to load , error: libunwind.so.8: cannot open shared object file: No such file or directory
Failed to bind to CoreCLR at ‘/root/dotnet/shared/Microsoft.NETCore.App/2.0.0/libcoreclr.so‘

1
yum install libunwind -y  

FailFast: Couldn‘t find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

1
yum install icu -y  

程序异常

最近接收到了开发反馈dotnet程序发送短信异常,据说也是一直都有的问题,协助查询了多方资料,发现是libcurl版本的问题,由于服务器上存在了多个dotnet站点,也不敢轻易去升级,后来又听说所有的dotnet都存在,于是对curl进行了一次升级,重启dotnet短信正常

接入一个写的比较清晰的文章

升级过程 :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# yum install libcurl-openssl -y
# wget https://curl.haxx.se/download/curl-7.64.0.tar.gz
# tar -xzvf curl-7.64.0.tar.gz
# cd curl-7.64.0/
# ./configure --prefix=/opt/curl-7.64.0 --with-ssl
# make && make install 
# mv /usr/bin/curl /usr/bin/curl.old
# mv /usr/bin/curl-config /usr/bin/curl-config.old
# ln -s /opt/curl-7.64.0/ /opt/curl
# ln -s /opt/curl/bin/curl /usr/bin/curl
# ln -s /opt/curl/bin/curl-config /usr/bin/curl-config
# echo "/opt/curl/lib" >> /etc/ld.so.conf.d/curl-x86_64.conf
# ldconfig