Minecraft Wiki

Minecraft 위키가 Weird Gloop으로 이사를 시작합니다. 현재는 영어 위키만 적용된 사항이며, 한국어는 추후 이사 예정이니 참고해주세요.


새로 오신 분들은 길라잡이위키 규칙을 꼭 읽어주세요.

문서 작성번역을 도와주시면 이 위키에 큰 힘이 됩니다.

READ MORE

Minecraft Wiki
Advertisement

마인크래프트 서버파일 다운로드

Minecraft_Server.exe 또는 minecraft_server.jar 파일을 Minecraft downloads page에서 다운로드 합니다.

서버 파일의 종류에 따라서 사용할 수 있는 운영체제가 달라지는데, 윈도우 사용자는 exe, jar 파일을 모두 사용할 수 있고, 매킨토시 또는 리눅스 사용자는 .jar 파일만 사용할 수 있습니다.

바탕 화면, 또는 컴퓨터의 어딘가에 서버를 위한 폴더를 만드는 것이 좋습니다. 폴더 안에는 서버 구동파일이 들어가게 됩니다.

알아두기: Custom Server Software도 있지만, 모장에 의해 공식적으로 지원되지 않음을 알아두어야 합니다.

윈도우용 설명서

자바 버전이 1.6 이상인지 확인하고 최신버전을 설치하기

  1. 자바 버전 6이 설치되어 있는지 확인해야 합니다. 확인하기 위해서는 CMD (명령 프롬프트)를 열면 됩니다.
    • 윈도우 비스타/7에서는 시작 - 검색창에 CMD를 입력하고, 엔터를 누릅니다.
    • 윈도우 XP에서는 시작 - 실행 을 클릭하고 나타나는 창에 cmd 라고 친 뒤에 확인을 누릅니다. 윈도우 키와 R 키를 동시에 누르는 것으로도 실행 창을 열 수 있습니다.
    • CMD (명령 프롬프트)에서 다음 명령어를 치고 엔터를 누릅니다. java -version
    • Java의 버전이 표시되는데, 표시되는 버전이 "Java version 1.6" 이상이면 서버를 실행할 수 있습니다.
  2. 만약 자바가 1.6보다 낮은 버전일 때에는 다음 에러 메세지가 표시됩니다. 'java' 은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이때는 자바를 업데이트해야 합니다. 32비트 사용자들은 여기서 자바 다운로드를, 64비트 운영체제 사용자는 여기서 자바 다운로드를 받으실 수 있습니다.
  3. 자바의 최신버전을 설치하였다면 명령어(java -version)를 다시 입력해서 버전을 확인하여 보시길 바랍니다.
    만약 여전히 오류가 있다면, 아래 내용에 따라 자바를 시스템에 직접 등록해야 합니다.
    컴퓨터 바탕화면을 오른쪽 클릭한다.
    1. 제어판(C) 을 클릭한다.
    2. "고급 시스템 설정" 을 클릭한다.
    3. "환경 변수" 를 클릭한다
    4. Under system variables, find the Path variable.
    5. 수정을 클릭하고, 값의 마지막 부분에 다음 값을 쳐넣는다. ;"c:\Program Files\Java\jre6\bin". 만약 64비트 운영체제 아래에서 32비트 자바를 구동하고 있다면, 대신 다음 값을 입력한다. ;"c:\Program Files (x86)\Java\jre6\bin"
    6. 명령 프롬프트를 켜고 버전을 다시 확인한다.

마인크래프트 서버 만들기 (확장자가 exe 인 파일용)

"Minecraft_Server.exe"를 키면 서버가 자동으로 시작된다.

만약 운영체제가 파일을 실행할 수 없다면, 그것은 Minecraft_Server파일의 .exe확장자명이 손상되었을 가능성이 있다. 이것은 Minecraft_Server파일을 Minecraft_Server.exe로 이름을 바꾸어서 서버가 정상적으로 작동되게 할 수 있다. 만약 위 방법을 통해 문제가 해결되었다면, 파일의 아이콘이 마인크래프트의 아이콘으로 바뀌었을 것이다.

If this does not work you will have to go into command prompt by opening run and typing cmd.exe and pressing enter. Once there you need to navigate to the folder you have created.

해야할 일:

1. Ensure you are in the proper drive (usually c drive). Type C: and then hit enter to access the c drive

2. Now you need to call the directory (open the folder). Type cd \"folder name" then hit enter. Make sure to include the quotation

3. Ensure you are in the proper directory. Type dir and command will generate a list of contents of the folder, you should see minecraft_server there.

4. Rename Minecraft. Type rename minecraft_server minecraft_server.exe then hit enter. This should add the .exe extension to the executable and it should now operate correctly


마인크래프트 서버 만들기 (확장자가 jar 인 파일용)

확장자가 .jar 인 파일로 서버를 열고자 하면, you will need to have a path variable set up for Java in order to start the jar version of the server. Refer to step 3 of "Verifying and Installing the Latest Java" above to set up a path variable.

To start the jar version of Minecraft on Windows, create a new file in Notepad, and paste in
java -Xms512M -Xmx1024M -jar minecraft_server.jar

Save the file as startserver.bat, and place the file in the same folder as minecraft_server.jar. The .bat extension saves the file as a batch file.

Double click startserver.bat, and the Minecraft server will run.

Starting the jar version without altering your system path

To start minecraft.jar server without having to change your system path variable you need to instead express the path variable for Java in the "start.bat" file. This is handy because it allows you to still run commands from command prompt using the default system path, without having to constantly edit the system path.

  1. To do this open your start.bat file (or whatever you've named it) with Notepad
  2. On the very first line add the command
    @echo off
    so that a command window isn't opened to show the output from our start file
  3. On the next line make sure the system can find Java (also called the Java Runtime Environment or JRE) by adding it to the Path Environment Variable. On a current Windows PC Java will be most commonly located at "C:\Program Files (x86)\Java\jre6\bin", so what you would then write is
    path=%PATH%;%ProgramFiles(x86)%\Java\jre6\bin
    where %PATH% contains the existing Path values and %ProgramFiles(x86)% contains the location of your 32bit Program Files - usually "C:\Program Files (x86)"
  4. Finally, make sure on the last line you have the command that starts the Minecraft server itself:
    java -Xms512M -Xmx1024M -jar minecraft_server.jar
  5. If you prefer not to use the server's Graphical User Interface (GUI) to enter administration commands, simply add the option nogui to the end of the last command above, so that it reads:
    java -Xms512M -Xmx1024M -jar minecraft_server.jar nogui

서버 설정과 연결하기

이제 다음과정을 실행할 순서이다 configure and connect.

리눅스를 위한 설명서

리눅스에서 마인크래프트 서버를 어떻게 구축하는지 설명하는 이 튜토리얼은 리눅스에 대하여 풍부한 경험을 가지고 있지 않은 사용자를 위해 만들어진 튜토리얼입니다. 오래되었지만 더 자세한 튜토리얼 (영문)을 포럼에서 보실 수 있습니다.

이 튜토리얼은 32비트 우분투 9.10에서 테스트되었지만 다른 어떤 데비안 기반 배포판에서든 잘 동작할 것입니다. (64비트 리눅스는 64비트 CPU에서 더 잘 동작하며, 32비트판은 메모리 용량이 크더라도 그 중 4GB 밖에 사용하지 못한다는 사실을 알아두시면 좋습니다.)

다운로드 받기

가장 최신의 서버 소프트웨어를 가지고 있어야 합니다. 위의 설명을 참고하시기 바랍니다. Ensure you have the latest server application software. Look above for instructions.

자바 설치하기

터미널(명령창)에 java -version를 입력했을 때 다음과 같은 문구 java: command not found 가 나오거나 (실제 문장은 이것보다 더 김) 버전 1.6 이하의 자바가 설치되어 있다면 자바를 새로 설치하거나 업데이트해야 합니다.

정식 오라클 자바를 설치하는 것을 권장합니다. 일부는 OpenJDK로 실행했을 때 문제가 발생했다고 말합니다. 반면, OpenJDK에서 실행해도 아무런 문제가 없다고 하는 입장도 있습니다.

데비안

apt가 non-free 저장소를 스캔하도록 설정해야 합니다. non-free라는 문구를 /etc/apt/sources.list에 집어넣으면 됩니다.

예시)

deb http://ftp.uk.debian.org/debian/ squeeze main contrib non-free

저장소 목록을 업데이트합니다. (루트 권한으로)

apt-get update

자바를 설치하려면 다음 명령어를 입력하면 됩니다. (루트 권한으로)

apt-get install sun-java6-jre

우분투

안타깝게도, 라이센스 관련 문제로 인해 파일 저장소에서 오라클 자바가 제거되었습니다. 그래서 오라클에서 직접 다운로드해 설치하거나, 아래 설명을 따라 webupd8이 제공하는 PPA를 이용해 설치해야 합니다.

이 가이드는 우분투 서버 12.10에서 구동되었습니다.

일러두기: 미리 설치해두어야 할 패키지가 있습니다. apt-get install software-properties-common 명령어를 통해 "software-properties-common"을 설치하거나 apt-get install python-software-properties 명령어를 통해 "python-software-properties"를 설치해야 apt-add-repository 명령어를 사용할 수 있습니다.

아래의 세 명령어를 쳐넣어 자바를 설치하시기 바랍니다. sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

이제 어떤 자바 버전이 설치되었는지 확인합니다.
java -version

다음과 비슷하게 나와야 합니다.
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

더 많은 정보나 문제 해결을 위해서는 이 사이트를 찾아가십시오. this link at webupd8s site

OpenSUSE

zypper in java-1_6_0-sun를 사용하십시오.

아치 리눅스

터미널을 켜고 pacman -Syu openjdk6을 루트 권한으로 실행하십시오.

기타 배포판

자바 웹사이트를 직접 방문해서 리눅스용 자바 패키지를 다운로드받을 수 있습니다. 대부분의 배포판은 이 방법으로 작동합니다. (32비트와 64비트 둘 다). 각자 다른 패키지들에 대한 설명은 사이트에 있습니다.

설치중에 비밀번호를 물어본다면 당신의 비밀번호를 입력하십시오. 만약 "Is this OK [Y/N]"가 뜬다면 Y를 입력하고 엔터를 누르십시오.

마인크래프트 서버 시작하기

터미널을 열어서 (애플리케이션 > 유틸리티 > 터미널). 아래의 명령어를 입력하세요:

cd 'minecraft_server' ('minecraft_server'에 minecraft_server.jar이 위치한 폴더를 쓰십시오.)
java -Xms1024M -Xmx1024M -jar minecraft_server.jar nogui

1GB보다 적은 RAM이 있을때

만약 당신이 1024MB보다 적은 RAM을 가지고 있다면, 위 명령어는 메모리 부족을 일으킬 수 있습니다. 당신의 현재 가용 RAM을 확인하십시오: free -m
아래와 같이 보일 것입니다: 파일:Ram left.PNG

세번째 줄의 마지막 숫자를 보십시오, 여기서는 2163입니다. 안전을 위해 약간의 RAM을 빼십시오. 이 컴퓨터에서 서버는 RAM을 1536MB까지 사용할 것입니다. 이제, 위 명령어에서 1024를 계산된 숫자로 대치하십시오:

java -Xms1536M -Xmx1536M -jar minecraft_server.jar nogui


팁: 만약 더 많은 메모리를 절약하고 싶으면 -Xms 파라메터를 더 낮게 설정할 수도 있습니다.

java -Xms32M -Xmx512M -jar minecraft_server.jar nogui

파라메터는 시작할 때 얼마나 많은 메모리를 사용하는지를 조절합니다. 당신의 서버는 32MB의 RAM으로 시작해서 메모리가 더 필요할 때 마다 512MB 될 때까지 더 많은 메모리를 할당할 것입니다. 그러나, 이것은 메모리 할당이 끝날 때마다 약간 느려지게 합니다.

시작과 관리 스크립트

대신에, 당신은 마인크래프트 서버를 자동으로 시작하게 할 수 있습니다.

Server startup script

OS X 운영체제용 설명서

OS X에 서버를 설치하는 것은 실행기가 제공되지 않기 때문에 설치가 더 복잡합니다. 동영상 튜토리얼은 여기에서 볼 수 있습니다. 마인크래프트 서버는 OS X Tiger 이하 버전을 지원하지 않습니다.

다운로드

가장 최신 버전의 서버 애플리케이션 소프트웨어를 가지고 있어야 합니다. 설명은 마인크래프트 서버파일 다운로드받기를 보십시오.

자바 설치

OS X Lion 버전에서부터는 자바가 기본적으로 포함되어 있지 않지만, 자바 애플리케이션을 살행하면 자동으로 다운로드됩니다.

OS X Snow Leopard 이하 버전은 자체 버전의 자바를 제공합니다.

마인크래프트 서버 설치하기

시작하기 전에 마인크래프트 서버를 다운로드받아야 합니다.

폴더를 하나 만들고, minecraft_server.jar을 안에 넣으십시오. 예를 들어, 데스크탑에 minecraft_server라는 폴더를 만들고 jar 파일을 폴더 아이콘으로 끌어놓으십시오. 텍스트 편집기를 열고, 포맷을 일반 텍스트로 만드세요 ( 포맷 > 일반 텍스트 만들기 ). 아래의 코드를 텍스트 편집기에 입력하고 minecraft_server.jar와 같은 폴더에 "start.command"로 저장하십시오.

#!/bin/bash
cd "$(dirname "$0")"
exec java -Xmx1G -Xms1G -jar minecraft_server.jar

이것은 서버를 실행하는 데 충분한 RAM을 제공할 것입니다. RAM의 양은 1G2G와 같이 변경해서 바꿀 수 있습니다. 터미널을 열고 ( 응용 프로그램 > 유틸리티 > 터미널 ). chmod a+x 를 입력하십시오. 명령어 뒤에 공백을 하나 남기고 start.command 파일을 터미널 창에 끌어다 놓으십시오. 그리고 Return 키를 누르십시오. (이 명령어는 스크립트에 권한을 주는 것입니다.)
start.command을 두번 눌러 서버를 여십시오.

Configuring the Minecraft Server

  1. Configure the server by editing the server.properties (Use this link to see how it works). Windows may not recognize it, so tell it to open with any text editor (such as Notepad or Notepad++). The server should run fine from the default values.
  2. Add your username to the admin.txt and/or ops.txt (newer versions may not have an admin.txt file). Admin.txt allows you to execute server commands.

op privileges allows you to destroy/place blocks. Add the name exactly as it is. From the server gui, you can type "op <name>" and it will automatically update the ops.txt file.

마인크래프트 서버에 연결하기

  • To test the server, if you are playing on the machine you are hosting on, select the "Multiplayer" option in the game client (or browser client) and type in "localhost".
  • For people connecting from the internet, they must connect using your external IP address. You must port forward for someone outside your network to connect to the server.
  • Users within your network can connect with your internal IP address. You do not need to port forward for connections that are within your local network.

IP address notes

  • Unless you set a static IP for the computer that is hosting the game, the internal IP address can change. This affects port forwarding rules, and can make them invalid. Each modem or router has a different way of setting a static IP address. You should refer to the manual for your device(s) or online documentation for further instruction.
  • If you are having players connect to your external IP, your external IP can change if you do not have a static IP from your internet service provider. Use a tool such as http://mywanip.com/ to periodically check on the external IP address. Alternatively, you can look into a dns service that will allow you to have a name, rather than an IP address, that will remain the same. The name will point to your external IP address, regardless of whether or not it changes (the dns is updated when changes occur). An example of a free dns service is Dyndns.

Firewalling, NATs and external IP addresses

  • You must open the TCP port (default is 25565) on the firewall

If the server in question is not reachable via a globally routable IP address, you will need to add appropriate address and/or port number translation rules to the gateway — usually your router has the global IP address.

  • For help with address translation, opening the firewall and routing (these three make up what people call port mapping/forwarding), portforward.com is a good source. Select your router from that list, skip the ad that comes after selecting the device, and you will see instructions for setting up port forwarding. Alternatively, you can read the documentation supplied with your router, modem, or other ISP related hardware.
  • Verify the port is open, and note your external IP by using a port checker tool, such as http://www.yougetsignal.com/tools/open-ports/. The default port you should test is 25565, unless you specified something else. Have the Minecraft server running when you test the port.
  • You can obtain your external IP address from http://www.yougetsignal.com/what-is-my-ip-address/.

Local Network Dedicated Servers

A common problem for server administrators is the inability to connect to your own server via another machine on your local network. A typical scenario for this is that you have a Classic server running on a dedicated machine, and you have your own machine which you play on. They're both connected to the same router/switch, and have internal IP's with the octets '192.168.x.x'. Normally, connecting via the URL generated for your server will result in an error message claiming that the server is offline.

To correct this, you must add a function to the end of your URL, bookmarks, or whatever else you connect by. The function is: ?override=true
Example: http://www.minecraft.net/classic/play/4c3bebb1a01816acbe31c5ece1570da5?override=true

Previously, (before the 1.8 beta and website update) this was &override=true. This caused much confusion since the change was not announced by Mojang, and wasn't announced on the website applet pages either. Before the update, connecting to your own URL via the website resulted in red text under the applet window saying "If you can't connect, try this link instead." The link returned the same thing, with the &override=true affixed to the end.

Note: This situation does not affect Beta servers, and you should be able to connect via an internal or external IP.

Setting Up a VPN (Hamachi)

An easy way to set up a server between you and your friends is to set up a VPN (virtual private network). A free software utility that can be used to set this up is Hamachi by LogMeIn.

Advantage of doing this saves you configuring ports on your router and if you have a dynamic IP address using Hamachi will provide you with a static IP.

  1. Install software on you and your friend's computers https://secure.logmein.com/products/hamachi2/ or https://secure.logmein.com/US/labs/?wt.ac=73-516-440 for Linux (32-bit and 64-bit .deb and .rpm packages are available, you can install it on Gentoo by emerging "net-misc/logmein-hamachi")
  2. One person sign up for admin via logmein website
  3. Create new network
  4. Pass these details onto every person concerned and get them to login
  5. One person set up a server.
  6. Everyone else connect via their Hamachi ip address and use port number 25565 (default)

Reporting problems in the forum

Before you can ask for help in the forums make sure that your problems is not listed in the Common Problems

If your problem is not listed you can create a new thread asking for help in the Server Administration Make sure to include as much information as possible:

  • Operating system
  • What you were trying to do
  • What you did so far
  • Any errors you encountered
  • Screenshots of the problem (if possible)

다른 튜토리얼

아래의 링크는 모두 마인크래프트 서버를 구축하는 방법에 대한 튜토리얼이다..

Advertisement