posts - 29, comments - 0, trackbacks - 0, articles - 0
            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          日歷

          <2007年6月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          搜索

          •  

          最新評(píng)論

          2007年6月8日

          (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 &


          
          



           


          posted @ 2007-06-08 09:54 change| 編輯 收藏

          主站蜘蛛池模板: 安阳市| 三亚市| 疏勒县| 腾冲县| 阿瓦提县| 临潭县| 怀远县| 东乡族自治县| 赫章县| 林芝县| 宣武区| 浙江省| 留坝县| 绥江县| 南丹县| 屏山县| 遂平县| 西乌珠穆沁旗| 平度市| 宁化县| 内丘县| 元朗区| 西林县| 大冶市| 台东县| 武鸣县| 祁门县| 富顺县| 当涂县| 长宁县| 梨树县| 六枝特区| 修武县| 安康市| 方正县| 绍兴县| 鲁山县| 临澧县| 勐海县| 嘉义市| 若羌县|