Editing
How-to edit server.properties file on Linux
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Basic steps''' # Connect to Linux server # Navigate to directory where server.properties file is located # Use a text edit to open, modify, and save server.properties file == How-to edit server.properties using vi == * The scope of this how-to is step 3 from basic steps. * This how-to will cover changing maximum clients from 8 to 16. '''<big>Step 1 - open server.properties file with vi</big>''' <code>$ vi server.properties</code> vi is a model editor that supports '''insert''' or '''command''' mode. insert mode is where typed text could become part of the file. command mode is where keystrokes are interpreted as commands that control the edit session. Basic cursor movement in vi: * <code>ESC</code> to enter command mode when in insert mode * <code>i</code> to enter insert mode when in command mode * <code>k</code> or <code>up arrow</code> to move up one line * <code>j</code> or <code>down arrow</code> to move down one line * <code>h</code> to <code>left arrow</code> move left one character * <code>l</code> to <code>right arrow</code> move right one character * <code>$</code> to move to end of line * <code>r</code> replace single character under cursor (no <Esc> needed) * <code>R</code> replace characters, starting with current cursor position, until <Esc> hit * <code>u</code> undo last change * <code>:x</code> save and exit file '''<big>Step 2 - move cursor to max-players=8 line</big>''' Move cursor down to line that starts with '''max-players=''' using <code>j</code> or <code>down arrow</code>. Your cursor should be over '''m''' in '''max-players'''. '''<big>Step 3 - move cursor over 8</big>''' Move cursor to right using <code>l</code> or <code>right arrow</code> until over the '''8'''. '''<big>Step 4 - change 8 to 16</big>''' Press <code>R</code> then type <code>16</code> and press <code>ESC</code>. '''<big>Step 5 - save file and exit vi</big>''' Press <code>:x</code> then press Enter. '''<big>Step 6 - verify file was changed</big>''' <code>$ grep players server.properties</code> You should see '''max-players=16''' as part of output. <center>[[Minecraft | To Minecraft]]</center>
Summary:
Please note that all contributions to GotOpinion may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
GotOpinion:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information