﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-change526-随笔分类-技术</title><link>http://www.blogjava.net/change526/category/22858.html</link><description /><language>zh-cn</language><lastBuildDate>Fri, 08 Jun 2007 03:43:18 GMT</lastBuildDate><pubDate>Fri, 08 Jun 2007 03:43:18 GMT</pubDate><ttl>60</ttl><item><title>linux  </title><link>http://www.blogjava.net/change526/archive/2007/06/08/122771.html</link><dc:creator>change</dc:creator><author>change</author><pubDate>Fri, 08 Jun 2007 01:54:00 GMT</pubDate><guid>http://www.blogjava.net/change526/archive/2007/06/08/122771.html</guid><wfw:comment>http://www.blogjava.net/change526/comments/122771.html</wfw:comment><comments>http://www.blogjava.net/change526/archive/2007/06/08/122771.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/change526/comments/commentRss/122771.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/change526/services/trackbacks/122771.html</trackback:ping><description><![CDATA[<meta http-equiv="CONTENT-TYPE" content="text/html; charset=" utf-8="">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 1.0.2  (Linux)"><style>
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style>
<p style="margin-bottom: 0cm;">(1):&nbsp; linux command</p>
<p style="margin-bottom: 0cm;"><br>
Mount USB:</p>
<p style="margin-bottom: 0cm;"> mount -t vfat /dev/sda1 /mnt/cdrom</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">Unmount USB:</p>
<p style="margin-bottom: 0cm;">umount /mnt/cdrom</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">copy directory recyle:</p>
<p style="margin-bottom: 0cm;">cp -r apache-ant-1.7.0 /usr/local</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">unpackage file:</p>
<p style="margin-bottom: 0cm;">tar -zxvf <a href="http://apache-ant-1.7.0-bin.tar.gz/">apache-ant-1.7.0-bin.tar.gz</a></p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">ctr+alt+f4   swich to dos interface</p>
<p style="margin-bottom: 0cm;">alt+f7         return to graphic</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">find / -name filename</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">ping local ip :  ifconfig</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">vi usage :</p>
<p style="margin-bottom: 0cm;">[esc]  [insert]</p>
<p style="margin-bottom: 0cm;">:w   write</p>
<p style="margin-bottom: 0cm;">:q    quit</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;"><br>
</p>
<p style="margin-bottom: 0cm;">(2):&nbsp; software install<br>
<br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=" utf-8="">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 1.0.2  (Linux)"><style>
<!--
@page { margin: 2cm }
-->
</style>
</p>
<p>From the Ant FAQ:</p>
<p>How do you get ant-1.6.x (or any version later than 1.5.2) to work
on on RedHat ES 3?
</p>
<p>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.</p>
<p>To use a later version of ant on this OS you could do the
following:</p>
<pre>$ ant -version<br>Apache Ant version 1.5.2-23 compiled on November 12 2003<br>$ su -l<br># rpm -e ant ant-libs<br># exit<br>$ hash -r<br>$ ant -version<br>Apache Ant version 1.6.2 compiled on July 16 2004<br><br>But on my computer similar do like this:<br>[root@localhost TestAntBuld]# ant -version<br>Apache Ant version 1.5.2-20 compiled on September 25 2003<br>[root@localhost root]# sudo -l<br>User root may run the following commands on this host:<br>    (ALL) ALL<br>[root@localhost root]# rpm -e ant ant-libs<br>[root@localhost root]# exit<br>logout<br> <br>[root@localhost root]# bash -r<br>[root@localhost root]# exit<br>exit<br>[root@localhost root]# ant -version<br>Apache Ant version 1.7.0 compiled on December 13 2006<br><br>Now, That is ok!<br><br><font size="4" style="font-size: 16pt;"><strong>Install Junit</strong></font><br><font size="2"><strong>1 unzip the download zip file</strong></font><br><font size="2"><strong>2 set path (/etc/profile  and /etc/profile.d/java.sh)</strong></font><br><br><font size="4" style="font-size: 16pt;"><strong>Install PostgreSQL</strong></font><br>1 gunzip postgresql-8.2.3.tar.gz<br>tar xf postgresql-8.2.3.tar</pre>
<p>
This will create a directory
<tt>postgresql-8.2.3</tt> under the
current directory with the PostgreSQL sources. Change into that
directory for the rest of the installation procedure.
</p>
<p>2 ./configure</p>
<p>3 gmake</p>
<p>4 gmake check</p>
<p>5 gmake install</p>
<p>6 To undo the installation use the command
<tt>gmake uninstall</tt>.
However, this will not remove any created directories.</p>
<p><a name="AEN17808"></a>
</p>
<p>    LD_LIBRARY_PATH=/usr/local/pgsql/lib</p>
<pre style="margin-bottom: 0.5cm;">  export LD_LIBRARY_PATH<br>8 set enviroment path</pre>
<p>
PATH=/usr/local/pgsql/bin:$PATH</p>
<pre style="margin-bottom: 0.5cm;"> export PATH<br><br></pre>
<p>
JUnit Test:<br>
</p>
<p>*** You must first compile the java classes,afer that, then you can test it!<br>
<br>
run the test:<br>
<br>
&nbsp;&nbsp;&nbsp; *<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To run the test from the console, type:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java org.junit.runner.JUnitCore junitfaq.SimpleTest <br>
<br>
&nbsp;&nbsp;&nbsp; *<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To run the test with the test runner used in main(), type:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java junitfaq.SimpleTest <br>
<br>
The passing test results in the following textual output:<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;.<br>
Time: 0<br>
<br>
OK (1 tests)
<br>
<br>
</p>
<p>&nbsp;(3):&nbsp; intro_postgreSQL_startup <br>
</p>
<p>Before you can do anything, you must initialize a database storage area on disk. We call this a database cluster. <br>
The desired file system location of your database cluster is indicated by the -D option, for example:<br>
<br>
$ initdb -D /usr/local/pgsql/data<br>
<br>
anyone can access the database, you must start the database server. The
database server program is called postgres.&nbsp; 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:<br>
<br>
$ postgres -D /usr/local/pgsql/data<br>
<br>
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.<br>
<br>
Normally it is better to start postgres in the background. For this, use the usual shell syntax:<br>
<br>
$ postgres -D /usr/local/pgsql/data &gt;logfile 2&gt;&amp;1 &amp;<br>
<br>
<br>
</p>
<pre style="margin-bottom: 0.5cm;"></pre>
<p style="margin-bottom: 0cm;">
<br>
</p>
<br>
<p>&nbsp;</p>
<br><img src ="http://www.blogjava.net/change526/aggbug/122771.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/change526/" target="_blank">change</a> 2007-06-08 09:54 <a href="http://www.blogjava.net/change526/archive/2007/06/08/122771.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>