繁体   English   中英

如何在CentOS中启动节点应用程序

[英]How to start a node application in CentOS

我正在尝试通过udacity的教程学习骨干。 有两个链接用于安装此应用程序。

FEF-UdaciMeals-主干

FEF-UdaciMeals-骨干服务器

FEF-UdaciMeals-Backbone ,说明告诉我这样做:

Set up the project

clone this repo
cd into the newly cloned project
install Bower dependencies via bower install
Set up the server

clone the backend server
launch the binary for your platform
don't forget the --www flag pointing to the UdaciMeals Backbone project you just cloned above
check out that project's Running the server section of its README for specific details

View the app

Using your favorite browser, load http://localhost:8000/ and 💥

对于FEF-UdaciMeals-Backbone-Server项目, Readme.md的代码段具有以下指令:

The binaries directory contains builds for Windows, Mac OS X ("darwin"), and Linux. 
Run the appropriate server program to start the server, supplying 
the --www= flag to point to your front-end code 
(e.g. on Mac OS X use ./server_darwin_amd64 --www=../../FEF-UdaciMeals-Backbone)

该示例显然是在Mac Osx中使用的,但是如何在CentOS中完成此命令./server_darwin_amd64 --www=../../FEF-UdaciMeals-Backbone

查看仓库中binaries目录 ,答案似乎是:

./server_linux_amd64 --www=../../FEF-UdaciMeals-Backbone

这似乎假设您从同一binaries目录本身运行命令,并且从那里到FEF-UdaciMeals-Backbone目录的相对路径已指定。 (如果您跟随本教程一起学习,则后一种假设将是正确的。)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM