Start and Stop Nginx – Run Memcached as Daemon


stop nginx (ubuntu)

sudo /etc/init.d/nginx stop

start nginx

sudo /etc/init.d/nginx start

restart nginx

sudo /etc/init.d/nginx restart

start memcached in daemon mode with 128 MB RAM, which listens on localhost port 11211 :

memcached -d -m 128 -l 127.0.0.1 -p 11211

 

Advertisements