This is the default index.html page that is distributed with nginx on Fedora. It is located in /usr/share/nginx/html.
You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.
Thursday, April 21, 2011
Tuesday, April 19, 2011
install node.js on AWS CentOS
Thanks to @wavded post on http://wavded.tumblr.com/post/475957278/hosting-nodejs-apps-on-centos-5
when I upgrade to v0.5.10 on CentOS in aws ec2
under your node source directory
$ git pull
$ ./configure
$ make
...
Waf: Leaving directory `/home/ec2-user/git/node/out'
'build' finished successfully (31m18.692s)
$ sudo make install
...
Waf: Leaving directory `/home/ec2-user/git/node/out'
'install' finished successfully (0.324s)
and test
$ make test.
when I upgrade to v0.5.10 on CentOS in aws ec2
under your node source directory
$ git pull
$ ./configure
$ make
...
Waf: Leaving directory `/home/ec2-user/git/node/out'
'build' finished successfully (31m18.692s)
$ sudo make install
...
Waf: Leaving directory `/home/ec2-user/git/node/out'
'install' finished successfully (0.324s)
and test
$ make test.
Wednesday, April 6, 2011
if you can't run couchdb on port 80.
It's because the user to run couchdb is (couchdb) who is not allow to run on port 80. You need to rebuild couchdb and change COUCHDB_USER to root as follows;
1. cd to your couchdb source code directory
$ cd svn/couchdb
2. change COUCHBD_USER to root
$ vi etc/default/couchdb
change COUCHDB_USER=couchdb to COUCHDB_USER=root
3. make and install it again.
$ make && sudo make install
4. then you can change couchdb local.ini configuration file to use port = 80. and restart the couchdb service again.
1. cd to your couchdb source code directory
$ cd svn/couchdb
2. change COUCHBD_USER to root
$ vi etc/default/couchdb
change COUCHDB_USER=couchdb to COUCHDB_USER=root
3. make and install it again.
$ make && sudo make install
4. then you can change couchdb local.ini configuration file to use port = 80. and restart the couchdb service again.
if you can 't run couchjs because of libjs.so missing.
when run /usr/local/bin/couchjs and got error as follows;
./couchjs: error while loading shared libraries: libjs.so: cannot open shared object file: No such file or directory
try to copy /usr/local/lib/libjs.so to /usr/lib
$ sudo cp /usr/local/lib/libjs.so /usr/lib
or make a symbolic link from /usr/lib/libjs.so to /usr/local/lib/libjs.so
$ sudo ln -s /usr/local/lib/libjs.so /usr/lib/libjs.so
./couchjs: error while loading shared libraries: libjs.so: cannot open shared object file: No such file or directory
try to copy /usr/local/lib/libjs.so to /usr/lib
$ sudo cp /usr/local/lib/libjs.so /usr/lib
or make a symbolic link from /usr/lib/libjs.so to /usr/local/lib/libjs.so
$ sudo ln -s /usr/local/lib/libjs.so /usr/lib/libjs.so
Friday, March 25, 2011
more easy on a ubuntu 9.10 system to install couchapp
adding the couchapp's PPA to Ubuntu 9.10 (Karmic) and later
$ sudo add-apt-repository ppa:couchapp/couchapp
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv E9AE0C6F64E1127BDAB2C06D9180CDCB0CC91448
gpg: ....
gpg: ....
gpg: ...: 1 (RSA: 1)
$ sudo apt-get update
$ sudo add-apt-repository ppa:couchapp/couchapp
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv E9AE0C6F64E1127BDAB2C06D9180CDCB0CC91448
gpg: ....
gpg: ....
gpg: ...: 1 (RSA: 1)
$ sudo apt-get update
install couchapp on your AWS EC2
if you have not install couchdb, plesae install it first. refer to "install couchdb for AWS" in this blog.
(on Linux ip-10-146-47-148 2.6.34.7-56.40.amzn1.i686 #1 SMP Fri Oct 22 18:48:33 UTC 2010 i686 i686 i386 GNU/Linux
)
$ cd /tmp
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ sudo easy_install pip
$ sudo pip install couchapp
test: (you will see couchapp help)
$ couchapp
(on Linux ip-10-146-47-148 2.6.34.7-56.40.amzn1.i686 #1 SMP Fri Oct 22 18:48:33 UTC 2010 i686 i686 i386 GNU/Linux
)
$ cd /tmp
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ sudo easy_install pip
$ sudo pip install couchapp
test: (you will see couchapp help)
$ couchapp
Subscribe to:
Posts (Atom)