echo -e “o\nn\np\n1\n\n\nw” | fdisk /dev/sda
or
(echo o; echo n; echo p; echo 1; echo ; echo; echo w) | sudo fdisk
echo -e “o\nn\np\n1\n\n\nw” | fdisk /dev/sda
or
(echo o; echo n; echo p; echo 1; echo ; echo; echo w) | sudo fdisk
mysql -D db_name-o < add_mysql_dump.sql
yes y | gunzip archive.gz
imuxsock begins to drop messages from pid XXXXX due to rate-limiting
vi /etc/rsyslog.conf
SystemLogRateLimitInterval 0
SystemLogRateLimitBurst 0
printf '%02X' 192 168 0 128 ; echo
Its useful:
IP=192.168.0.129
IP=${IP//./ }
printf '%02X' $IP; echo
ipython
a = ‘192.168.0.100’.split(‘.’)
‘{:02X}{:02X}{:02X}{:02X}’.format(*map(int, a))
yum install gcc-c++
yum install cmake
yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
cd some_folder/
python -m SimpleHTTPServer 7878
7878 is HTTP port
You need describe your LVM volume group in XML format:
vgs
vi /etc/libvirt/storage/vg_server1.xml
virsh pool-define /etc/libvirt/storage/vg_server1.xml
virsh pool-start vg1
virsh pool-autostart vg1
virsh pool-info vg1
now use virt-instal:
virt-install -d --hvm --vnc --name=server1 --ram 5000 --disk pool=vg1,size=100,bus=virtio,cache=none --network network=default,model=virtio \
--location=http://mirror.duomenucentras.lt/centos/7/os/x86_64/ \
--os-type=linux
tune2fs -o journal_data_writeback /dev/partinio_name
vi /etc/fstab
/dev/partinio_name /home ext4 noatime,data=writeback,barrier=0,nobh,errors=remount-ro
Where data=writeback means that metadata for files can be written lazily after the file is written. That not cause file system corruption, but it may cause the most recent changes to be lost in the event of a crash.
If you have this error for some users: php error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
Fix.
yum check
yum reinstall alt-pcre
If you are trying to change mailbox password and you get “Account does not exist”. It means your account can be over quota, please try temporally increase account size. Also sometime helps this fix:
cd ~username/.cpanel
mv -v email_accounts.yaml email_accounts.yaml.backup
yum install memcached
service memcached start or maybe: systemctl start memcached.service
pecl install memcache
systemctl restart httpd.service
If you want install from source:
wget http://pecl.php.net/get/memcache
cd memcache*
phpize
./configure
make && make install
echo “extension=memcache.so” >> /your_path/php.ini
If you want log all your MySQL queries:
vi /etc/my.cnf
log = log_file_name