At first, you need to build a LAMP architecture in your ubuntu server.
Luckily, we can easy install LAMP step by step and click option when the
Ubuntu installation. LAMP = Linux Apache MySQL PHP
#sudo apt-get install ganglia-monitor ganglia-webfrontend
#sudo service gmetad start
#sudo service ganglia-monitor start
#sudo ln -s /usr/share/ganglia-webfrontend/ /var/www/ganglia
or
#sudo mv /usr/share/ganglia-webfrontend/ /var/www/ganglia
open browser and type URL YOURIPorDOMAIN/ganglia
It work~!
2011年5月23日 星期一
2011年5月19日 星期四
GCC Using command
gcc is a GNU project compiler, and you can see it on many Unix like system.
I'll note some using way.
#gcc -O foo.c -o bar.out
#./bar.out
Compile a C program file to a execution file.
-O -> Optimization parameter
-O3 -O2 -O1 -O0 -> 0 do not optimize, 3 is best optimization.
#gcc -Wall -g foo.c -o bar.out
-Wall -> displayed the warning message
-g -> Using gdb debugging and show error message
I'll note some using way.
#gcc -O foo.c -o bar.out
#./bar.out
Compile a C program file to a execution file.
-O -> Optimization parameter
-O3 -O2 -O1 -O0 -> 0 do not optimize, 3 is best optimization.
#gcc -Wall -g foo.c -o bar.out
-Wall -> displayed the warning message
-g -> Using gdb debugging and show error message
#gcc -I/usr/include -L/usr/lib -lm test.c -o test
-Idir_name -> find the header file in directory
-Ldir_name -> find the linrary file in directory
-llibfile_name -> join a library file "libm.so" overpass lib & .so
2011年5月2日 星期一
Mac homebrew git & Aptana Studio 3.0 ruble installation
# ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)"
install Xcode
# brew install git
# cd /Users/losehole/Documents/Aptana Rubles
# git clone git://github.com/aptana/YOURPACK.ruble.git
YUI javascript library support: Drop the SDOCML file into your Web Project.
install Xcode
# brew install git
# cd /Users/losehole/Documents/Aptana Rubles
# git clone git://github.com/aptana/YOURPACK.ruble.git
YUI javascript library support: Drop the SDOCML file into your Web Project.