How to redirect stdout and stderr to log file
How to redirect standard output and standard error to a log file. Correct syntax: command > /path/to/log 2>&1. This redirects stdout to the log and stderr to stdout.
392 notes on Linux, tools and troubleshooting
How to redirect standard output and standard error to a log file. Correct syntax: command > /path/to/log 2>&1. This redirects stdout to the log and stderr to stdout.
mysqldump exports MySQL data in SQL format and is commonly used for backups. Normally these backups are not compressed.
To list the stored procedures in MySQL and display their procedure code, follow these steps. Listing MySQL stored procedures: list the procedures in the system. mysql> SHO…
MySQL tip: find the ten most frequently used queries over a period using tcpdump or mysqlbinlog to collect and rank them.
An overview of if/else statements in Bash scripts and comparison conditions. Basic if syntax: if [ condition ] then ... fi.
Apache on CentOS uses Prefork by default with the PHP module. Under heavy loads, switching to Apache worker with PHP fcgi (PHP fastcgi) can reduce memory use.
Apache worker suits heavily loaded web servers with limited resources because it uses less memory than Prefork. Enabling PHP support requires additional configuration.
In MySQL, a table's structure and data can be copied easily. For example, create table_new with the structure and data from table_name as follows.
The network ports used by Zimbra mail server fall into two groups. 1. External Access - Ports accessed by Clients or services outside the Zimbra system.