Install Ant Media Server on CentOS 8

To install Ant Media Server on CentOS 8, first install wget

yum install wget -y

Download installer script

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

ant-media-server-enterprise-2.2.1-20201029_2042.zip

For community version, you can download from

https://github.com/ant-media/Ant-Media-Server/releases

Download it to same directory as “install_ant-media-server.sh”.

Now run

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.

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 [email protected]

To fix this, edit file

vi /lib/systemd/system/antmedia.service

Replace content of the file with

[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

systemctl daemon-reload

Now Ant Media Server will work. You can start using

systemctl start antmedia

Top stop Ant Media Server, use

systemctl stop antmedia

See Ant Media Server

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *