本文参考自 https://terraria.gamepedia.com/Server 。
1)下载服务器程序
截至发布时,最新版本为 1.3.5.3。你也可以在参考网址里下载到最新版。
下载到的压缩包内有 Windows
Linux
Mac
三个子目录,分别是三个平台对应的版本。本文以 Linux 版本为例。
$xls = New-Object -ComObject excel.application | |
$xls.visible = $true | |
$xls.displayAlerts = $false | |
$workbook = $xls.workbooks.open("Z:\Downloads\W020170213333264378621.xls") | |
$sheet = $workbook.sheets.item(1) | |
function GetValue($shell, $row, $col) { | |
return $sheet.cells.item($row, $col).Text | |
} |
#!/usr/bin/env bash | |
JAVA_HOME="/path/to/jre-root" | |
JAVA_OPTS="-Xms1024M -Xmx1024M" | |
# original is "server.jar" | |
# fabric is "fabric-server-launch.jar" | |
JAR="./fabric-server-launch.jar" | |
UNIVERSE="." |
本文参考自 https://terraria.gamepedia.com/Server 。
1)下载服务器程序
截至发布时,最新版本为 1.3.5.3。你也可以在参考网址里下载到最新版。
下载到的压缩包内有 Windows
Linux
Mac
三个子目录,分别是三个平台对应的版本。本文以 Linux 版本为例。
server-ip= | |
server-port=25565 | |
use-native-transport=true | |
# 传输压缩的下限,超过此值会尝试压缩(-1 表示禁用) | |
network-compression-threshold=1460 | |
max-players=8 | |
# 是否进行正版用户名验证 | |
online-mode=false | |
# 正版验证时是否接受来源 IP 不一致的情况 |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
ens192: | |
dhcp4: yes | |
dhcp6: yes | |
optional: yes | |
ens37: | |
dhcp4: no |
netsh interface portproxy delete v6tov4 listenaddress=any listenport=23139
netsh interface portproxy delete v6tov4 listenaddress=any listenport=23445
netsh interface portproxy add v6tov4 listenaddress=[::] listenport=23139 connectaddress=127.0.0.1 connectport=139
netsh interface portproxy add v6tov4 listenaddress=[::] listenport=23445 connectaddress=127.0.0.1 connectport=445
// ==UserScript== | |
// @name anti-csdn-ad-checker | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description csdn sucks! | |
// @author noname | |
// @match https://blog.csdn.net/*/article/details/* | |
// @grant none | |
// @requires https://code.jquery.com/jquery-3.3.1.min.js | |
// ==/UserScript== |
#include <stdio.h> | |
#include <stdlib.h> | |
int days_m[] = { | |
31, | |
28, | |
31, | |
30, | |
31, | |
30, |
# BBR | |
net.core.default_qdisc=fq | |
net.ipv4.tcp_congestion_control=bbr | |
fs.file-max = 1000000 | |
fs.inotify.max_user_instances = 8192 | |
net.ipv4.tcp_syncookies = 1 | |
net.ipv4.tcp_fin_timeout = 30 | |
net.ipv4.tcp_tw_reuse = 1 |