簡體   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