본문 바로가기

Computer/Server29

[monitorix] 서버 리소스 확인 툴 Centos 기준입니다. 1. RHEL 설정해주기 ( Repository 추가 ) First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. Use below links based on your Linux OS versions. (Make sure you must be root user).RHEL/CentOS 7 64 Bit## RHEL/CentOS 7 64-Bit ## # wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm # rpm -ivh epel.. 2015. 8. 28.
[NodeJs] Socket.io /** * Module dependencies. */ var express = require('express');var routes = require('./routes');var http = require('http');var path = require('path'); var app = express();app.use(express.static(path.join(__dirname, 'public'))); var httpServer =http.createServer(app).listen(8080, function(req,res){ console.log('Socket IO server has been started');});// upgrade http server to socket.io servervar i.. 2015. 8. 26.
[Git] project 별 rsa 키 파일 설정시 Q_1 Could not open a connection to your authentication agent. A_1 agent 를 활성화시킨다. eval `ssh-agent -s` A_2이후 생성한 키파일을 추가해준다. ( id_rsa < 이걸 다른걸로 바꾸면됨 )ssh-add ~/.ssh/id_rsa 2015. 8. 19.
[Script] bash, shell 1. '#!' 는 magic number 이다.'#!' 는 스크립트 가장 처음 명시되는 녀석으로 어떤 해석기로 해당 스크립트를 해석할지 선언하는 겁니다.그래서 #! 뒤에는 정확한 경로가 있어야하지요#!/bin/sh #!/bin/bash #!/usr/bin/perl #!/usr/bin/tcl #!/bin/sed -f #!/usr/awk -f 2. 스크립트 실행 권한 부여 스크립트를 만들었다면, 실행할 수 있는 권한을 주어야 합니다.chmod 555 scriptname (아무나 읽고/실행 할 수 있게) chmod +rx scriptname (아무나 읽고/실행 할 수 있게) chmod u+rx scriptname (스크립트 소유자만 읽고/실행할 수 있게) 3. 스크립트 실행 ./scriptname 혹은 /us.. 2015. 8. 7.
반응형