-
- CWPpro Database connection
vi /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
- MySQL root password
vi /root/.my.cnf
- Reset the MySQL root password fast with this command
/scripts/mysql_pwd_reset -q
- CWPpro Database connection
by dev
vi /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
vi /root/.my.cnf
/scripts/mysql_pwd_reset -q
by dev
rpm -qa|grep -i maria
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 enabled=1
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.5/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 enabled=1
service mysql stop service mariadb stop systemctl disable mariadb rpm --nodeps -ev MariaDB-server
yum clean all yum -y update "MariaDB-*" yum -y install MariaDB-server systemctl enable mariadb service mariadb start mysql_upgrade
diff -Bw /etc/my.cnf.d/server.cnf.rpmsave /etc/my.cnf.d/server.cnf
rpm -qa|grep -i maria
Yum repository list of the available versions
http://yum.mariadb.org/
by dev
How to Install Zip/Unzip in Debian/Ubuntu/Mint
apt install zip apt install unzip
How to Install Zip/Unzip in RedHa/CentOS/Fedora
dnf install zip dnf install unzip
How to Install Zip/Unzip in Arch/Manjaro Linux
pacman -S zip pacman -S unzip
How to Install Zip/Unzip in OpenSUSE
zypper install zip zypper install unzip
by dev
Solution: Check whether the dot files are hidden. Make the dot files to show.
Horde
Roundcube
Windows Mail
Thunderbird
Microsoft Outlook Express
by dev
Generally, the size of the swap file depends on how much RAM your system has:
Only root or user with sudo privileges can activate the swap file.
1). First, create a file that will be used as swap:
sudo fallocate -l 2G /swapfile
2). Set the file permissions to 600 to prevent regular users to write and read the file:
sudo chmod 600 /swapfile
3. Create a Linux swap area on the file:
sudo mkswap /swapfile
4). Activate the swap file by running the following command:
sudo swapon /swapfile
5). To make the change permanent open the /etc/fstab file:
sudo vi /etc/fstab
and paste the following line:
/swapfile swap swap defaults 0 0
6). Verify that the swap is active by using either the swapon or the free command, as shown below:
sudo swapon --show
and
sudo free -h
Adjusting the Swappiness Value
On Ubuntu, the default swappiness value is set to 60. You can check the current value by typing the following command:
cat /proc/sys/vm/swappiness
While the swappiness value of 60 is OK for most Linux systems, for production servers, you may need to set a lower value.
sudo sysctl vm.swappiness=10
To make this parameter persistent across reboots, append the following line to the /etc/sysctl.conf file:
vm.swappiness=10
Removing a Swap File
To deactivate and delete the swap file, follow these steps:
1). First, deactivate the swap space:
sudo swapoff -v /swapfile
2). Next, remove the swap file entry from the /etc/fstab file.
/swapfile swap swap defaults 0 0
3). Finally, remove the actual swapfile file using the rm command:
sudo rm /swapfile