Ubuntu 安装 http-server
2019-12-09 17:18
2271 查看
1)安装npm包管理器
apt-get install npm
2)安装nodejs包管理器
apt-get install nodejs
3)运行npm安装http-server
npm install http-server -g
提示出错
/usr/bin/env: node: No such file or directory
原因
因为npm执行的时候默认是使用/usr/bin/node去执行的,但本地是没有/usr/bin/node的,所以需要创建一个软链接,链接到真正的nodejs上,执行如下指令
ln -s /usr/bin/nodejs /usr/bin/node
4)在janus-gateway的html路径下启动http-server
root@4c9f329b2677:/home/dong/janus-src/janus-gateway/html# http-server
Starting up http-server, serving ./
Available on:
http://127.0.0.1:8080
http://172.18.0.13:8080
Hit CTRL-C to stop the server
相关文章推荐
- ubuntu下安装apache http server
- Ubuntu下安装配置Apache http server
- ubuntu kylie14.04 64位安装mysql-server5.7.14
- ubuntu 14.04 安装git server
- Ubuntu Server安装图形界面全过程
- GPGPU-Sim学习(二)搭建GPGPU-Sim环境(ubuntuServer 10.04 安装GPGPU-Sim)
- Ubuntu 12.04 server 安装 Apache2+PHP5+MySQL
- Ubuntu Server 12.04安装图解教程
- 在Ubuntu上安装Flash Media Server 3.5(FMS 3.5)
- Ubuntu Server 12.04源码安装PostgreSQL 9.2.4
- Ubuntu 14.04.1 server安装
- 普通PC用两块硬盘做raid1 并安装ubuntu server 16.04
- Ubuntu14.04server 下安装samba
- 关于虚拟机安装Ubuntu10.04 server 网络配置的问题
- Windows下Apache HTTP Server安装
- ubuntu-11.10-server-i386学习笔记-Apache安装
- 使用优盘安装Ubuntu 12.04 Server
- 在Ubuntu Server上安装ReviewBoard
- ubuntu-16.04.1下安装最新版本的mysql数据库mysql-server_5.7.15-1ubuntu16.04_amd64.deb-bundle.tar