dd if=/dev/device | gzip -c --fast | ssh root@server 'dd of=/remote/server/device.img.gz'
roundcube Server Error / internal Server Error
cat /var/log/httpd/error_log | grep roundcube
[:error] [pid 129801:tid 140253446776576] (12)Cannot allocate memory: [client xx.xxx.xx.xx:46254] couldn’t create child process: /usr/local/suphp/sbin/suphp for /var/www/html/roundcube/index.php, referer: http://blabla.server.com/roundcube/?_task=mail&_mbox=INBOX
vi /usr/local/lib/php.ini
memory_limit = 512M
service httpd restart
linux rename file by inode
ls -i
find . -inum 111111 -exec mv {} some_name \;
ssh set huge timeout
vi /etc/ssh/ssh_config
ServerAliveInterval 60
linux one line ftp server
pip install pyftpdlib
fdisk find block size
blockdev --getbsz /dev/sda1
4096
touch argument list too long
getconf ARG_MAX
fuse unmount
fusermount -u mountpoint
access KVM image data from raw image
dd if=/dev/vg_kvm/vsv999-03ly-o5sq7ktzgnbva56l of=/backup/data.hdd bs=512 conv=noerror,sync
qemu-img info /backup/data.hdd
image: /backup/data.hdd
file format: raw
virtual size: 50G (53687091200 bytes)
disk size: 50G
guestmount -a /backup/data.hdd -i --ro /mnt
ls -la /mnt
openvz migrate live
vzmigrate -t -v --live -s -c --remove-area no --ssh-mux 192.168.0.101 1000
megacli state or just status
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aAll | grep -i state
subquery returns more than 1 row opencart
You need find these records, which can cause this issue and remove it:
SELECT * FROM papurl_alias group by keyword having count(*) >= 2;
DELETE FROM papurl_alias where 497673="397570";
linux add comma and list one line
cat some_file| paste -sd "," -
example:
tail -5 /etc/passwd | cut -d":" -f3 | paste -sd "," -
mysql show applied config files
mysqld --verbose --help | grep -A 1 "Default options"
linux last command show full date
last -Fd