<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CentOS &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/centos/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Thu, 12 Aug 2021 07:22:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.13</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>CentOS &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Get started with SQL Server on CentOS using Docker</title>
		<link>https://help.hostry.com/knowledge-base/get-started-with-sql-server-on-centos-using-docker/</link>
					<comments>https://help.hostry.com/knowledge-base/get-started-with-sql-server-on-centos-using-docker/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 10 Oct 2019 12:13:19 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=789</guid>

					<description><![CDATA[SQL is a special-purpose programming language designed to handle data in a relational database management system. A database server is a computer program that provides database services to other programs or computers, as defined by the client-server model. Therefore, a SQL Server is a database server that implements the Structured [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://www.cbronline.com/what-is/what-is-sql-server-4914415/">SQL</a></em></strong> is a special-purpose programming language designed to handle data in a relational database management system. A database server is a computer program that provides database services to other programs or computers, as defined by the client-server model. Therefore, a SQL Server is a database server that implements the Structured Query Language (SQL).</p>



<h2 id="install-docker" >Install Docker</h2>



<p>Install Docker First, to install SQL Server, you need to install Docker. If you already have it installed, go to the following command (as root)</p>



<pre class="wp-block-code"><code># curl -s https://get.docker.com/ | sudo sh</code></pre>



<p>Make sure the installation is complete</p>



<pre class="wp-block-code"><code># docker version</code></pre>



<p>With this check, if you get: Cannot connect to the Docker daemon. Is the docker daemon running on this host? Launch Docker using the command below:</p>



<pre class="wp-block-code"><code># service docker start</code></pre>



<p>Then enter the following command to automatically launch Docker at boot time:</p>



<pre class="wp-block-code"><code># systemctl enable docker</code></pre>



<h2 id="install-sql-server" >Install SQL Server</h2>



<p>Install SQL Server using the following command:</p>



<pre class="wp-block-code"><code># docker run --restart always -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=YourStrongP@SSW0RD' -e 'MSSQL_PID=Developer' -p 1433:1433 --name SQL_CONTAINER -d microsoft/mssql-server-linux</code></pre>



<p>Below, it will be described in detail for what certain teams and their functions and application are responsible for:</p>



<ul><li><strong>&#8211;restart always &#8211; </strong> Restarting the container if for any reason it is completed;</li><li><strong>-e &#8216;ACCEPT_EULA = Y&#8217;- </strong> This is a parameter that prompts you to accept the end user license agreement. If you do not agree, the installation will not continue.</li><li>&#8211;<strong>e &#8216;MSSQL_PID = Developer&#8217;- </strong> This is the parameter for entering the license and product key. It can be used with Developer, Evaluationб Express, Web, Enterprise, Standard;</li><li><strong>&#8211;name SQL_CONTAINER &#8211; </strong> Specifies the name of the container;</li><li><strong>-d microsoft / mssql-server-linux- </strong> container image. If not specified, by default it will be installed with the latest version.</li></ul>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/get-started-with-sql-server-on-centos-using-docker/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Do I Upgrade my Python on CentOS 8</title>
		<link>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-centos-8/</link>
					<comments>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 12 Aug 2021 07:22:34 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4134</guid>

					<description><![CDATA[In order for you to perform this operation to update your Python version, you need to update your CentOS 8 and have root rights for your VPS Checking Your Python Version In order to go to upgrade your python, you need to check its version. This can be done using [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>In order for you to perform this operation to update your <strong>Python</strong> version, you need to update your CentOS 8 and have root rights for your VPS</p>



<h2 id="checking-your-python-version" >Checking Your Python Version</h2>



<p>In order to go to upgrade your python, you need to check its version. This can be done using the following command:</p>



<pre class="wp-block-code"><code>python3 -V</code></pre>



<p>If python is successfully installed on your server, then you should get something like this:</p>



<pre class="wp-block-code"><code>Python 3.6.7</code></pre>



<h2 id="updating-your-python-version" >Updating your Python Version</h2>



<p>First, you need to install the required dependencies to compile the Python source code. This can be done using a special command, which is presented below:</p>



<pre class="wp-block-code"><code>yum groupinstall 'development tools' -y &amp;&amp; yum install wget openssl-devel bzip2-devel libffi-devel xz-devel -y</code></pre>



<p>After that, we recommend going to the <strong><a href="https://www.python.org/downloads/source/">Python</a></strong> source download page to find the latest gzip version of the source code. Replace the urls and filenames in this tutorial with the latest version. Then download your <strong>python</strong></p>



<pre class="wp-block-code"><code>wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz</code></pre>



<p>After that, you need to unpack the archive that you just downloaded. You can do it like this:</p>



<pre class="wp-block-code"><code>tar xzf Python-3.9.6.tgz</code></pre>



<p>Next, compile the <strong>Python</strong> source</p>



<pre class="wp-block-code"><code>cd Python-3.9.6 &amp;&amp; ./configure --enable-optimizations</code></pre>



<p>This is followed by the installation of your Python. Use the following command:</p>



<pre class="wp-block-code"><code>make altinstall</code></pre>



<p>After that, a mandatory step for execution will be to check the name of your new Python executable file</p>



<pre class="wp-block-code"><code>ls /usr/local/bin/python*</code></pre>



<p>Then Install the new default Python executable. Replace the two instances of /python3.9 in the following command with the name of your new Python executable</p>



<pre class="wp-block-code"><code>alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.9 1 &amp;&amp; alternatives --set python3 /usr/local/bin/python3.9 &amp;&amp; echo "2" | alternatives --config python</code></pre>



<h2 id="update-your-pip" >Update your PIP</h2>



<p>An important step for this update is to update your <strong>pip</strong>.</p>



<pre class="wp-block-code"><code>/usr/local/bin/python3.9 -m pip install --upgrade pip</code></pre>



<p>Then you should check the name of your new <strong>pip</strong> executable</p>



<pre class="wp-block-code"><code>ls /usr/local/bin/pip*</code></pre>



<p>Set the new item as default. Use the name of your new pip executable in the following command:</p>



<pre class="wp-block-code"><code>alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.9 1 &amp;&amp; alternatives --set pip /usr/local/bin/pip3.9</code></pre>



<p>After that, you need to check the current version of your installed Python. You can make sure like this:</p>



<pre class="wp-block-code"><code>python -V &amp;&amp; pip -V</code></pre>



<p>After that, you will be able to see the following:</p>



<pre class="wp-block-code"><code>Python-3.9.6
pip 21.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)</code></pre>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-do-i-upgrade-my-python-on-centos-8/feed/</wfw:commentRss>
			<slash:comments>498</slash:comments>
		
		
			</item>
		<item>
		<title>How To Change Hostname on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-change-hostname-on-centos-7/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-change-hostname-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Wed, 11 Nov 2020 09:21:11 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=2553</guid>

					<description><![CDATA[To get started, you need to log into your server. To do this, use the following connection guides: Use the hostname utility You need to change the hostname to another name of your choice. For instance: Edit /etc/hosts Open the /etc/hosts file in your acceptable text editor: Change the first [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>To get started, you need to log into your server. To do this, use the following connection guides:</p>



<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-hostry-help-center"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="O8v4ToQyx6"><a href="https://help.hostry.com/knowledge-base/how-to-connect-via-vnc-on-my-vps/">How Do I Connect to My Server via VNC</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" title="&#8220;How Do I Connect to My Server via VNC&#8221; &#8212; Hostry Help Center" src="https://help.hostry.com/knowledge-base/how-to-connect-via-vnc-on-my-vps/embed/#?secret=O8v4ToQyx6" data-secret="O8v4ToQyx6" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-hostry-help-center"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="Hp8fDRy9t3"><a href="https://help.hostry.com/knowledge-base/how-do-i-connect-to-my-server-via-ssh/">How Do I Connect to My Server via SSH</a></blockquote><iframe class="wp-embedded-content" sandbox="allow-scripts" security="restricted" title="&#8220;How Do I Connect to My Server via SSH&#8221; &#8212; Hostry Help Center" src="https://help.hostry.com/knowledge-base/how-do-i-connect-to-my-server-via-ssh/embed/#?secret=Hp8fDRy9t3" data-secret="Hp8fDRy9t3" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h2 id="use-the-hostname-utility" >Use the hostname utility</h2>



<p>You need to change the hostname to another name of your choice. For instance:</p>



<pre class="wp-block-code"><code>hostname server_1</code></pre>



<h2 id="edit-etc-hosts" >Edit /etc/hosts</h2>



<p>Open the<strong> /etc/hosts </strong>file in your acceptable text editor:</p>



<pre class="wp-block-code"><code>nano /etc/hosts</code></pre>



<p>Change the first line and replace your old hostname with the new one. Save the file and exit the editor.</p>



<h2 id="edit-etc-sysconfig-network" >Edit /etc/sysconfig/network</h2>



<p>This file also contains your hostname. Open the <strong>/etc/sysconfig/network </strong>file in your favorite text editor. Change <strong>HOSTNAME=vps.hostry.com</strong> to your desired hostname. For example:<strong> HOSTNAME = server_1</strong>.</p>



<h2 id="check-your-hostname" >Check your Hostname</h2>



<p>For this check, enter the following command:</p>



<pre class="wp-block-code"><code>hostname</code></pre>



<p>The new hostname will be displayed in your <strong><a href="https://www.putty.org/">ssh</a></strong> terminal.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-change-hostname-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Enable or Reinstall SELinux on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-enable-or-reinstall-selinux-on-centos/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-enable-or-reinstall-selinux-on-centos/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 06 Jul 2020 07:18:32 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1850</guid>

					<description><![CDATA[SELinux (Security-Enhanced Linux) is a special mechanism that is responsible for kernel security. This guide will be useful for users with a CentOS 6, 7, and 8 virtual machine. Disable and uninstall SELinux Install SELinux SELinux will detect the /.autorelabel file upon reboot, and then reconfigure all the files in [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://ru.wikipedia.org/wiki/SELinux">SELinux</a></strong> (Security-Enhanced Linux) is a special mechanism that is responsible for kernel security. This guide will be useful for users with a <strong>CentOS 6, 7, and 8 </strong>virtual machine.</p>



<h2 id="disable-and-uninstall-selinux" >Disable and uninstall SELinux</h2>



<pre class="wp-block-code"><code># setenforce 0
# yum remove selinux-policy\*
# rm -rf /etc/selinux/targeted /etc/selinux/config</code></pre>



<h2 id="install-selinux" >Install SELinux</h2>



<pre class="wp-block-code"><code># yum install selinux-policy-targeted
# yum install selinux-policy-devel policycoreutils
# touch /.autorelabel; reboot</code></pre>



<p>SELinux will detect the <strong>/.autorelabel </strong>file upon reboot, and then reconfigure all the files in the correct SELinux contexts. If you have many files in your virtual machine, then VPS may be unavailable for a long time.</p>



<p><strong>Note!</strong></p>



<p>If SELinux is not already installed, then you need to go to step 2 &#8211; installing SELinux. If SELinux is installed on your virtual server, then you need to remove it (to reset the policy to the default settings)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-enable-or-reinstall-selinux-on-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Install and Configure Ansible on CentOS 8 for Use With Windows Server</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 04 Jun 2021 11:32:37 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3845</guid>

					<description><![CDATA[Ansible is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.ansible.com/">Ansible</a></strong> is a unique open source tool for automating tasks. Ansible is a universal language that reveals the mystery of how work is done. Turn complex tasks into repeatable instructions. Deploy enterprise-wide protocols with the click of a button. Now you can scale automation, manage complex deployments, and increase productivity with an enterprise automation platform that can be used by all IT teams.</p>



<h2 id="installation" >Installation</h2>



<p>In order to install <strong>Ansible</strong>, you first need to install the<strong> EPEL</strong> repository. This can be done using a special command:</p>



<pre class="wp-block-code"><code>yum install epel-release</code></pre>



<p>Then we advise you to update the packages on your <strong><em>CentOS </em>distribution</strong></p>



<pre class="wp-block-code"><code>yum -y update</code></pre>



<p>After updating the packages, install <strong>Ansible</strong> with the yum extension using a special command:</p>



<pre class="wp-block-code"><code>yum -y install ansible</code></pre>



<blockquote class="wp-block-quote"><p><strong>For correct and competent administration of severs on Windows, you need to install the following packages: python-pip, pywinrm and also pip itself.</strong></p></blockquote>



<p>The next step is to install the <strong>Python</strong> packages. This can be done using a special command:</p>



<pre class="wp-block-code"><code>yum -y install python-pip pip</code></pre>



<p>In order to work with <strong>Ansible</strong> in the future, you need to check the installation. By entering the command:</p>



<pre class="wp-block-code"><code>ansible --version</code></pre>



<h2 id="setup-ansible" >Setup Ansible</h2>



<p>First of all, it is recommended to update the packages on your <strong>CentOS</strong>:</p>



<pre class="wp-block-code"><code>yum -y update</code></pre>



<p>Then go to the <strong>Ansible</strong> directory</p>



<pre class="wp-block-code"><code>cd /etc/ansible</code></pre>



<p><strong>Edit</strong> the hosts file in your favorite text editor</p>



<pre class="wp-block-code"><code>nano hosts</code></pre>



<p>To configure <strong>Windows</strong> and its further use, it is necessary to do the following:</p>



<pre class="wp-block-code"><code>&#91;windows]
server1.domain.local
server1.domain.local</code></pre>



<p>Next, you need to create an encrypted vault that will contain access identifiers for the <strong>Windows</strong> server. To accomplish this, it is recommended that you create a new encrypted <strong>yml</strong> file. The file name must match the host group to which it will apply. In our case, the created windows group is called, which means that there will be a <strong>windows.yml</strong> file</p>



<pre class="wp-block-code"><code>mkdir group_vars
cd group_vars
ansible-vault create windows.yml</code></pre>



<p>In the finish, you need to add the following parameters to your <strong>yml</strong> file</p>



<pre class="wp-block-code"><code>ansible_ssh_user: _your_ssh_user_
ansible_ssh_pass: _your_ssh_pass_
ansible_ssh_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-ansible-on-centos-8-for-use-with-windows-server/feed/</wfw:commentRss>
			<slash:comments>457</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install And Configure ArangoDB on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-arangodb-on-centos-7/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-arangodb-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 31 Jan 2020 14:53:27 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1287</guid>

					<description><![CDATA[ArangoDB is a open source NoSQL database with an open source year and a flexible data model for documents, key values ​​and graphs. This database is easily managed using the integrated web interface or command line interface. To follow all the instructions in this article, you will need a busy [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://www.arangodb.com/">ArangoDB</a></em></strong> is a open source NoSQL database with an open source year and a flexible data model for documents, key values ​​and graphs. This database is easily managed using the integrated web interface or command line interface.</p>



<p>To follow all the instructions in this article, you will need a busy copy of Hostry Vps. It will be designated under IP 185.186.xxxx.xxxx</p>



<h2 id="system-update" >System update </h2>



<p>Before starting, update the system to the last stable available version with this command: </p>



<pre class="wp-block-code"><code>yum update -y</code></pre>



<h2 id="install-arangobd" >Install ArangoBD </h2>



<p>Before installing, you will need to create a yum repository file. To do this, change the directory to <strong>/etc/yum.repos.d</strong> and create it<strong> arangodb.repo</strong> using the following command: </p>



<pre class="wp-block-code"><code>cd /etc/yum.repos.d
sudo nano /etc/yum.repos.d/arangodb.repo</code></pre>



<p>Add the following text: </p>



<pre class="wp-block-code"><code>[arangodb]
name=ArangoDB Project
type=rpm-md
baseurl=https://strato1.arangodb.com/repositories/arangodb3/CentOS_7/
gpgcheck=1
gpgkey=https://strato1.arangodb.com/repositories/arangodb3/CentOS_7/repodata/repomd.xml.key
enabled=1</code></pre>



<p>Save the file and update the system using this command:</p>



<pre class="wp-block-code"><code>sudo yum update -y</code></pre>



<p>Then install ArangoDB with the following command:</p>



<pre class="wp-block-code"><code>sudo yum install arangodb3 -y</code></pre>



<p>After installation is complete, start the ArangoDB service: </p>



<pre class="wp-block-code"><code>sudo systemctl start arangodb3</code></pre>



<p>The status of ArangoDB can be checked as follows:</p>



<pre class="wp-block-code"><code>sudo systemctl status arangodb3</code></pre>



<p>If everything went well, you should see the following output:</p>



<pre class="wp-block-code"><code>
  ● arangodb3.service - SYSV: ArangoDB Server
   Loaded: loaded (/etc/rc.d/init.d/arangodb3)
   Active: active (running) since Tue 2016-11-01 21:40:43 IST; 2min 30s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2766 ExecStart=/etc/rc.d/init.d/arangodb3 start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/arangodb3.service
       ├─2810 /usr/sbin/arangod --uid arangodb --gid arangodb --log.foreground-tty false --pid-file /var/run/arangodb/arangod.pid --temp.path ...
       └─2811 /usr/sbin/arangod --uid arangodb --gid arangodb --log.foreground-tty false --pid-file /var/run/arangodb/arangod.pid --temp.path ...

Nov 01 21:40:31 centOS-7 systemd[1]: Starting SYSV: ArangoDB Server...
Nov 01 21:40:43 centOS-7 arangodb3[2766]: Starting /usr/sbin/arangod:  starting up in daemon mode
Nov 01 21:40:43 centOS-7 systemd[1]: Started SYSV: ArangoDB Server.
Nov 01 21:40:43 centOS-7 arangodb3[2766]: changed working directory for child process to '/var/tmp'</code></pre>



<h2 id="access-arangodb-cli" >Access ArangoDB CLI</h2>



<p>ArangoDB comes with <strong><em>arangosh</em></strong> command-line utility for accessing the database. You can run this utility with the following command:</p>



<pre class="wp-block-code"><code>arangosh</code></pre>



<p>When prompted for a password, enter the root password. You will see the following output:</p>



<pre class="wp-block-code"><code>                                     _     
  __ _ _ __ __ _ _ __   __ _  ___  ___| |__  
 / _` | '__/ _` | '_ \ / _` |/ _ \/ __| '_ \ 
| (_| | | | (_| | | | | (_| | (_) \__ \ | | |
 \__,_|_|  \__,_|_| |_|\__, |\___/|___/_| |_|
                       |___/                 

arangosh (ArangoDB 3.0.10 [linux] 64bit, using VPack 0.1.30, ICU 54.1, V8 5.0.71.39, OpenSSL 1.0.1e-fips 11 Feb 2013)
Copyright (c) ArangoDB GmbH

Pretty printing values.
Could not connect to endpoint 'http+tcp://127.0.0.1:8529', database: '_system', username: 'root'
Error message: '401: Unauthorized'

Type 'tutorial' for a tutorial or 'help' to see common examples
127.0.0.1:8529@_system> </code></pre>



<h2 id="allow-arangodb-through-the-firewall" >Allow ArangoDB through the firewall </h2>



<p>By default, ArangoDB runs on port 8529, so you will need to enable this port through a firewall. You can do this by running the following command:</p>



<pre class="wp-block-code"><code>sudo firewall-cmd --permanent --add-port=8529/tcp</code></pre>



<p>Next, you need to restart the firewall service so that these changes are saved and work. This can be done as follows:</p>



<pre class="wp-block-code"><code>sudo firewall-cmd --reload</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-arangodb-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>465</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install And Configure CyberPanel on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-cyberpanel-on-centos-7/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-cyberpanel-on-centos-7/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 20 Dec 2019 09:21:52 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1148</guid>

					<description><![CDATA[CyberPanel is a control panel that uses OpenLiteSpeed. LiteSpeed ​​implies an advantage in performance, which in turn leads to a decrease in the amount of resource use. CyberPanel comes with a command line interface for people who like to work in the terminal, almost everything that you can do in [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://cyberpanel.net/">CyberPanel</a></em></strong> is a control panel that uses <strong>OpenLiteSpeed</strong>. LiteSpeed ​​implies an advantage in performance, which in turn leads to a decrease in the amount of resource use. CyberPanel comes with a command line interface for people who like to work in the terminal, almost everything that you can do in the control panel interface can be done through the CLI.</p>



<h2 id="installation" >Installation</h2>



<p>Update the packages that are installed on your system</p>



<pre class="wp-block-code"><code>yum update -y</code></pre>



<p>Download the installer to the <strong>/root</strong> directory</p>



<pre class="wp-block-code"><code>cd ~
wget -O installer.sh https://cyberpanel.net/install.sh</code></pre>



<p>Next, restore the permissions and run the installer:</p>



<pre class="wp-block-code"><code>chmod 755 installer.sh
sh installer.sh</code></pre>



<p>If everything went well, you can see the following output:</p>



<pre class="wp-block-code"><code>     CyberPanel Installer v2.0

  1. Install CyberPanel.

  2. Install Addons.

  3. Exit.


Please enter the number&#91;1-3]: </code></pre>



<p>Type <strong>1</strong> then press <strong><em>ENTER</em></strong></p>



<p>Further in the console you can see the following:</p>



<pre class="wp-block-code"><code>    CyberPanel Installer v2.0

  RAM check : 71/487MB (14.58%) 

  Disk check : 1/20GB (7%) (Minimal 10GB free space)

  1. Install CyberPanel with OpenLiteSpeed.

  2. Install Cyberpanel with LiteSpeed Enterprise.

  3. Exit.


Please enter the number&#91;1-3]: </code></pre>



<p>Again, repeat what you did in the previous step, namely: Type <strong>1</strong>, and then press<strong><em> ENTER</em></strong>. After that, the installer will automatically prompt you to install <strong>MariaDB</strong>.<strong> </strong>Choosing <strong><em>MariaDB 1.0 </em></strong>you stop on it, because it is the only supported version with a panel.  Next, you will see the following <strong>output</strong>: (<em>note that you always need to specify </em>&#8220;<strong><em>y</em></strong>&#8220;)</p>



<pre class="wp-block-code"><code>Mirror server network is optimized for Asia Pacific region...
If you experience very slow download speed during installation, please try use mirror server on clean system...
Use mirror server &#91;y/N]: y

Replace JS/CSS files to JS Delivr?
This may improve panel loading speed in Asia Pacific region... 
Please select &#91;y/N]: y

Install Memcached extension for PHP?
Please select &#91;y/N]: y      

Install LiteSpeed Memcached?
Please select &#91;y/N]: y

Install Redis extension for PHP?
Please select &#91;y/N]: y

Install Redis?
Please select &#91;y/N]: y</code></pre>



<p>After your yes agreement, <strong>CyberPanel</strong> will be installed along with its extensions. After which, the installer will display your administrator data:</p>



<pre class="wp-block-code"><code>###################################################################
                CyberPanel Successfully Installed                  

                Current Disk usage : 3/20GB (16%)                        

                Current RAM  usage : 233/487MB (47.84%)                         

                Installation time  : 0 hrs 3 min 24 sec                      

                Visit: https://(YOUR_SERVER_IP):8090                    
                Panel username: admin                              
                Panel password: 1234567                          
                Mysql username: root                               
                Mysql password: iPe2cEiSh7wEn7                       

            Please change your default admin password              

          If you change mysql password, please  modify file in     
         /etc/cyberpanel/mysqlPassword with new password as well   

              Website : https://www.cyberpanel.net                 
              Forums  : https://forums.cyberpanel.net              
              Wikipage: https://docs.cyberpanel.net                

            Enjoy your accelerated Internet by                  
                CyberPanel &amp; OpenLiteSpeed                                       
###################################################################</code></pre>



<h2 id="configure-cyberpanel" >Configure CyberPanel</h2>



<p>Now, you need to go to the setting, it will take a few more moments. Visit your server IP address on the CyberPanel port <strong><em>(YOUR_SERVER_IP): 8090</em></strong>. There you will see the administrator login. Enter your <strong>username</strong> and <strong>password</strong>, as described above. </p>



<p>Next, click on the user menu bar next to the name &#8220;Cyber ​​Pan&#8221;. Selecting &#8220;<strong>Edit</strong> <strong>Profile</strong>&#8221; click on &#8220;<strong>admin</strong>&#8221; and on the drop-down menu &#8220;<strong>Modify</strong> <strong>User</strong>&#8220;. Next, successfully change the first name, last name, your password and email address.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-cyberpanel-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Install And Configure Fail2ban Under CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-fail2ban-under-centos/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-configure-fail2ban-under-centos/#respond</comments>
		
		<dc:creator><![CDATA[Paul Harris]]></dc:creator>
		<pubDate>Tue, 20 Aug 2019 13:39:20 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=527</guid>

					<description><![CDATA[Fail2ban &#8211; a service that can greatly &#8220;cool the ardor&#8221; of bots continuously trying to find a password for your server. Install fail2ban packages from the epel repository If the epel package is not installed, enter the commands user @ localhost: ~ $ sudo yum -y install epel-release Afrer install [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Fail2ban &#8211; a service that can greatly &#8220;<strong>cool the ardor</strong>&#8221; of bots continuously trying to find a password for your server.</p>



<h2 id="install-fail2ban-packages-from-the-epel-repository" >Install fail2ban packages from the epel repository</h2>



<p>If the epel package is not installed, enter the commands</p>



<p><code>user @ localhost: ~ $ sudo yum -y install epel-release  </code></p>



<p>Afrer install fail2ban itself</p>



<p><code>user @ localhost: ~ $ sudo yum -y install fail2ban</code></p>



<h2 id="activate-sshd-protection-in-fai2ban-settings" >Activate sshd protection in fai2ban settings</h2>



<p>Open the file<strong> /etc/fail2ban/jail.conf</strong> for editing, in the first lines we find the lines</p>



<p><code># [sshd] # enabled = true</code></p>



<p>Then delete the first characters &#8216;#&#8217;, it should work</p>



<p><code>[sshd]</code></p>



<p><code>enabled = true</code></p>



<p>Restart the service</p>



<p><code>user@localhost:~$ sudo systemctl restart fail2ban</code></p>



<p>Check the <strong>general status</strong></p>



<p><code>user@localhost:~$ sudo fail2ban-client status</code></p>



<p>You should be see something like</p>



<p><code>Status<br> |- Number of jail:    1<br> `- Jail list:    sshd</code></p>



<p></p>



<p><code>user@localhost:~$ sudo fail2ban-client status sshd</code></p>



<p><code>Status for the jail: sshd<br> |- Filter<br> |  |- Currently failed:    0<br> |  |- Total failed:    15<br> |  - Journal matches:    _SYSTEMD_UNIT=sshd.service + _COMM=sshd - Actions<br>    |- Currently banned:    0<br>    |- Total banned:    0<br>    `- Banned IP list:</code></p>



<p></p>



<p>Do not check how the blocking works from the same IP from which you are already connected via SSH and configure fail2ban, you may lose connection for a long time). </p>



<p>We try to enter the wrong password 4 times to our host from any IP (for example, from <strong>11.12.13.14)</strong>. If everything works correctly for 5-6 times an unsuccessful login, the password will no longer be requested and the connection will be refused</p>



<p><code>user@localhost:~$  sudo fail2ban-client status sshd</code></p>



<p><code>Status for the jail: sshd<br> |- Filter<br> |  |- Currently failed:    0<br> |  |- Total failed:    20<br> |  - Journal matches:    _SYSTEMD_UNIT=sshd.service + _COMM=sshd - Actions<br>    |- Currently banned:    1<br>    |- Total banned:    1<br>    `- Banned IP list: 11.12.13.14</code></p>



<p>If you want to remove any IP address from the block list, you can enter the command</p>



<p><code>user@localhost:~$  sudo fail2ban-client set sshd unbanip &lt;IP&gt;</code></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-configure-fail2ban-under-centos/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install and configure Memcached on CentOS 7</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-configure-memcached-on-centos-7/</link>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 09 Apr 2020 08:38:46 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1562</guid>

					<description><![CDATA[Memcached is a special open-source memory caching distribution system for objects. It is used to render pages and accelerate dynamic web applications by storing data fragments from database callout results. Install Memcached First you need to upgrade your CentOS Next, install the official Memcached package as well as Libmemcached. It [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><em><a href="https://memcached.org/">Memcached </a></em></strong>is a special open-source memory caching distribution system for objects. It is used to render pages and accelerate dynamic web applications by storing data fragments from database callout results.</p>



<h2 id="install-memcached" >Install Memcached </h2>



<p>First you need to upgrade your CentOS</p>



<pre class="wp-block-code"><code>yum update -y</code></pre>



<p>Next, install the official Memcached package as well as Libmemcached. It represents several utilities for working with Memcached.</p>



<pre class="wp-block-code"><code>yum install -y memcached libmemcached</code></pre>



<p>To start Memcached at boot, you must use the <strong><em>systemctl </em></strong>command</p>



<pre class="wp-block-code"><code>systemctl enable memcached</code></pre>



<h2 id="memcached-setup" >Memcached Setup </h2>



<p>At this stage, you need to connect Memcached with the local interface and disable the UDP port. This is to avoid potential DDOS attacks. Open the <strong>/etc/sysconfig/ memcached </strong>file in your favorite editor:</p>



<pre class="wp-block-code"><code>nano /etc/sysconfig/memcached</code></pre>



<p>Next, find the line: </p>



<pre class="wp-block-code"><code>OPTIONS=""</code></pre>



<p>Change this to the following: </p>



<pre class="wp-block-code"><code>OPTIONS="-l 127.0.0.1 -U 0"</code></pre>



<p>Save the file and exit the editor. Next please restart Memcached, to use this changes</p>



<pre class="wp-block-code"><code>systemctl restart memcached</code></pre>



<p>You can verify that it works using systemctl: </p>



<pre class="wp-block-code"><code>systemctl status memcached</code></pre>



<p>The output will look like this: </p>



<pre class="wp-block-code"><code>● memcached.service - Memcached
Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-04-04 17:01:41 UTC; 8s ago
Main PID: 31312 (memcached)
CGroup: /system.slice/memcached.service
        └─31312 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024 -l 127.0.0.1 -U 0

Apr 04 17:01:41 docs systemd&#91;1]: Started Memcached.</code></pre>



<p>You can verify that Memcached is only connected to the local interface and only listens for TCP connections using the <strong><em>ss</em></strong> command: </p>



<pre class="wp-block-code"><code>ss -plunt | grep memcached

tcp    LISTEN     0      128    127.0.0.1:11211                 *:*                   users:(("memcached",pid=31312,fd=26))</code></pre>



<h2 id="verify-settings" >Verify Settings </h2>



<p>You have now completed the setup and configuration of Memcached. You can verify the configuration using the memstat command from the libmemcached package</p>



<pre class="wp-block-code"><code>memstat --servers="localhost"</code></pre>



<p>The output will look like this:  </p>



<pre class="wp-block-code"><code>Server: localhost (11211)
    pid: 31312
    uptime: 385
    time: 1554397684
    version: 1.4.15
    libevent: 2.0.21-stable
    pointer_size: 64
    rusage_user: 0.006269
    rusage_system: 0.014105
    curr_connections: 1

...</code></pre>



<p></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Install and Use CPULimit on CentOS</title>
		<link>https://help.hostry.com/knowledge-base/how-to-install-and-use-cpulimit-on-centos/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-install-and-use-cpulimit-on-centos/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Thu, 01 Jul 2021 06:16:22 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=3940</guid>

					<description><![CDATA[CPULimit is a utility designed to work with Linux servers to limit the use of resources by an application. Cpulimit is used to limit the CPU usage of a process in the same way as CPUTool, however it offers more use cases than its counterpart. One of the important differences [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://www.tecmint.com/limit-cpu-usage-of-a-process-in-linux-with-cpulimit-tool/">CPULimit</a></strong> is a utility designed to work with Linux servers to limit the use of resources by an application. Cpulimit is used to limit the CPU usage of a process in the same way as CPUTool, however it offers more use cases than its counterpart. One of the important differences is that cpulimit does not manage system boot, unlike cputool. It works as follows: CPULimit is not designed to work with applications that use job control, for example; as they can be destroyed when CPULimit sends the SIGSTOP stop signal. Essentially, applications will turn on or off quickly enough to limit the program to the desired number of cycles. It is worth noting here that most applications will run normally. Some applications that may be limited include Nginx, PHP, Java.</p>



<h2 id="cpulimit-installation-process" >CPULimit Installation Process</h2>



<p>To quickly and successfully install this utility, you need make, screen, and wget. Then you need to install and, therefore, unpack the archive:</p>



<pre class="wp-block-code"><code>cd ~
wget https://astuteinternet.dl.sourceforge.net/project/limitcpu/limitcpu/cpulimit-2.5.tar.gz
tar -xvf cpulimit-2.5.tar.gz</code></pre>



<p>The next step is to run make to start compiling <strong>CPULimit</strong>:</p>



<pre class="wp-block-code"><code>cd cpulimit-2.5</code></pre>



<p>The next step is to run make to start compiling CPULimit:</p>



<pre class="wp-block-code"><code>make</code></pre>



<p>When this process completes, a binary file will appear in the <strong>cpulimit-2.5</strong> directory. In order for it to be available for the entire system, we will need to run the following command:</p>



<pre class="wp-block-code"><code>make install</code></pre>



<h2 id="configuring-cpulimit-using-the-application" >Configuring CPULimit Using the Application</h2>



<p>By entering the special top command it is possible to view the list of processes. They will look something like this</p>



<figure class="wp-block-image size-large"><img width="1024" height="739" src="https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-1024x739.png" alt="" class="wp-image-3959" srcset="https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-1024x739.png 1024w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-300x216.png 300w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-768x554.png 768w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-50x36.png 50w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-920x664.png 920w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-600x433.png 600w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26-320x231.png 320w, https://help.hostry.com/wp-content/uploads/2021/07/Снимок-экрана-от-2021-07-01-09-13-26.png 1282w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>In order to close this display screen, you need to use the following combination: <strong><em>CTRL + A + D</em></strong>. And in order to enter again you can follow the following command:</p>



<pre class="wp-block-code"><code>screen -r limitcpu</code></pre>



<p>The general format for running cpulimit looks like this:</p>



<pre class="wp-block-code"><code>cpulimit -p (PROCESS PID) -l (CPU %)</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-install-and-use-cpulimit-on-centos/feed/</wfw:commentRss>
			<slash:comments>414</slash:comments>
		
		
			</item>
	</channel>
</rss>
