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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s