본문 바로가기

Computer/Server

(29)
[게임서버] 로그를 만들어보자. 안녕하세요?이번시간에는 게임서버에서 꼭 필요한 로그 시스템을 적용할 예정입니다.관련 정보는 아래의 사이트에서 참조하였습니다.출처 : http://gameqa.tistory.com/86우선 제가 적용시킬 서버 로그들은 다음과 같습니다.아래는 위의 컨텐츠를 그대로 저장해두고 싶어 복사해두었습니다.따로 문제가 생긴다면 비공개로 포스팅을 없애도록 하겠습니다.1. 기록 단계별 분류- 게임 로그는 DB에 쌓이는 것이기 때문에, DB Machine의 시스템 제약을 받습니다.    MMORPG는 동시에 수많은 액션이 발생하므로, 데이터 테이블을 여러 개 연결하는 작업이 많아지면,   데이터 적재시 동시처리에 지연을 가져올 수 있습니다.- 그래서 게임 로그는 게임서버에서 얻을 수 있는 단순한 정보를 남기고 (원본 로그)..
[Node.js] 우분투 14.04 설치 및 설정 node.js 를 이용하여 소켓 서버를 구성할 예정이다. 우선 환경은 ubuntu 14.04 이고, 해당 환경에서 node.js 를 설치할 계획이다. 0. aws ubuntu 14.04 인스턴스 생성 1. node.js 설치 sudo apt-get update sudo apt-get install nodejs 2. node.js 패키지 매니저 설치 sudo apt-get install npm
[Jenkins] Yosemite 10.10 에서 Jenkins설치시 유의점 [문제] 젠킨스 pkg 파일을 다운로드 받아서 설치를 하시고 바로 실행하시면 아래와 같은 에러를 볼 수 있습니다. localhost:8080 ... error.. cat /var/log/jenkins/jenkins.log 입력시에 아래와 같은 로그를 볼 수 있어요. JLRequestRuntimeInstall: Error calling: CFMessagePortCreateRemote [해결책] JDK 를 설치한 후 pkg 파일을 다시 실행하시면 ( 스크립트가 정상 동작하면서 젠킨스 페이지에 접속할 수 있습니다. ) 젠킨스 오토 빌드까지 완료한 상태입니다. 아래는 진행 순서 였습니다. 1. 젠킨스 설치 2. 유니티3d Plugin 에서 환경변수 설정 ( 유니티 앱 경로 ) 3. android-sdk 다운로드..
[Centos] 방화벽 포트 열기 Use this command to find your active zone(s):firewall-cmd --get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required.In the case of dmz try:firewall-cmd --zone=dmz --add-port=2888/tcp --permanent Otherwise, substitute dmz for your zone, for example, if your zone is public:firewall-cmd --zone=public --add-port=2888/tcp --permanent Then rememb..
[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..
[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..
[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
[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..