노출되는 이미지가 불편하시겠지만 양해를 구합니다. 노출, 클릭등에 관한 자료로 활용 중입니다.


How To Install Node.js on a CentOS 7 server


-node.js를 centos 7에 설치하는 방법


Introduction/소개

Node.js is a Javascript platform for server-side programming. It allows users to easily create networked applications that
require backend functionality. 
By using Javascript as both the client and server language, development can be fast and consistent.

Node.js는 서버쪽 프로그래밍을 위한 자바스크립트 플랫폼이다. 이것을 개발자에게 백엔드
기능을 갖춘 네트웍 처리를 하는 어플리케이션을 만들기 쉽게 해준다.
클라이언트와 서버 언어 양쪽을 자바스크립트를 사용하는 것은 개발은 빠르고 일관성있게 해 준다.

In this guide, we will show you a few different ways of getting Node.js installed on a CentOS 7 server so that you can get started.
Most users will want to use the EPEL installation instructions or the NVM installation steps.

이 가이드에서는, CentOS 7 서버에  Node.js를 얻는 몇가지 방안을 보여주고 시작할 수 있게 해 줄 것이다.
대부분의 사용자는 EPEL 설치 방식과 NVM 설치 절차를 사용하는 것을 원할 것 같다.

1. Install Node from Source / 소스를 통한 설치

 One way of acquiring Node.js is to obtain the source code and compile it yourself.
 To do so, you should grab the source code from the project's website. On the downloads page,
 right click on the "Source Code" link and click "Copy link address" or whatever similar option your browser gives you.


 >wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz
 >tar xzvf node-v* && cd node-v*
 >sudo yum install gcc gcc-c++
 >./configure
 >make
 >sudo make install
 >node --version

2. Install a Package from the Node Site / 패키지를 통한 설치
 Another option for installing Node.js on your server is to simply get the pre-built packages
 from the Node.js website and install them.

 cd ~  wget http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz

3. Install Node from the EPEL Repository/ EPEL저장소를 통한 설치
 

An alternative installation method uses the EPEL (Extra Packages for Enterprise Linux) repository
 that is available for CentOS and related distributions.

 >sudo yum install epel-release
 >sudo yum install nodejs
 >node --version
 v0.10.30

4. Install Node Using the Node Version Manager / NVM을 통한 설치
 

Another way of installing Node.js that is particularly flexible is through NVM, the Node version manager.
 This piece of software allows you to install and maintain many different independent versions of Node.js,
 and their associated Node packages, at the same time.

 >curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh
 >curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
 >nvm list-remote


Conclusion / 결론


 As you can see, there are quite a few different ways of getting Node.js up and running on your CentOS 7 server.
 ~

원문 : https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server

'Application, App > Node.js' 카테고리의 다른 글

Node.JS 웹 채팅 (간단한 예제)  (0) 2017.02.07
(1) 소개 - Node.js  (0) 2016.05.20
블로그 이미지

StartGuide

I want to share the basic to programming of each category and how to solve the error. This basic instruction can be extended further. And I have been worked in southeast Asia more than 3 years. And I want to have the chance to work another country.

,