multicraft.conf配置文件中文翻译 我的世界开服腐竹日记


## 这是Multicraft后台程序的主配置文件 Any change to
## 他的文件需要重新启动Multicraft后台程序或通过面板重新加载
## 设置->Operations.后台程序在运行的时候不是所有的配置都能加载
## 前面有“#”的行是禁用的,不会有任何效果。
## 删除“#”以启用该设置。
[multicraft]
## 后台程序将在此用户下运行(不用于Windows)
user = minecraft
## Directories created by Multicraft will have the owner set to
## the user and the group set to the webUser (不用于Windows)
## default: same as "user"
webUser =
 
## 后台程序将监听以下IP/端口。
## 0.0.0.0 监听所有可用接口(所有ip)。请注意
## 如果设置了0.0.0.0,就必须启用 "externalIp" 。
## 因为控制面板需要知道哪里连接。
ip = 127.0.0.1
port = 25465
 
## 如果外部地址与侦听地址不同
## 您可以在这里设置外部地址。此设置将被保存到数据库,
## 并由控制面板用于连接到后台程序。
## default:和 "ip"一样
#externalIp =
 
## 后台程序通信的连接密码
## !! 如果使用的公共IP来通过面板控制后台,就一定要设置密码,防止其他人也能连接到。同样的密码在面板那边也要设置。!!
## 在这个文件目录下 protected/config/config.php
password = ljh520...
 
## 后台程序连接的远程IP限制。 这是逗号分隔的
## 允许连接到这个后台程序的ip列表。Empty 对所有
## ip允许远程。
## default: empty
#allowedIps = 127.0.0.1
 
## 允许此后台程序连接的最大后台程序数。
## default: 500
#maxConnections = 500
 
## 单个客户端可以打开的后台程序连接的最大数量。
## default: 50
#maxClientConnections = 50
 
 
## 守护进程ID,只有动态许可证支持这个设置。
## 使用相同的id运行多个服务器可能会导致不可预测的行为
## Valid values: 1, 2, ..., 65535
id = 1
 
## 包含后台程序的数据库
## default: sqlite:data.db (-> "baseDir"/"dataDir"/data.db)
database = mysql:host=127.0.0.1;dbname=multicraft
## MySQL连接的例子:
database = mysql:host=127.0.0.1;dbname=multicraft
dbUser = root
dbPassword = ljh520...
#dbCharset = utf8
 
## 这个守护进程的名称,这是可选的
## default: Multicraft Daemon
#name =
 
## 这个守护进程可用的内存量(MB)。 该设置主要
## 用于在控制面板中显示信息
## 让API决定这个守护进程是否仍然可以运行更多服务器。
## 0表示未定义
## default: 0
#totalMemory =
 
## multicraft安装的基本目录.相对于用户
## 主目录或绝对目录。必须存在。
## default: multicraft (-> /home/"user"/multicraft)
baseDir = /home/minecraft/multicraft
## The directory the daemon binaries reside in
## default: bin (-> "baseDir"/bin)
daemonDir = bin
## The data directory. Contains the database, socket, log and
## must be accessible by the control panel user if using a SQLite DB
## default: data (-> "baseDir"/data)
dataDir = data
## The directory jar files can be placed in
## default: jar (-> "baseDir"/jar)
jarDir = jar
## The directory containing all the servers. Users can be given access
## to specific subdirectories containing their server data
## default: servers (-> "baseDir"/servers)
serversDir = servers
## The directory containing server templates
## default: templates (-> "baseDir"/templates)
templatesDir = templates
## The following files contain daemon specific data.
## The paths specified are relative to "baseDir"
pidFile = multicraft.pid
logFile = multicraft.log
licenseFile = multicraft.key
scriptsFile = scripts.conf
## 此文件根据可执行文件的名称定义要使用的配置文件
configsFile = server_configs.conf
## This config file contains the default server configuration. It is not
## in the "jar" directory so it does not get listed as a selection in the
## JAR File dropdown.
defaultConfigFile = default_server.conf
 
## Note that for all of the above settings where a file or directory is
## indicated you can also use absolute paths (/dir), home-relative
## paths (~/dir) or relative paths (./dir or ../dir). "dir" stands for
## the setting you're editing.
## When not using absolute/relative paths the setting is taken to be
## relative to the home directory of the user configured by the "user"
## setting.
## Examples:
## - Changing "baseDir" to ./multicraft will cause multicraft to search
## all the files in a subdirectory "multicraft" of the directory it's
## called from
## - Changing "logFile" to ~/multicraft.log will cause Multicraft to log
## everything to the file multicraft.log in the home directory of the
## user configured by the "user" setting
 
## The maximum size of one logfile after which the log will be rotated
## default: 20971520 (20 MB)
logSize = 20971520
 
## The number of log files to keep (multicraft.log.1 ... multicraft.log.X)
## default: 9
logCount = 9
 
## Synchronize log writes. Disabling this will improve performance at the
## risk of having some log entries overlap.
## default: true
#logSync = false
 
## Use thesyslog facility instead of logging to a file.
## default: false
#logSyslog = true
 
## The syslog facility to log to. Possible values: auth, cron, daemon,
## kern, lpr, mail, news, security, syslog, user, uucp, local10-17
## default: daemon
#logFacility = daemon
 
## Log all commands the daemon receives from the panel
## default: false
#logCommands = false
 
## Log server console output to the log file under these conditions:
## - always Always log server console output
## - startup Only log server console output during server startup
## - running Only log server console output after server startup
## - never Never log server console output
## default: startup
#logServerConsole = startup
 
## Delay between server auto-starts in milliseconds.
## default: 750
autostartDelay = 750
 
## Automatically update server binaries, conf files or both on daemon
## startup. Valid values:
## - empty Don't update anything on startup
## - base Update the server binaries and conf files for the base server
## types that come with Multicraft. Currently:
## minecraft_server.jar.conf, minecraft_optimized.jar.conf,
## craftbukkit.jar.conf, spigot.jar.conf
## - initial Same as "base" but only update if the jar files don't exist
## - binary Update all server binaries on daemon startup
## - conf Update all server conf files on daemon startup
## - both Update all server binaries and conf files on daemon startup
## default: empty
startupServerUpdate = initial
 
## A list of section names in .conf files that can safely be defined
## or overridden by users. Note that this is just a default value that
## can itself be overridden in the .conf files in the daemon directory.
## Use * to allow all sections or a regular expression matching allowed
## sections only.
## default: ^(encoding|commands|parse_.+)$
#safeConfSections = ^(encoding|commands|parse_.+)$
 
## Allow symlinks where directories are expected. This check is done for
## security.
## default: false
#allowSymlinks = false
 
## Skip the integrity check for directories. This check is done for
## security, it verifies that a directory entry is consistent with its
## filesystem entry. You can disable this if this check causes issues
## on your particular filesystem.
## default: true
#skipIntegrityCheck = false
 
## The timeout for template setup operations in seconds
## default: 600
#templateSetupTimeout = 600
 
## Disables the template functionality. Please use the setting in the panel to
## disable it there.
## default: false
#templatesDisabled = false
 
## Advanced: Use TCP keepalive for daemon connections
## default: true
#tcpKeepAlive = true
## Advanced: Use TCP keepalive for FTP connections
## default: true
#ftpTcpKeepAlive = true
## TCP keepalive parameters, use 0 for system default
## default: 0
tcpKeepAliveIdle = 60
tcpKeepAliveInterval = 5
tcpKeepAliveCount = 6
## Advanced: Set global timeout for TCP connections in seconds, 0 for no
## timeout
## default: 120
tcpTimeout = 120
 
## Advanced: Prefer IPv4 for version check requests.
## Can speed up hostname lookup.
## default: true
#preferIPv4 = true
 
## Whether to delete the server directory on the old daemon after a server
## move. This is disabled by default for safety.
## default: false
#deleteAfterMove = false
 
## Only allow a single script to be run at a time for each server. If disabled
## there is no limit on the number of scripts that can be running at the same
## time.
## default: false
singleScriptPerServer = true
 
## The timeout for server executable and config file downloads in seconds.
## default: 15
#downloadTimeout = 15
## The User-Agent string to use for server executable and config file downloads
#downloadUserAgent = Your Custom User-Agent
## The User-Agent string to use for plugin downloads
#downloadUserAgentPlugins = Your Custom User-Agent
## Whether or not to add version/architecture/OS parameters when downloading
## config files
## default: true
#downloadAddVersionInfo = true
 
## When enabled the remote host will be verified when using HTTPS, otherwise
## the host and certificate checks are skipped.
## default: false
#secureDownloads = false
 
## The CA certificate bundle to use for verifying secure downloads. If set to
## "auto" the daemon will try a set of default paths.
## default: auto
#caBundle = /etc/ssl/certs/ca-certificates.crt
 
[useragent]
## The path to the Multicraft useragent. This program is used in
## multiuser mode to access user files.
## default: bin (-> "baseDir"/bin, same as daemonDir)
#userAgentDir = bin
## The executable of the Multicraft useragent. Note that a config
## file with the same name as this setting (plus .conf) will be
## generated next to this file.
## default: launcher (-> "baseDir"/"userAgentDir"/useragent)
#userAgentFile = useragent
## The minimum allowed user and group IDs for server users
## default: 100
#userAgentMinUid = 100
#userAgentMinGid = 100
## The script to run when a server is being prepared. The path is
## relative to the userAgentDir.
## NOTE: This script will be run as the superuser.
## default: empty
#userAgentSuperuserPrepare =
## The script to run when a server is being prepared. The path is
## relative to the baseDir.
## default: empty
#userAgentPrepare =
## Various useragent configuration options
#userAgentCp = /bin/cp
#userAgentCpOpts = --preserve=mode,timestamps --
#userAgentDirCpOpts = -r --preserve=mode,timestamps --
#userAgentUnzip = /usr/bin/unzip
#userAgentUnzipOpts = -qql
#userAgentUnzipRe = ^(?:\s+[^\s]+){3}\s+(.*)$
 
 
[launcher]
## The path to the Multicraft launcher. This launcher program enables
## Multicraft to run servers that need a console to run correctly.
## default: launcher (-> "baseDir"/launcher)
#launcherDir = launcher
## The executable of the Multicraft launcher
## default: launcher (-> "baseDir"/"launcherDir"/launcher)
#launcherFile = launcher
 
## 集成FTP服务器设置
[ftp]
## 是否启用集成FTP服务器,真/假
## default: true
enabled = true
## 监听FTP连接的IP地址, 取消注释以使用与守护进程相同的注释。
## 0.0.0.0 意味着监听所有可用接口(所有ip)
## 默认:与守护进程的“ip”设置相同,见上面
ftpIp = 0.0.0.0
## 请参阅上面守护进程的“externalIp”和“ip”描述
## default: 与“externalIp”相同,如果“ftpIp”为“0.0.0.0”,否则为“ftpIp”
ftpExternalIp = 106.14.117.44
## Masquerade IP address to use for passive FTP connections when
## Multicraft is running behind a router.
## default: empty
#ftpNatIp =
## A port range to use for passive data transfers. If this is not
## specified the FTP server will use random ports.
## Format: 4000-8000
## default: empty
#ftpPasvPorts =
## Port to listen on for incoming FTP connections. Change this to
## something else if you are already running an FTP server on this
## system.
## default: 21
ftpPort = 2121
## 正则表达式匹配不能被##用户以任何方式操作的文件。如果你希望用户能够上传他们自己的插件,而不是## 使用你提供给他们的插件,你可以注释掉这个选项。
## default: empty
## forbiddenFiles = \.(jar|exe|bat|pif|sh)$
## Set the level of detail for FTP server log messages in the multicraft.log.
## Errors will always be logged regardless of this setting.
## Available levels:
## - full Log all messages
## - basic Don't log client/server communication
## - none No FTP logging
## default: full
ftpLogLevel = full
## 如果设置为true。则可以用/home/minecraft/multicraft/bin/multicraft start_ftp来单独启动ftp功能,## 直接用start是不会启动ftp的
## default: false
ftpSeparate = false
## The PID file for the FTP only process. The path is relative to "baseDir"
## default: multicraft_ftp.pid
ftpPidFile = multicraft_ftp.pid
## The log file to use for the FTP only process. This setting has no effect if
## the FTP server is started as part of the main daemon process (i.e. if
## "ftpSeparate" is false.
## default: multicraft.log (same as the daemon)
ftpLogFile = multicraft.log
## 控制FTP带宽(实验)输入数据控制(Kb/s)
## default: 0 (无限制的)
#ftpThrottleIn = 0
## Outgoing data throttle (Kb/s)
## default: 0 (无限制的)
#ftpThrottleOut = 0
 
## 启用后启动FTPS服务器
## default: false
#ftps = false
 
## The certificate file to use for the FTPS server. This is required when the
## "ftps" setting is enabled. You can generate your own self signed certificate
## as described here:
## https://httpd.apache.org/docs/2.4/ssl/ssl_faq.html#selfcert
## It's not recommended to use the default certificate for live deployments.
## default: ssl/ftps.pem
#ftpsCertfile = ssl/ftps.pem
## The key file to use for the FTPS server. This can be left empty if the key
## is already contained in the certificate file.
## default: empty
#ftpsKeyfile =
## Enable this to force users to use FTPS
## default: false
#ftpsForce = false
## This will allow some older protocols considered insecure to be used by the
## FTPS server to improve compatibility with older clients.
## default: false
#ftpsCompatMode = false
 
## Minecraft 默认设置
[minecraft]
## The default amount of reserved memory
## default: 1024
memory = 1024
## The name of the java executable
## default: /usr/bin/java
java = /usr/bin/java
## The jar file to use. This file will be looked for in the "base"
## directory as configured above
## default: minecraft_server.jar
jar = minecraft_server.jar
 
## 备份设置
[backup]
## The command to run a backup. The following variables can be used:
## - {WORLD} The name of the world being backed up
## - {SERVER_DIR} The directory of the server (working directory)
## - {MULTICRAFT_DIR} The Multicraft base directory ("baseDir" above)
## - {BASE_DIR} The directory containing all the servers ("serversDir above")
## Note that the resulting files is expected to be named "{WORLD}-tmp.zip"
command = /usr/bin/zip -qr "{WORLD}-tmp.zip" . -i "{WORLD}"*/*
## The same setting for Windows systems
commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" "{WORLD}"*/
## Uncomment the following commands to backup the entire server directory
## instead of just the current world
## command = /usr/bin/zip -qr "{WORLD}-tmp.zip" . --exclude {WORLD}*.zip
## commandWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{WORLD}-tmp.zip" . --exclude {WORLD}*.zip
 
## 系统设置
[system]
## Most of the settings below are for Linux only
 
## Whether or not to use one system user per Minecraft server.
## This is recommended if you let your users upload untrusted executables.
## Note that for every server a new system user is automatically created
## if this option is enabled (user name format and commands configured below).
## default: false
multiuser = true
 
## Display the output of this command in the panel under
## "Settings"->"Multicraft Status"
## default: empty
#infoCmd = uptime
#infoCmdWin =
 
## The name format for new users, the following variables can be used:
## - {ID} The server ID
## default: mc{ID}
userFormat = mc{ID}
## The name format for new groups, the following variables can be used:
## - {ID} The server ID
## - {USER} The full username
## default: same as userFormat
#groupFormat = {USER}
 
## The commands to create and delete system users and groups
## The following variables can be used:
## - {USER} The full username
## - {GROUP} The full groupname
## - {ID} The server ID
## - {DIR} The server base directory, used as the users home
## These commands cannot contain escaped quotes or empty arguments
addUser = /usr/sbin/useradd -c "Multicraft Server {ID}" -d "{DIR}" -g "{GROUP}" -s /bin/false "{USER}"
addGroup = /usr/sbin/groupadd "{GROUP}"
delUser = /usr/sbin/userdel "{USER}"
delGroup = /usr/sbin/groupdel "{GROUP}"
 
## Enable or disable Linux quota support
## default: false
#enableQuota = false
 
## The command to set the Linux user quota
## The following variables can be used:
## - Variables from "addUser" comment
## - {QUOTA} The disk space quota in MB
## - {QUOTA_BLOCKS} The disk space quota in blocks
#setUserQuota = /usr/sbin/setquota -u "{USER}" 0 "{QUOTA_BLOCKS}" 0 0 -a
 
## The script used to fetch quota usage information for the current user
## (in blocks)
## default: scripts/getquota.sh
#quotaCheckScript = scripts/getquota.sh
 
## The minimum time in seconds between two quota usage checks
## default: 20
#quotaCheckDelay = 20
 
## The kernel block size to use for quota calculation
## default: 1024
#quotaBlockSize = 1024
 
## Regular expression for filtering file names. Any match gets replaced by "_".
## Warning: Changing this is potentially dangerous
## default: [\\/<>:|*?"'&;$~%\0]
#fileFilter = [\\/<>:|*?"'&;$~%\0]
 
## The command to unpack a zip file. The following variables can be used:
## - {FILE} The name of the zip archive to restore
## - {MULTICRAFT_DIR} The daemon base directory
unpackCmd = /usr/bin/unzip -quo "{FILE}"
## The same setting for Windows systems
unpackCmdWin = "{MULTICRAFT_DIR}\bin\unzip.exe" -quo "{FILE}"
 
## The command to pack a zip file. The following variables can be used:
## - {FILE} The name of the zip archive to create
## - {MULTICRAFT_DIR} The daemon base directory
packCmd = /usr/bin/zip -qr "{FILE}" .
## The same setting for Windows systems
packCmdWin = "{MULTICRAFT_DIR}\bin\zip.exe" -qr "{FILE}" .
 
## Settings for Docker support (EXPERIMENTAL)
[docker]
## Enable Docker support
## default: false
enabled = false
 
## The name of the user that the container process should belong to. It's
## recommended to create a new user that is used just for this, for example:
## # adduser --disabled-login --no-create-home --ingroup users docker
## default: docker
#user = docker
 
## “docker”组的名称。的访问权限
## docker daemon.
## default: docker
#group = docker
 
## The full path to the "docker" executable
## default: /usr/bin/docker
#docker = /usr/bin/docker
 
## The name of the Docker image to use
## default: java:jre
#image = java:jre
 
## Memory in MB to add to server memory value for Docker containers
## default: 128
#memoryAdd = 128
 
## CPU factor for each Docker container. Multiplies default CPU shares by this
## value.
## default: 1.0
#cpuFactor = 1.0
 
## If this is enabled the daemon will try to always show the external IP in the
## server console instead of the IP used in the container.
## default: true
#maskIp = true
 
## Format for volume definitions (see mounts below)
## default: --volume=%s:%s:%s
#volumeFormat = --volume=%s:%s:%s
 
## Format for environment variable definitions
## default: --env=%s=%s
#envFormat = --env=%s=%s
 
## Directories to mount inside the container. Uses the "volumeFormat" setting
## to mount the directories. Format:
## HOST_DIR[:[CONTAINER_DIR]:[MODE]]
## If CONTAINER_DIR is omitted it is set to the same value as HOST_DIR.
## MODE can be "rw" for writable or "ro" for read-only, defaults to "ro".
#mounts = "{TEMPLATES_DIR}" "{MULTICRAFT_DIR}/scripts" "{DAEMON_JAR_DIR}" "{SERVER_DIR}::rw"
 
## Additional arguments to pass to Docker
## default: empty
#arguments =
 
## The command to start the Docker container. See the [start] section of the
## default "craftbukkit.jar.conf" for a list of available variables.
## Additional variables:
## - {DOCKER_ARGS} The additional arguments from the "arguments" setting
## - {DOCKER_VOLUMES} The volume arguments generated from the "volumeFormat"
## and "mounts" settings
## - {DOCKER_ENVS} The env arguments generated using the "envFormat" setting
## - {DOCKER_IMAGE} The docker image to use
## - {DOCKER_MEMORY} The memory limit in MB to use for this container. This is
## calculated as the server memory limit plus the "memoryAdd" setting
## - {DOCKER_CPUSHARES} The CPU shares this container can use. This is
## calculated using the "cpuFactor" setting (1024 * cpuFactor)
## - {DOCKER_IP} The actual IP setting of the server. When running in a Docker
## container the {IP} variable is always 0.0.0.0
#command = run --rm -i -a stdin -a stdout -a stderr --read-only --tmpfs /tmp:exec --security-opt=no-new-privileges --cap-drop=ALL {DOCKER_ARGS} -p {DOCKER_IP}:{PORT}:{PORT} -w {WORKING_DIR} -u {UID}:{GID} -m {DOCKER_MEMORY}M --cpu-shares={DOCKER_CPUSHARES} --name=mc{SERVER_ID} {DOCKER_VOLUMES} {DOCKER_ENVS} {DOCKER_IMAGE}
 
## The command to stop a container when a server did not shut down on its own
## after a certain period of time
#stopCommand = stop mc{SERVER_ID}
 
## The command to kill a container when it does not close after sending the
## stop command
#killCommand = kill mc{SERVER_ID}
 
## The command to determine the PID of the root process of a container
#pidCommand = inspect -f "{{ .State.Pid }}" mc{SERVER_ID}
 
## Docker settings can be overridden by conf files of server executables in the
## [docker] section. This setting is a comma sepparated list of setting types
## that can be overridden. Valid values:
## - disable: Allows conf files to run without Docker ("enabled" setting)
## - image: Allows conf files to change the image name ("image" setting)
## - settings: Allows conf files to change general settings ("memoryAdd",
## "cpuFactor", "maskIp" settings)
## - command: Allows conf files to affect the final docker run command
## ("mounts", "arguments", "command", "stopCommand", "killCommand")
## default: image, settings
#override = image, settings
 
## Cleanup existing docker containers using the configured cleanup command
## before trying to run a server.
## default: false
#cleanup = false
 
## The command to cleanup an existing container before starting a server
#cleanupCommand = rm -f mc{SERVER_ID}
 
详细请看: www.ricemc.cn
另外:
查看歪果仁对中国的看法的网站谁在说话社区: www.mcqi.cn


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM