As the title says, there is an EXE server program created with C#.
It's under development, so I've been running it on my computer and processing the connection through my computer IP.
I'm going to use AWS service, so I'd like to run it on AWS server.
The question is, how do you run this program on an Amazon Linux server? I may not be able to interpret it well because it is mostly English, but it was hard to find.
We have an EC2 server on AWS. File transmission and reception are also enabled through PUTTY and WINSCP.
The EXE server program has been placed on the EC2 server.
Stupidly, I tried to run the program on WINSCP, but it didn't work either.
There are four servers as shown in the picture. (This is not important.)
This is how you enter the IP for each server. (Listen processing via corresponding IP)
Finally, the EXE files that appear during debug. (Total 4)
I looked it up and found out that you need to install the MONO project and run the program.
In the case of Amazon Linux, I don't know which version of MONO project I should get,
I didn't see any kind answers or posts about it.
I would appreciate it if you could tell me how to download and install it or even run the program.
linux aws ec2 mono amazon
As far as I know, Amazon Linux (AMI) is based on RHEL RHEL(Red Hat), CentOS, and Fedora series.
However, it does not seem to work, especially if the MONO project is not using a library that guarantees compatibility.
The exe file is an executable file of Windows, but why do you want to turn it on Linux? Wouldn't it be better to create a Windows server on AWS and run it there?
If you wrote it in C# code in Windows, it is highly likely that you used the full framework of Dotnet. In this case, it cannot be guaranteed to work with any other OS (OSX or Linux) except Windows.
Rather, use the Core CLR to change it if you can. This will work properly on Linux as well. Of course, you have to compile it in a Linux environment.
If you search ASP.NET 5 or ASP.NET Core, you'll find many things.
© 2024 OneMinuteCode. All rights reserved.