Useful ssh command lines

iBoris

Command lines for the Webfaction ssh access:

How to stop apache2?

$ ~/webapps/django/apache2/bin/stop

How to start apache2?

$ ~/webapps/django/apache2/bin/start

How to check memory usage?

$ ps -u $LOGNAME  -o rss,command

How to start memcached (installed by default on all the Webfaction servers)?

$ memcached -d -l 127.0.0.1 -m memory_size_in_Mo -p port_number

How to stop memcached?

$ ps -u $LOGNAME -o pid,command | grep memcached
$ kill memcached_PID_number

How to install Python modules?

$ export PYTHONPATH=$HOME/lib/python2.5
$ easy_install --always-unzip --install-dir=$HOME/lib/python2.5/ --script-dir=$HOME/bin module_name

Webfaction

Technology latest entries

Hokkaido

Sapporo beer commercial

Sapporo beer commercial