(1): linux command
Mount USB:
mount -t vfat /dev/sda1 /mnt/cdrom
Unmount USB:
umount /mnt/cdrom
copy directory recyle:
cp -r apache-ant-1.7.0 /usr/local
unpackage file:
tar -zxvf apache-ant-1.7.0-bin.tar.gz
ctr+alt+f4 swich to dos interface
alt+f7 return to graphic
find / -name filename
ping local ip : ifconfig
vi usage :
[esc] [insert]
:w write
:q quit
(2): software install
From the Ant FAQ:
How do you get ant-1.6.x (or any version later than 1.5.2) to work
on on RedHat ES 3?
Redhat ES 3.0 comes installed with ant 1.5.2. Even if you have
your PATH and ANT_HOME variables set correctly to a later version of
ant, you will always be forced to use the preinstalled version.
To use a later version of ant on this OS you could do the
following:
$ ant -version
Apache Ant version 1.5.2-23 compiled on November 12 2003
$ su -l
# rpm -e ant ant-libs
# exit
$ hash -r
$ ant -version
Apache Ant version 1.6.2 compiled on July 16 2004
But on my computer similar do like this:
[root@localhost TestAntBuld]# ant -version
Apache Ant version 1.5.2-20 compiled on September 25 2003
[root@localhost root]# sudo -l
User root may run the following commands on this host:
(ALL) ALL
[root@localhost root]# rpm -e ant ant-libs
[root@localhost root]# exit
logout
[root@localhost root]# bash -r
[root@localhost root]# exit
exit
[root@localhost root]# ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
Now, That is ok!
Install Junit
1 unzip the download zip file
2 set path (/etc/profile and /etc/profile.d/java.sh)
Install PostgreSQL
1 gunzip postgresql-8.2.3.tar.gz
tar xf postgresql-8.2.3.tar
This will create a directory
postgresql-8.2.3 under the
current directory with the PostgreSQL sources. Change into that
directory for the rest of the installation procedure.
2 ./configure
3 gmake
4 gmake check
5 gmake install
6 To undo the installation use the command
gmake uninstall.
However, this will not remove any created directories.
LD_LIBRARY_PATH=/usr/local/pgsql/lib
export LD_LIBRARY_PATH
8 set enviroment path
PATH=/usr/local/pgsql/bin:$PATH
export PATH
JUnit Test:
*** You must first compile the java classes,afer that, then you can test it!
run the test:
*
To run the test from the console, type:
java org.junit.runner.JUnitCore junitfaq.SimpleTest
*
To run the test with the test runner used in main(), type:
java junitfaq.SimpleTest
The passing test results in the following textual output:
.
Time: 0
OK (1 tests)
(3): intro_postgreSQL_startup
Before you can do anything, you must initialize a database storage area on disk. We call this a database cluster.
The desired file system location of your database cluster is indicated by the -D option, for example:
$ initdb -D /usr/local/pgsql/data
anyone can access the database, you must start the database server. The
database server program is called postgres. The postgres program
must know where to find the data it is supposed to use. This is done
with the -D option. Thus, the simplest way to start the server is:
$ postgres -D /usr/local/pgsql/data
which will leave the server running in the foreground. This must be
done while logged into the PostgreSQL user account. Without -D, the
server will try to use the data directory named by the environment
variable PGDATA. If that variable is not provided either, it will fail.
Normally it is better to start postgres in the background. For this, use the usual shell syntax:
$ postgres -D /usr/local/pgsql/data >logfile 2>&1 &