Install fail2ban on CentOS
To install fail2ban on CentOS, first, enable the epel repo by running Now install fail2ban with Enable fail2ban with Basck to fail2ban
To install fail2ban on CentOS, first, enable the epel repo by running Now install fail2ban with Enable fail2ban with Basck to fail2ban
First you need to install Remi repository https://rpms.remirepo.net Enable epel repo with yum install epel-release -y On CentOS 7 rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm On CentOS 6 rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-6.rpm Enable PHP 7.2 yum install yum-utils yum-config-manager –enable remi-php72 To install PHP, run yum install -y php php-bcmath php-cli php-common php-devel php-gd \ php-imap php-intl php-json php-ldap … Read more
CentOS 8 CentOS 7 CentOS 6
To install Google Chrome on CentOS 7 (Chrome won’t work on CentOS 6 as it is using older version of libraries required for Chrome). First create repo file vi /etc/yum.repos.d/google-chrome.repo Add following content [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub Now you can install google chrome with command yum -y install google-chrome-stable See CentOS
When i install software on CentOS server, i get following warning Delta RPMs disabled because /usr/bin/applydeltarpm not installed. You can install deltaparm package yum install deltarpm -y This will save you some bandwidth as yum will only download difference between previous package.
To set hostname for your server in CentOS 7, run
To install sysstat/sar on CentOS, run yum install sysstat Enable and start sysstat systemctl enable sysstat systemctl start sysstat systemctl status sysstat Allow several minutes to collect data, then you will be able to see stats with sar ommand. See sar
tmux is a terminal emulator. It work like screen, but have more features. CentOS 6 do not come with tmux, you need to enable rpmforge repository. http://repoforge.org/use/ On CentOS 6 64 bit, run rpm -ivh http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm yum install tmux
When install redis php module, i get error Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. [root@vps154294 phpredis]# /usr/serverok/php-7.1.12/bin/phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF … Read more
When compiling PHP 7 on CentOS 7, i got error configure: error: Cannot find libtidy To fix this, install libtidy-devel module. yum install -y libtidy-devel
Lets search for available redis packages [root@vps154294 smartfst]# yum search redis Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: mirror.us.leaseweb.net * remi-safe: repo1.ash.innoscale.net ============================================================================================ N/S matched: redis ============================================================================================ collectd-redis.x86_64 : Redis plugin for collectd collectd-write_redis.x86_64 : Redis output plugin for collectd hiredis.x86_64 : Minimalistic C client library for Redis hiredis-devel.x86_64 : Development … Read more
To install Redis on CentOS, run yum install redis Start redis with service redis start Set redis to start on boot systemctl enable redis Verify redis is running with [root@vps154294 ~]# netstat -antp | grep redis tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 32367/redis-server [root@vps154294 ~]#