pydelion.com

pydelion.com

date –date="5 min ago" +%d/%b/%Y:%H:%M

Menu

Skip to content
  • about
  • contact

Monthly Archives: October 2014

How to change hostname for OpenVZ virtual server

vzctl set <CTID> --hostname <newhostname> --save
Posted on October 30, 2014 by dandelion. Posted in linux | Tagged openvz | Leave a comment

MySQL: fixing ‘MySQL server has gone away (error 2006)’ error

If you try to import / restore some big MySQL database  you may have encountered such error:

MySQL server has gone away (error 2006)

To fix it you would need to increase wait_timeout and max_allowed_packet:

wait_timeout = 6000
max_allowed_packet = 128M

It should fix the problem.

Posted on October 3, 2014 by dandelion. Posted in mysql | Tagged mysql | Leave a comment

Postfix: how to disable local delivery

if you need to send emails from your Postfix server using MX records instead of local delivery you should leave the following line empty:

mydestination = $myhostname, localhost.$mydomain, localhost

in /etc/postfix/main.cf.
This way:

mydestination =

And restart the server:

/etc/init.d/postfix restart
Posted on October 3, 2014 by dandelion. Posted in linux | Tagged postfix | Leave a comment
  • Français
  • English
  • Español

Recent Posts

  • Debian: There is no public key available for the following key IDs
  • How to renew Certificate Revocation List
  • Dovecot: Error: mmap failed with file … dovecot.index.cache: Cannot allocate memory
  • Debian: reconfigure unattended upgrades
  • Curl: how to send cookies

Categories

  • linux
  • mysql
  • news
  • python
  • thoughts
  • tips
  • Uncategorized
  • weekly digests

Tags

adaptec ansible apt bash centos curl CORS debian distributed computing dovecot fedora galera html KVM linux memtest minify mysql mysqldump nagios openssl openvz percona perl php port forwarding postfix python qemu raid rpm ruby sed sinatra smtp svn tips trac traceroute ubuntu vim virsh vnstat weekly digest windows wordpress

Knowledge is knowing that a tomato is a fruit. Wisdom is knowing that a tomato doesn't belong in a fruit salad.
Miles Kington
Proudly powered by WordPress Theme: Publish by Konstantin Kovshenin.