问题描述
Plesk Onyx支持Node.js.我的Node.js管理器(来自Plesk扩展)目前支持两个nodejs版本.
Plesk Onyx supports Node.js.My Node.js Manager (from the Plesk extensions) currently supports two nodejs Versions.
使用centos软件包管理器yum安装新版本并没有任何改变.
Installing a new version with the centos package manager yum did not change anything.
复制已安装的版本之一,然后将其放置到新文件夹中,例如4/在Node.js管理器使用的目录结构中也没有导致结果.
Copying one of the versions, that are installed and putting them to a new folder e.g. 4/ in the directory structure used by the Node.js Manager also did not lead to results.
我需要Meteor 1.4.x应用程序的版本4.6.2.
I need the version Node 4.6.2 for Meteor 1.4.x applications.
谢谢.
推荐答案
在Plesk Onyx中启用节点支持:
Enable Node support in Plesk Onyx:
- Install the "Node support" simply from your "update and updates" Plesk interface.
- Go to your "Node extension" page enable/disable the node versions you need
如果需要其他节点版本(默认节点支持安装未随附):
In case you need additional node versions which does not come with the default node support installation:
- 安装> N ode V 版本 M anager 在您的服务器上
- 安装所需的版本,例如
nvm install v4.8.4
- 将节点版本复制粘贴到plesk
cp -R ~/.nvm/versions/node/v4.8.4/ /opt/plesk/node/
- 然后将安装
plesk sbin nodemng register /opt/plesk/node/v4.8.4/bin/node
通知您的专家组 - 转到您的节点扩展页面,其中列出了所有节点版本,单击刷新"并贴上"
- Install the Node Version Manager on your server
- Install the versions you need e.g.
nvm install v4.8.4
- Copy paste the node version to plesk
cp -R ~/.nvm/versions/node/v4.8.4/ /opt/plesk/node/
- Then notify your plesk about your installation
plesk sbin nodemng register /opt/plesk/node/v4.8.4/bin/node
- Go to your node extension page where all node versions are listed, hit refresh and voilá
如果在通过Plesk安装NPM软件包时遇到麻烦,请在SSH shell中使用流星所需的专用节点版本进行操作.
If you have troubles installing the NPM packages through Plesk do it within the SSH shell with the dedicated node version you need for meteor.
-
nvm use 4.8.4
-
cd /bundle/programs/server
-
npm install
- 转到Plesk GUI,选择您的域,然后单击node.js
- 配置并运行应用
nvm use 4.8.4
cd /bundle/programs/server
npm install
- Go to the Plesk GUI, select your domain, click on node.js
- Configure your app and run it
为此打开了一个专用线程来帮助人们找到它.
Opened a dedicated thread for this to help people finding it.
这篇关于如何在Plesk上为Node.js管理器添加新的node.js版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!