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

How to start a node application in CentOS

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

FEF-UdaciMeals-Backbone

FEF-UdaciMeals-Backbone-Server

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?

查看the binaries directory in the repo,答案似乎是:

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

这似乎假设您是 运行 来自同一个 binaries 目录本身的命令,并且从那里到 FEF-UdaciMeals-Backbone 目录的相对路径是指定的。 (如果您按照本教程进行操作,则后一种假设很有可能是正确的。)