How to Optimize Web Server- Install Memcached

speed-up-wordpress-site-cache-webservers-install

On dynamic websites is highly recommended a cached system. There are several methods how to implement a cached system but in this article we will show how to install Memcached. Memcached is a general-purpose distributed memory caching system that was originally developed by Danga Interactive for LiveJournal, but is now used by many other sites. It speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached runs on Unix, Linux, Windows and Mac OS X and is distributed under a permissive free software licens.

Continue reading

Three ways How to Run sh scripts in Linux

linux_sh_products_designs_card-how-to-run-commands

Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh).

Bash is intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2).

How to run sh Script from Command line

First you must type the chmod command to change file access permissions to executable:
Use cd /home/user/script_dir to move to your script file.

chmod +x script.sh

Then you run one of the following commands:

./script.sh

or

bash script.sh

or

sh script.sh