Tag - centos - liczba wpisów 5
yum remove epel-release

yum clean all

sudo yum -y install yum-utils

sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

sudo yum install certbot

sudo yum install certbot-nginx

Źródło: https://stackoverflow.com/questions/53545436/no-package-certbot-available

Instalacja JBOSS i JDK w CentOS6 Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

wyłączenie SElinux w CentOS6 Kategoria: | Tagi: centos, linux | Autor: Wojciech Gazda

mkdir /root/backup
cp /etc/selinux/config /root/backup
sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

 

"hurtowa" zmiana umask'a userom Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

echo "changing umask for users"
for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd);
     do
           echo "umask 022" >> /home/$user/.bashrc
done

echo "umask check"

for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd);
     do
           printf "%-10s" "$user" ; su -c 'umask' -l $user 2>/dev/null
done

wyłączenie ipv6 w CentOS 6 Kategoria: Linux | Tagi: centos, linux | Autor: Wojciech Gazda

mkdir /root/backup/etc
cp /etc/sysctl.conf /root/backup/etc/
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf

mkdir /root/backup/etc/modprobe.d/
cp /etc/modprobe.d/blacklist.conf /root/backup/etc/modprobe.d/
echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf

mkdir /root/backup/etc/sysconfig/
cp /etc/sysconfig/network /root/backup/etc/sysconfig/
echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network

#powtorzyć dla każdego interfejsu
mkdir /root/backup/etc/sysconfig/network-scripts/
cp /etc/sysconfig/network-scripts/ifcfg-eth* /root/backup/etc/sysconfig/network-scripts/
echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0
echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth1

Wyszukaj

Zapisz się do newsletera