This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
esxi:terraria_server [2020/05/24 08:28] derek |
esxi:terraria_server [2024/09/22 19:51] (current) |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| * Memory: 2GB | * Memory: 2GB | ||
| - | {{page> | + | {{page> |
| ===Install Terraria Server:=== | ===Install Terraria Server:=== | ||
| Line 19: | Line 19: | ||
| <code bash> | <code bash> | ||
| # Allow port 7777 through iptables | # Allow port 7777 through iptables | ||
| - | echo "-A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT" >> / | + | sed -i "s/COMMIT/-A INPUT -p tcp -m tcp --dport 7777 -j ACCEPT\n-A INPUT -p udp -m udp --dport 7777 -j ACCEPT\nCOMMIT/" / |
| - | echo "-A INPUT -p udp -m udp --dport 7777 -j ACCEPT" | + | reboot |
| tdnf install unzip tmux less | tdnf install unzip tmux less | ||
| - | # Download and place the server in /terraria (Check the PC Dedicated Server link at the bottom of https:// | + | # Download and place the server in /terraria (Check the PC Dedicated Server link at the bottom of https:// |
| cd /tmp | cd /tmp | ||
| curl --output terraria-server.zip https:// | curl --output terraria-server.zip https:// | ||
| Line 48: | Line 48: | ||
| ## | ## | ||
| <esc> :wq | <esc> :wq | ||
| - | </ | ||
| - | Run the following to start the server: | + | # Start the server |
| - | < | + | |
| tmux new -s terraria "/ | tmux new -s terraria "/ | ||
| </ | </ | ||
| Line 74: | Line 72: | ||
| ====Update==== | ====Update==== | ||
| - | {{page> | + | {{page> |
| * Check the PC Dedicated Server link at the bottom of https:// | * Check the PC Dedicated Server link at the bottom of https:// | ||
| - | < | + | < |
| # Download | # Download | ||
| cd /tmp | cd /tmp | ||