[英]Running Java application on server
I have access to a server using SSH. 我可以使用SSH访问服务器。 I need to run a stand-alone Java application on it to access a MySQL server installed there.
我需要在其上运行一个独立的Java应用程序来访问安装在那里的MySQL服务器。 How do I go about in doing this?
我该怎么做呢?
Assuming it is a linux machine, you have to connect to by using SSH
it and use scp
command to upload the files and deploy it... than you have to run the JAR you deployed: 假设它是一台linux机器,你必须使用
SSH
连接它并使用scp
命令上传文件并进行部署...而不是你必须运行你部署的JAR:
java -jar /path/to/file.jar
Or, provide more details please 或者,请提供更多详细信息
Assuming you have the requirement to copy the JAR file on the *nix box and then run it(and not connect a Java process to it remotely) 假设您需要在* nix框中复制JAR文件然后运行它(而不是远程连接Java进程)
java -jar your.jar
command java -jar your.jar
命令运行它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.