kdabooking.blogg.se

Check cpu memory usage linux
Check cpu memory usage linux








check cpu memory usage linux

Then change the directory to where gogs is located, cd /home/git/gogs/ Switch to git user that was created earlier, su -i git Next,Enable the firewalld for Port 3001 firewall-cmd -zone=public -add-port=3001/tcp -permanent Move the Gogs binary file to /home/git, mv gogs /home/git/Ĭhange the permission of the site directory. Permit created directory access to the added user, chown -R git:git /var/log/gogs/ Install the packages of git using dnf command dnf install gitĬreate a new user called git, adduser gitĬreate a dedicated logs directory for it's user, mkdir /var/log/gogs curl -s | grep browser_download_url | grep '\linux_amd64.zip' | cut -d '"' -f 4 | wget -i. Use curl to download the Gogs file from their official github repository. FLUSH PRIVILEGES ĮXIT Download and Install Gogs from GitHub Replace "StrongPassword" with an actual password that is long and strong. Login to Mysql as root user, mysql -u root -pĮnable global variables as shown below, SET GLOBAL innodb_file_per_table = ON Ĭreate a database called gogs which will be used for this project, CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci Ĭreate a user and grant all the privileges of the gogs database, GRANT ALL PRIVILEGES ON gogs.* TO IDENTIFIED BY "StrongPassword" Root user without the proper authorisation. Setting the root password ensures that nobody can log into the MariaDB OK, successfully used password, moving on. Output: Enter current password for root (enter for none): Secure the Mysql Installation with the below command, mysql_secure_installation Mar 11 12:57:52 systemd: Started MariaDB 10.3 database server. Mar 11 12:57:48 mysql-prepare-db-dir: Initializing MariaD> Mar 11 12:57:48 systemd: Starting MariaDB 10.3 database serve> └─38119 /usr/libexec/mysqld -basedir=/usr Process: 37987 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, sta> Process: 38012 ExecStartPre=/usr/libexec/mysql-prepare-db-dir rvice> Process: 38150 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, s> Loaded: loaded (/usr/lib/systemd/system/rvice disabled vendor pr>Īctive: active (running) since Sat 12:57:52 UTC 4s ago Now, start the MariaDB service systemctl start mariadbĬheck the status of MariaDB service. Use the below command to install MariaDB. To perform updates, run the following command: dnf update Install MariaDB Database Server Full SSH root access or a user with sudo privileges is required.įirst, check for any pending system upgrade.It uses very little RAM and CPU power.Ĭheckout the Gogs Project at for more information. Gogs performs admirably and is extremely light. Written in Go, aims to create a simple, stable, and extensible self-hosted Git service with a simple setup process. This tutorial will walk you through the steps necessary to install the Gogs self-hosted Git service on an RockyLinux 8 server.










Check cpu memory usage linux