Linux CentOS7安装NET Core

sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
sudo yum update
sudo yum install dotnet-sdk-2.2-2.2.108-1

安装守护进程
yum install supervisor
systemctl enable supervisord.service
systemctl start supervisord.service
systemctl status supervisord.service
vi /etc/supervisord.conf(修改9001端口注释,打开防火墙,重启)
systemctl restart supervisord.service
参考:https://my.oschina.net/weidedong/blog/747428

C#动态执行javascript

Create a file in Notepad with only these contents:

class EvalClass { function Evaluate(expression: String) { return eval(expression); } }
Save the file as C:\MyEval.js

Open a VS2005 Command Prompt (Start, Programs, VS2005, VS2005 Tools)

Type Cd\ to get to C:\

Type

jsc /t:library C:\MyEval.js
A new file is created named MyEval.dll.

Copy MyEval.dll to the project and reference it (also reference Microsoft.Jscript.dll).

Then you should be able to call it like this:

Dim jScriptEvaluator As New EvalClass
Dim objResult As Object
objResult = jScriptEvaluator.Evaluate(“1==1 && 2==2”)
其他方式:https://github.com/davideicardi/DynamicExpresso(支持netcore)

debian9安装mariadb导致密码无效问题

debian9默认就是mariadb这个数据库,mysql一样
sudo apt install mariadb-server
sudo -i
mysql -u root -p
1 use mysql; 然后敲回车
2 update user set authentication_string=password(“你的密码”) where user=”root” 然后敲回车
3 flush privileges 然后敲回车上面操作都没有用的
#select user,plugin from user后看看,错误原因是因为plugin root的字段是auth_socket,那我们改掉它为下面的mysql_native_password
update user set authentication_string=password(“123456”),plugin=’mysql_native_password’ where user=’root’;
flush privileges;
到处都是坑
参考:http://blog.sina.com.cn/s/blog_7c987bee0102yz76.html