CentOS安裝pm2
在上一篇《CentOS上安裝Node.js–v8.9.0》中在CentOS下安裝node.js
需要配置環境變數。今天又安裝pm2
,也需要配置環境變數。
安裝:npm install -g pm2
這個一直:
[root@jkyx ~]# npm install -g pm2
/usr/local/src/node-v8.9.0-linux-x64/bin/pm2 -> /usr/local/src/node-v8.9.0-linux-x64/lib/node_modules/pm2/bin/pm2
/usr/local/src/node-v8.9.0-linux-x64/bin/pm2-dev -> /usr/local/src/node-v8.9.0-linux-x64/lib/node_modules/pm2/bin/pm2-dev
/usr/local/src/node-v8.9.0-linux-x64/bin/pm2-docker -> /usr/local/src/node-v8.9.0-linux-x64/lib/node_modules/pm2/bin/pm2-docker
/usr/local/src/node-v8.9.0-linux-x64/bin/pm2-runtime -> /usr/local/src/node-v8.9.0-linux-x64/lib/node_modules/pm2/bin/pm2-runtime
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/pm2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
+ pm2@2.8.0
added 116 packages and updated 1 package in 11.829s
主要是後面的兩個警告:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/pm2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
通常npm安裝的時候有警告可以直接忽略。這裡其實也是。但是執行pm2
命令就一直提示不存在pm2
這個時候就需要把pm2
配置全域性變數了。
ln -s /usr/local/src/node-v8.9.0-linux-x64/bin/pm2 /usr/local/bin/pm2
執行這個就好了。
相關文章
- 如何打包安裝pm2
- CentOS 6.5安裝Oracle 11.2.0.4------CentOS 6.5安裝CentOSOracle
- CentOS安裝jdkCentOSJDK
- CentOS安裝gitCentOSGit
- Centos 安裝RedisCentOSRedis
- CentOS 安裝 mavenCentOSMaven
- CentOS Docker 安裝CentOSDocker
- centOS安裝rabbitMQCentOSMQ
- CentOS 安裝 dockerCentOSDocker
- CentOS安裝pipCentOS
- Centos安裝opensslCentOS
- CentOS 安裝ScrapyCentOS
- CentOS 安裝ErlangCentOS
- CentOS安裝GraphicsMagickCentOS
- CentOS 安裝 JDKCentOSJDK
- Centos安裝rubyCentOS
- CentOS安裝DockerCentOSDocker
- CentOS 安裝PHPCentOSPHP
- CentOS安裝MySQLCentOSMySql
- centos 安裝swftoolsCentOS
- mongo centos 安裝GoCentOS
- CentOS 安裝 VNCCentOSVNC
- centos安裝mongodbCentOSMongoDB
- CentOS 安裝 SubversionCentOS
- CentOS安裝proftpdCentOSFTP
- centos安裝nodeCentOS
- centos 安裝pyenvCentOS
- Centos 安裝yum,安裝ansibleCentOS
- 【CentOS】CentOS7安裝PostgreSQLCentOSSQL
- Centos Docker安裝、升級、解除安裝CentOSDocker
- Centos7安裝安裝部署dockerCentOSDocker
- Centos7.9安裝解除安裝DockerCentOSDocker
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- centos下安裝dockerCentOSDocker
- Centos 7安裝iscsiCentOS
- CentOS 上安裝 NginxCentOSNginx
- Jenkins CentOS 安裝JenkinsCentOS
- centos上安裝grafanaCentOSGrafana