简体   繁体   English

在我的在线服务器上启动 js 服务器

[英]Launch js server on my online server

I have written a small application with Node/Express Js who just watch change in a folder and when a csv file is paste, the node js app read the csv file and insert some request in my database.我用 Node/Express Js 编写了一个小应用程序,它只观察文件夹中的变化,当粘贴 csv 文件时,node js 应用程序读取 csv 文件并在我的数据库中插入一些请求。

I work in local system but i need to start this small server on my ovh website But i can't launch node server.js on my ovh website我在本地系统中工作,但我需要在我的 ovh 网站上启动这个小型服务器但是我无法在我的 ovh 网站上启动 node server.js

Do you have any idea ?你有什么主意吗 ? Thanks谢谢

what kind of OVH server hosting do you have ?你有什么样的 OVH 服务器托管?

1. Web hosting 1. 虚拟主机

Is it web hosting ?它是网络托管吗? In that case, you can only do PHP, Perl, C and Python ( http://pro.ovh.net/infos/ ).在这种情况下,您只能使用 PHP、Perl、C 和 Python ( http://pro.ovh.net/infos/ )。 So you can't have a NodeJS app .所以你不能有一个 NodeJS 应用程序 Basically, if you deploy your website with FTP credentials given by OVH, then you are mostly on a Web hosting server.基本上,如果您使用 OVH 提供的 FTP 凭据部署您的网站,那么您主要是在 Web 托管服务器上。

For example, the following OVH offers are web hosting:例如,以下 OVH 优惠是网络托管:

2. VPS 2.虚拟专用网

But if you have a VPS (it gives you full root acces), you can do any linux command you want, just like you do on your local machine.但是如果你有一个 VPS(它给你完整的 root 访问权限),你可以执行任何你想要的 linux 命令,就像你在本地机器上做的那样。 Basically, you have a VPS when you have a ful root access : you can SSH into your server and do command like apt-get update && apt-get install nodejs .基本上,当您拥有完全的 root 访问权限时,您就有了一个 VPS:您可以通过 SSH 进入您的服务器并执行诸如apt-get update && apt-get install nodejs

For example, the following OVH offers are VPS hosting:例如,以下 OVH 优惠是 VPS 托管:

3. Cloud 3. 云

Same as VPS与 VPS 相同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM