实例运行
mochiweb源码下载地址:http://github.com/mochi/mochiweb
mochiweb源码下载地址:http://github.com/mochi/mochiweb
源码下载完后,查看README,实例创建方法如下:
To create a new mochiweb using project:
make app PROJECT=project_name
To create a new mochiweb using project in a specific directory:
make app PROJECT=project_name PREFIX=$HOME/projects/
make app PROJECT=project_name
To create a new mochiweb using project in a specific directory:
make app PROJECT=project_name PREFIX=$HOME/projects/
执行如下:
1 进入mochiweb源码目录,执行命令:make app PROJECT=mochiweb_test
若需要更改路径,可以选择创建方法第二条命令

2 进入mochiweb_test文件夹,在shell中输入make命令,自动获取完整的项目需求文件

3 执行sh start-dev.sh启动实例

接下来打开游览器输入:localhost:8080
mochiweb实例成功运行浏览器将显示:mochiweb_example running.