简体   繁体   English

如何使用PHP Curl安装Node.js?

[英]How to install Node.js with PHP Curl?

I'm trying to find how to install Node.js on my apache server, but I don't have access to the console (SSH) on my server. 我正在尝试找到如何在我的apache服务器上安装Node.js,但我无法访问我的服务器上的控制台(SSH)。 Is it possible to install Node with PHP Curl ? 是否可以使用PHP Curl安装Node?

I've already downloaded the source code and I put it on my server, but I don't know what to do with it. 我已经下载了源代码并将其放在我的服务器上,但我不知道如何处理它。

It might be possible with PHP and some filthy system() calls, but if you can execute those Commands in a PHP context, why don't you have any access to the server otherwise? 有可能使用PHP和一些肮脏的system()调用,但如果你可以在PHP上下文中执行这些命令,为什么你不能访问服务器呢?

I would ask someone to give you access to the server directly or let the admins install node.js for you. 我会请某人直接给你访问服务器或让管理员为你安装node.js.

Due to the fact that you're the admin of that server and you don't know how to enbale SSH and even not how to install node.js (which is pretty straightforward) I recommend you to read something about administering servers: this as well as this link might help you. 由于这样的事实,你是那个服务器的管理员,你不知道如何enbale SSH,甚至不是如何安装node.js的(这是非常简单的),我建议你读一些有关管理服务器: 为以及此链接可能会帮助您。

Furthermore, here's a tutorial on how to enable sshd on your server and here's a link on how to build and install node.js. 此外, 这里有一个关于如何在服务器上启用sshd的教程, 这里有一个关于如何构建和安装node.js的链接。

But I still ask myself how do you even work with the server if you have no access to it in a way... 但我仍然问自己,如果你无法以某种方式访问​​它,你甚至如何使用服务器...

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

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