Install Ant Media Server on CentOS 8
To install Ant Media Server on CentOS 8, first install wget
1 |
yum install wget -y |
Download installer script
1 |
wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh |
Next you need to download binary zip file of Ant Media Server. For this install i used trail version
1 |
ant-media-server-enterprise-2.2.1-20201029_2042.zip |
For community version, you can download from
1 |
https://github.com/ant-media/Ant-Media-Server/releases |
Download it to same directory as “install_ant-media-server.sh”.
Now run
1 |
bash install_ant-media-server.sh -i ant-media-server-enterprise-2.2.1-20201029_2042.zip -r true |
Replace ant-media-server-enterprise-2.2.1-20201029_2042.zip with name of the ZIP file you downloaded.
When i installed on 2021-01-19, it failed with following error.
1 2 3 4 5 6 |
Created symlink /etc/systemd/system/multi-user.target.wants/antmedia.service → /usr/lib/systemd/system/antmedia.service. Redirecting to /bin/systemctl stop antmedia.service Redirecting to /bin/systemctl start antmedia.service Job for antmedia.service failed because the control process exited with error code. See "systemctl status antmedia.service" and "journalctl -xe" for details. There is a problem in installing the ant media server. Please send the log of this console to support@antmedia.io |
To fix this, edit file
1 |
vi /lib/systemd/system/antmedia.service |
Replace content of the file with
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[Unit] Description=AntMedia After=syslog.target network.target [Service] Type=simple Environment=JVM_MEMORY_OPTIONS= LimitNOFILE=65536 Environment=ANTMEDIA_HOME=/usr/local/antmedia WorkingDirectory=/usr/local/antmedia RemainAfterExit=no Restart=on-failure RestartSec=5s TasksMax=36000 User=antmedia Group=antmedia TimeoutStopSec=10 SuccessExitStatus=143 ExecStart=/usr/local/antmedia/start.sh [Install] WantedBy=multi-user.target |
Reload systemd deamon
1 |
systemctl daemon-reload |
Now Ant Media Server will work. You can start using
1 |
systemctl start antmedia |
Top stop Ant Media Server, use
1 |
systemctl stop antmedia |
See Ant Media Server