How to run Java programs on the server?

I've made a will The data in CSV file is stored in the Java application of MySQL database Now my client wants to upload this application to his Cyberspace (the cyberspace he uses for his website) so that he can run it on the server

I used FileZilla software to upload the program to his web hosting, but now I don't know how to run the program on his server

To run it on the local system, it needs to open a command prompt window to run it

Is it necessary for the web host to support the specific functions of running the Java program?

Since it stores the data in the file (. CSV file) into the MySQL database, it is better to deploy the program on the server hosting the database rather than the server hosting the website?

Solution

In fact, when we say "web application", we usually mean a special application that is programmed to run on the web server all the time, just waiting for the user to process the request

In your case, you have a console - based application

Depending on the server configuration, these applications cannot be hosted on your client network, either or both

Since web hosting is usually provided by hosting companies, they may be ready to run the configuration of the application, may open / close, or even charge a fee for it

In the case of internal corporate servers, you need to ask your customers and their IT department for configuration

Finally, you need to ask: 1 Does the server support SSH? – It's just a remote console Usually it runs on port 22. You check it a lot with the command "telnet yourserver 22" (windows and Linux) - if it doesn't refuse your connection - it means SSH is configured 2. Is java installed on your server? If your account is available through SSH connection?

>Only your customers really mean web applications, not console based applications. You need to ask whether the server has a Java Web application server - usually, it is similar to Apache, Tomcat, jetty, JBoss, Weblogic, etc However, this will require application modifications to run it on the web server

If you decide to use a console application instead of upgrading it to a web application, you can really run it on the host where the database is running (SSH is also required) You'll save time on remote database access operations – in theory, your program will run faster

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>