Posts Tagged ‘centos’

Centos 7 install zabbix from source

#yum install -y libevent-devel golang gcc mysql-devel libxml2-devel net-snmp-devel curl-devel OpenIPMI-devel libssh2-devel iksemel-devel

#wget https://cdn.zabbix.com/zabbix/sources/stable/6.4/zabbix-6.4.8.tar.gz

#groupadd –system zabbix
#useradd –system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin -c “Zabbix Monitoring System” zabbix


#mkdir -m u=rwx,g=rwx,o= -p /usr/lib/zabbix
(more…)

Centos 8 Steam PHP upgrade

#dnf module list php
#dnf module reset php
#dnf module enable php:7.4
#dnf update

VM Centos6 Xen migrate to Proxmox.

VM Centos6 Xen migrate to Proxmox.

After start – Emty on console.
* Edit /boot/grub/grub.conf , delete
rd_NO_LUKS rd_NO_DM rhgb quiet

centos 7 inerface config

ip link add link enp9s4f0 name enp9s4f0.100 type vlan id 100
ip link set dev enp9s4f0.100 up
ip addr add 192.168.0.2/24 dev enp9s4f0.100
ip route add default via 192.168.0.1

ip a

centos virualmin nginx php-fpm

cd /opt
git clone https://github.com/Real-Gecko/virtualmin-nginx-fpm.git
tar -zcf virtualmin-nginx-fpm.tar.gz virtualmin-nginx-fpm

Webmin menu >> Mebmin module >> Install Module >> From local file >> enter /opt/virtualmin-nginx-fpm.tar.gz >> click ‘Install Module’.

Встановлення MySQL 5.5 на RHEL / CentOS 6 или 5

Для CentOS / RHEL 5 32-64 бит

#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

Для CentOS / RHEL 6 32-64 бит

#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Для CentOS / RHEL 7 32-64 бит

#wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
#rpm -Uvh remi-release-7.rpm

#yum update
#yum –enablerepo=remi install mysql mysql-server

centos sudo path

Задовбало, в centos під sudo повні шляхи набирати.

Рішеняя.

1. Правимо в себв і під рутом
.bash_profile

2.Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
(more…)

CentOS vim

yum install vim-common vim-enhanced vim-minimal