forked from sipXcom/sipxecs
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
122 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
.. index:: installing | ||
|
||
.. _rpm-installation: | ||
|
||
=================== | ||
Installing | ||
=================== | ||
|
||
System Specs | ||
---------------------- | ||
|
||
Recent sipXcom RPMs will only install on CentOS 7.x with amd64/x86_64 architecture. We recommend using the `CentOS minimal ISO <http://isoredirect.centos.org/centos/7/isos/x86_64/>`_. | ||
|
||
The following is a recommended hardware configuration: | ||
* 2x CPU/vCPU | ||
* 8GB RAM | ||
* 50GB or larger disk | ||
|
||
.. warning:: | ||
If the disk is larger than 50G and you use automatic partitioning, most of the space will be allocated to /home rather than /. | ||
|
||
.. note:: | ||
* All servers in the cluster should have a static IP address. | ||
* The server(s) must have only one active NIC or IP interface. | ||
* Only IPv4 is supported. Disabling IPv6 on the NIC during OS install is recommended. | ||
* Review the partition sizes if automatic partitioning is used. | ||
* 1GB ext2 for the /boot partition with the boot flag set | ||
* Set swap partition equal to the system RAM size | ||
* Allocate the rest of the free space for the root (/) partition as a LVM volume, XFS formatted | ||
|
||
|
||
|
||
Prepare Server | ||
---------------- | ||
|
||
- Log on as root via ssh | ||
|
||
- On first boot you may need to edit */etc/sysconfig/network-scripts/YourNICCard*. Change `ONBOOT="no"` to `ONBOOT="yes"` | ||
|
||
- Update OS: | ||
|
||
.. code-block:: bash | ||
yum update -y` | ||
- Increase Max Number of open files and max user processes for MongoDB (important for larger systems) | ||
- edit */etc/sysctl.conf* to add fs.file-max = 65536 line. ONLY do this if the default returned from `cat /cproc/sys/fs/file-max` is less than 65536. | ||
- edit */etc/security/limits.conf* to add the following block of text: | ||
.. code-block:: bash | ||
* soft nproc 65535 | ||
* hard nproc 65535 | ||
* soft nofile 65535 | ||
* hard nofile 65535` | ||
- Reboot system | ||
.. code-block:: bash | ||
reboot | ||
Install sipXcom | ||
---------------- | ||
- Install `wget`` used for downloading repo definitions | ||
.. code-block:: bash | ||
yum install -y wget | ||
- If you are not using a Google Cloud image, you must add and install their artifact registry plugin: | ||
.. code-block:: bash | ||
wget -O /etc/yum.repos.d/artifact-registry-plugin.repo https://storage.googleapis.com/sipxecs/artifact-registry/artifact-registry-plugin.repo | ||
.. code-block:: bash | ||
yum install -y yum-plugin-artifact-registry` | ||
- Retrieve sipXcom RPM: | ||
.. code-block:: bash | ||
wget -O /etc/yum.repos.d/sipxcom.repo https://storage.googleapis.com/sipxecs/sipxcom/24.01/centos-7-x86_64/sipxcom.repo | ||
- Install sipXcom RPM: | ||
.. code-block:: bash | ||
yum install -y sipxcom | ||
Setup sipXcom | ||
---------------- | ||
- Run `sipxecs-setup` and the system will reboot to disable selinux to allow the rest of the setup routine to work properly. | ||
- Run set`sipxecs-setup` again and e.g. answer questions as follows for a single server instance: | ||
- hostname: e.g. *us1* | ||
- domain: e.g. *us1.onrelay.net* | ||
- SIP Domain: e.g. *us1.onrelay.net* | ||
- SIP Realm: e.g. *us1.onrelay.net* | ||
Ignore *"Failed to open /dev/tty: No such device or address"* warnings | ||
- Run `yum update -y` | ||
- Run `reboot` | ||
- After a couple of minutes, the administration web interface should be available at *https://your-host-name-or-ip-address/* |