centos7 | LinuxHostSupport Linux Tutorials and Guides Wed, 07 Aug 2024 10:56:27 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.1 How to Upgrade MariaDB on Centos 7 https://linuxhostsupport.com/blog/how-to-upgrade-mariadb-on-centos-7/ https://linuxhostsupport.com/blog/how-to-upgrade-mariadb-on-centos-7/#comments Wed, 18 Oct 2017 13:05:56 +0000 https://linuxhostsupport.com/blog/?p=244 In this tutorial we are going to provide you with step-by-step instructions on how to upgrade MariaDB on a CentOS 7 VPS. MariaDB is an open source, community-developed fork of the MySQL relational database management system. MariaDB is highly compatible with MySQL, ensuring exact matching with MySQL commands and APIs. The upgrade process should take […]

The post How to Upgrade MariaDB on Centos 7 appeared first on LinuxHostSupport.

]]>
In this tutorial we are going to provide you with step-by-step instructions on how to upgrade MariaDB on a CentOS 7 VPS. MariaDB is an open source, community-developed fork of the MySQL relational database management system. MariaDB is highly compatible with MySQL, ensuring exact matching with MySQL commands and APIs.

The upgrade process should take about 10 minutes if you follow the easy steps described below.

In order to check the current MariaDB version installed on your server, run the following command:

mysql -V
mysql  Ver 15.1 Distrib 5.5.56-MariaDB, for Linux (x86_64) using readline 5.1

Upgrade MariaDB from 5.5.x version to 10.2.x version

Before starting with the upgrade procedure, create a backup of your MariaDB databases:

mysqldump -uroot -p --all-databases > /opt/database-dump.sql

Stop the MariaDB service with the following command:

systemctl stop mariadb

Remove MariaDB 5.5.x packages:

yum remove mariadb mariadb-server mariadb-libs
Removing:
 mariadb                                                x86_64                                         1:5.5.56-2.el7                                          @base                                          49 M
 mariadb-libs                                           x86_64                                         1:5.5.56-2.el7                                          @base                                         4.4 M
 mariadb-server                                         x86_64                                         1:5.5.56-2.el7                                          @base                                          58 M
Removing for dependencies:
 net-snmp                                               x86_64                                         1:5.7.2-28.el7                                          @base                                         850 k
 perl-DBD-MySQL                                         x86_64                                         4.023-5.el7                                             @base                                         323 k
 php-mysql                                              x86_64                                         5.4.16-42.el7                                           @base                                         232 k
 postfix                                                x86_64                                         2:2.10.1-6.el7                                          @base                                          12 M

Transaction Summary
===================================================================================================================================================================================================================
Remove  3 Packages (+4 Dependent packages)

Installed size: 125 M
Is this ok [y/N]: y

...

Removed:
  mariadb.x86_64 1:5.5.56-2.el7                                     mariadb-libs.x86_64 1:5.5.56-2.el7                                     mariadb-server.x86_64 1:5.5.56-2.el7

Dependency Removed:
  net-snmp.x86_64 1:5.7.2-28.el7                     perl-DBD-MySQL.x86_64 0:4.023-5.el7                     php-mysql.x86_64 0:5.4.16-42.el7                     postfix.x86_64 2:2.10.1-6.el7

Complete!

Add a new MariaDB repository:

vi /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

Clean the repository cache on your server with:

yum clean all

Install MariaDB 10.2

Install MariaDB 10.2.x version using the following command:

yum install MariaDB-client MariaDB-server
Installing:
 MariaDB-server                                           x86_64                                    10.2.9-1.el7.centos                                           mariadb                                    108 M
Installing for dependencies:
 MariaDB-client                                           x86_64                                    10.2.9-1.el7.centos                                           mariadb                                     48 M
 MariaDB-common                                           x86_64                                    10.2.9-1.el7.centos                                           mariadb                                    155 k
 MariaDB-compat                                           x86_64                                    10.2.9-1.el7.centos                                           mariadb                                    2.8 M
 boost-program-options                                    x86_64                                    1.53.0-27.el7                                                 base                                       156 k
 galera                                                   x86_64                                    25.3.20-1.rhel7.el7.centos                                    mariadb                                    8.0 M

Transaction Summary
===================================================================================================================================================================================================================
Install  1 Package (+5 Dependent packages)

Total download size: 167 M
Installed size: 708 M
Is this ok [y/d/N]: y

...

Installed:
  MariaDB-server.x86_64 0:10.2.9-1.el7.centos

Dependency Installed:
  MariaDB-client.x86_64 0:10.2.9-1.el7.centos         MariaDB-common.x86_64 0:10.2.9-1.el7.centos         MariaDB-compat.x86_64 0:10.2.9-1.el7.centos         boost-program-options.x86_64 0:1.53.0-27.el7
  galera.x86_64 0:25.3.20-1.rhel7.el7.centos

Complete!

Please note, you need to install Postfix and php-mysql packages if you used them prior this upgrade, so run:

yum install postfix php-mysql

Enable MariaDB service to automatically start on server boot:

systemctl enable mariadb

Start the MariaDB service:

systemctl start mariadb

Run the mysql_upgrade command-line command to examine all tables in all MariaDB databases for incompatibilities with the currently installed version of the MariaDB server:

mysql_upgrade

If everything is OK, check the currently installed MariaDB version with:

mysql -V

mysql  Ver 15.1 Distrib 10.2.9-MariaDB, for Linux (x86_64) using readline 5.1

Set the MariaDB root user password and secure MariaDB

There is no MariaDB root user password set by default. Use the following command to set a new MariaDB root user password, remove the anonymous users, secure MariaDB by restricting the remote login for root user and remove the test database.

mysql_secure_installation

That is it. MariaDB has been successfully installed on your server.

If you use one of our Linux Host Support  services, you  can simply ask our expert Linux admins to upgrade MariaDB on your CentOS 7 server for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

The post How to Upgrade MariaDB on Centos 7 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-upgrade-mariadb-on-centos-7/feed/ 4
How to Set Up a TeamSpeak Server on CentOS 7 https://linuxhostsupport.com/blog/how-to-set-up-a-teamspeak-server-on-centos-7/ https://linuxhostsupport.com/blog/how-to-set-up-a-teamspeak-server-on-centos-7/#comments Wed, 11 Oct 2017 12:00:50 +0000 https://linuxhostsupport.com/blog/?p=235 TeamSpeak 3 is voice-over-internet protocol (VOIP) software. It provides audio communication features, that can be used online gaming, educational training, internal business communication, and staying in touch with friends and family. TeamSpeak is easy to use and offers high security standards, excellent audio quality, and low system and bandwidth usage. Featuring a client-server architecture, TeamSpeak […]

The post How to Set Up a TeamSpeak Server on CentOS 7 appeared first on LinuxHostSupport.

]]>
TeamSpeak 3 is voice-over-internet protocol (VOIP) software. It provides audio communication features, that can be used online gaming, educational training, internal business communication, and staying in touch with friends and family. TeamSpeak is easy to use and offers high security standards, excellent audio quality, and low system and bandwidth usage. Featuring a client-server architecture, TeamSpeak 3 is literally capable of handling up to thousands of simultaneous users.

Listed below are some of the key TeamSpeak features:

  • Superior Voice Quality
  • High Scalability
  • Powerful File Transfer
  • Text Chat
  • 3D Sound Effects
  • Decentralized Infrastructure
  • Robust Permission System
  • Mobile applications for Android and iOS
  • In-Game Overlay
  • Limitless Customization

and many more…

In this tutorial we will guide you through the steps of installing TeamSpeak 3 Server on a CentOS 7 VPS.

Update the system

First thing you need to do is to log in to your CentOS 7 VPS via SSH as user root.

ssh root@IP_Address -p Port_Number

Before installing TeamSpeak Server it is recommended to update all packages installed on your server.

yum -y update

Install TeamSpeak Server

It is not recommended to run TeamSpeak as user root, so we will create a new system user by running the following command

adduser --shell /bin/false teamspeak -d /opt/teamspeak3 -M

Download TeamSpeak 3 Server for Linux from their official website

wget http://dl.4players.de/ts/releases/3.0.13.8/teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2

unpack the downloaded archive, rename the directory and remove the downloaded archive

tar -jxvf teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2
mv teamspeak3-server_linux_amd64 teamspeak3
rm -f teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2

To start the TeamSpeak server switch the user

su teamspeak

and execute the following command

cd /opt/teamspeak
./ts3server_startscript.sh start

You should get the following output

Starting the TeamSpeak 3 server
TeamSpeak 3 server started, for details please view the log file
root@linuxhostsupporttest [/opt/teamspeak3]#
------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
Server Query Admin Account created
loginname= "serveradmin", password= "KffDEVoW"
------------------------------------------------------------------

------------------------------------------------------------------
I M P O R T A N T
------------------------------------------------------------------
ServerAdmin privilege key created, please use it to gain
serveradmin rights for your virtualserver. please
also check the doc/privilegekey_guide.txt for details.

token=X3wT1SSVrW9VmwRkpNC32ezYhaSJ7bp8WOwBWOnB
------------------------------------------------------------------

If you want to stop the TeamSpeak server use the following command

./ts3server_startscript.sh stop

You can also create a systemd service to easily start/stop/restart TeamSpeak and start the service automatically on server boot. To do that, create a ‘teamspeak.service’ file with the following content

vim /lib/systemd/system/teamspeak.service

[Unit]
Description=TeamSpeak 3 Server Server
After=network.target

[Service]
Type=simple
WorkingDirectory=/opt/teamspeak3/
ExecStart=/opt/teamspeak3/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/opt/teamspeak3/ts3server_startscript.sh stop
User=teamspeak
Group=teamspeak
PIDFile=/opt/teamspeak3/ts3server.pid
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teamspeak

[Install]
WantedBy=multi-user.target

Save the file and execute the following commands to enable and start the service

systemctl --system daemon-reload
systemctl enable teamspeak3.service
systemctl start teamspeak3.service

Installing TeamSpeak on a CentOS 7 server  is an easy task if you are using one of  our Linux Host Support Services. Feel free to ask our expert Linux Administrators to install TeamSpeak on a CentOS 7 these for you, and it will be taken care of immediately. They are available 24×7, so you can get the help you need at any time.

PS. Feel free to share this blog post if you liked it by using the social network shortcuts – you can also leave a comment instead, found under the share buttons.

The post How to Set Up a TeamSpeak Server on CentOS 7 appeared first on LinuxHostSupport.

]]>
https://linuxhostsupport.com/blog/how-to-set-up-a-teamspeak-server-on-centos-7/feed/ 1