Windows
Go to your Factorio.exe folder (Probably 'C:\Program Files\Factorio\bin\x64\')
Create a text document, paste the following and make appropriate entries:
-----------------------------
@echo off ::============================================================================================================== ::Replace the appropriate entries below to suit your installation (Default install example shown) ::============================================================================================================== set FactorioExeLocation=C:\Program Files\Factorio\bin\x64\ set SaveFileName=YOURSAVENAME.zip set SaveLocation=C:\Users\YOURWINDOWSUSERACCOUNT\AppData\Roaming\Factorio\saves\ set ServerSettingsFileName=server-settings.json set ServerSettingsLocation=C:\Program Files\Factorio\data\ ::============================================================================================================== cd %FactorioExeLocation% echo. echo. echo PREPARING TO LAUNCH FACTORIO SERVER... echo. echo Save to be loaded: echo %SaveLocation%%SaveFileName% echo. echo Server Settings to load: echo %ServerSettingsLocation%%ServerSettingsFileName% echo. echo. echo *** Remember to use Ctrl+C to ensure saving when finished instead of simply closing this window *** echo. echo. pause 3 ::============================================================================================================== :: ***NOTE: The line below launches factorio in headless mode with desired server settings, add any other :: desired arguments to end of the line. Use "factorio.exe --help" for a list of all supported arguments. ::============================================================================================================== factorio.exe --start-server "%SaveLocation%%SaveFileName%" --server-settings "%ServerSettingsLocation%%ServerSettingsFileName%" pause 3
-----------------------------
Save the file as server.bat. Important: At 'Save as type:' select 'All Files' By default, windows will append the filetype automatically, so disabling this in order to provide your own is necessary.
Reminder: Be sure to have replaced YOURSAVENAME and YOURWINDOWSACCOUNTNAME with correct information.
Use the server.bat to start your server.
The console log will be shown in the window.
To close the server, select the console window press Control+C. If you just close it without pressing this, it will not save your game.
Forward Ports: You will find detailed instructions for your specific router on the web

如此简单明了,你有那里不懂?