【工具】第十二期:量化策略系统跨平台方案

4031de0b8f1a2a584def1ac1ebb5f715.jpeg

[1] Ubuntu - opens port 22


ifconfig

After the command is executed, the service function of the item may not be installed, and the service function may not be installed, and the service function may be executed according to the prompts


sudo apt install net-tools

In this case, check the Ubuntu port 22 and run the following command:


netstat-ntlp|Grep 22


Parameter explanation:


-n is not  displayed as the service name of the process, but as the port number


-t lists the information  about TCP network packets


-l  Lists the listening services that are currently on the network


-p lists the  processes for the network service

If no process content about port 22 is found, run the following command:


sudo apt-get  install openssh-server


sudo apt-get  install ufw


sudo ufw enable


sudo ufw allow 22

[2]Install-DotNet(wine/mono....Implement cross-platform porting of .
NET1, and add Microsoft package installation sources

wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

rm packages-microsoft-prod.deb

2. Install the SDK

sudo apt-get update && \

sudo apt-get install -y dotnet-sdk-8.0

3. Install the runtime

sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-8.0

[3] Install G++

sudo apt update

sudo apt install build-essential

gcc --version

g++ --version

[4] Install Cmake

[5] Native VS-Linux-so port development

c60a5c7a5f515bb19beb50dbe1ba3e10.png

e0ed65de208526072850287f42ccd0e8.png

005cd7dc6d6a3084bdaf69a2586a8dc4.png

d2150357b0f115c46ca87e3c923c3c35.png

48f4bc3ebd31af8632da5e79f40e9737.png

7bdfd19cf9c3f6d8cbe81419ecaed83e.png

7be010aab940124080666618b0af7243.png

[6].NET cross-platform porting (p/invoke)

Note. NetFrameWork to .net/core. In addition, for the problem that 

 (using the Kerner32.dll LoadLibrary() to call the exception in linux, and the report cannot find kerner32, because it belongs to the dll library of win. Therefore, it is necessary to recompile the source code of the dll under win into the shared library of Linux-like .so, and at the same time use dlopen in .net to achieve the same effect as LoadLibrary() under win, to achieve the purpose of cross-platform.

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

code2trade

你的鼓励是我前行的动力...

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值