Linux上搭建内部npm,sinopia开启了本地无法访问
大家讲道理
大家讲道理 2017-04-17 16:18:15
0
1
331

因为我的linux服务器无法连接外网,所以只能先连接外网下载好node源码,然后再用sftp上传到服务器上。
node和npm都成功安装了。
然后接着安装sinopia,也是上面同样的方法。
sinopia是一个搭建企业内部私人npm的node服务器。
全部都以下面这种方式设置了全局命令:

ln -s /home/node-v4.6.1-linux-x64/bin/node /usr/local/bin/node

执行$ sinopia,可以看见:

sinopia服务器已开启,并指向4873端口,没怎么在意上面那句,大概意思是sinopia不需要超级权限,不要在root下运行,可是我尝试过在其他目录下运行,都是一样的提示这句。
我在本地win下打开localhost:4873或者ip+4873都无法访问,打开ip是可以访问的。
然后测试下端口:

我的目的是想,用Xshell SSH开启linux的服务器可以本地访问。
请问我还需要做些什么?或者哪些做的不对的?
谢谢~

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
刘奇

I have also encountered this problem. You need to configure the .config/sinopia/config.yaml file. You need to find this file.
Add at the end of the file (the port number is set by yourself):
listen: 0.0.0.0:4873
Then you can access the npm warehouse address of the virtual machine

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!