Installation de SmartFox

You are here:
← All Topics

Introduction

Cet article décrit comment installer Smarfox sur un serveur Linux. SmartFox est un serveur de sessions multi-joueurs accessible depuis de multiples environnements (C#, C++, Unity, Javascript, …). La version gratuite permet de gérer 100 utilisateur en simultané

Etapes d'installation

  • Créez un utilisateur sur le serveur
$ sudo adduser smartfox

  • Ajoutez cet utilisateur aux utilisateur sudo
$ sudo vi /etc/group

sudo:x:27:slab,smartfox
  • Téléchargez et décompressez l’archive

$ wget -v -O SFS2X_unix_2_14_0.tar.gz 'https://www.smartfoxserver.com/download/get/267'
$ tar xzvf SFS2X_unix_2_14_0.tar.gz

  • Lancez smartfox

$ cd SmartFoxServer_2X/SFS2X/
sudo ./sfs2x-service start
[sudo] password for smartfox:
testing JVM in /home/smartfox/SmartFoxServer_2X/jre ...
Starting sfs2x-service

  • Créez un service

$ cd cd /etc/systemd/system/
$ sudo vi smartfox.service

[Unit]
Description=SmartFoxServer 2X
After=network.target

[Service]
Type=forking
User=root
LimitNOFILE=100000
WorkingDirectory=/home/smartfox/SmartFoxServer_2X/SFS2X
ExecStart=/home/smartfox/SmartFoxServer_2X/SFS2X/sfs2x-service start
ExecStop=/ome/smartfox/SmartFoxServer_2X/SFS2X/sfs2x-service stop
Restart=on-abort

[Install]
WantedBy=multi-user.target

$ sudo systemctl enable smartfox.service