jdk-1_5_0_09-linux-i586.bin
(2)安裝jdk
shell> ./jdk-1_5_0_09-linux-i586.bin
shell> ln -s jdk-1_5_0_09 ?java
(3)設置環境變量shell> vi /etc/profile
添加以下內容:





2006年1月25日 #
設置好session的File Transfer中的download和upload路徑,然后登陸后就可以用sz filename下載文件回客戶端,從客戶端上傳文件則是用 rz 命令就好。?
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.11.5
netmask 255.255.255.0
network 192.168.11.0
broadcast 192.168.11.255
gateway 192.168.11.2
dns-nameservers 202.96.134.133
*簡單配置,只用于本地賬戶上傳一些在ubuntu server下下載不方便的軟件
7、安裝mysql server
(1)下載mysql二進制分發包到工作目錄
(2)創建mysql 用戶
shell> groupadd mysql
shell> useradd -g mysql mysql
(3)解壓縮
shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
(4)將工作目錄鏈接到/usr/local/mysql
shell> cd /usr/local
shell> ln -s full-path-to-mysql-VERSION-OS mysql
(5)安裝數據庫
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root? .
shell> chown -R mysql data
shell> chgrp -R mysql .
*此時可以手動啟動數據庫:shell> bin/mysqld_safe --user=mysql &
(6)設置mysql自動啟動
將/usr/local/mysql/support-files/mysql.server 復制到/etc/init.d/mysql
添加為服務:
sudo update-rc.d mysql defaults
如需刪除服務:
sudo update-rc.d mysql remove
或者
在MySQL安裝目錄下或MySQL 源碼樹的support-files目錄中找到腳本。
要想手動安裝mysql.server,用名稱mysql將它復制到/etc/init.d目錄,然后將它變為可執行文件。只需要將位置更改為mysql.serveris所在并執行這些命令的相應目錄:
shell> cp mysql.server /etc/init.d/mysql
shell> chmod +x /etc/init.d/mysql
安裝腳本后,用來激活它以便在系統啟動時運行所需要的命令取決于你的操作系統。在Linux中,你可以使用chkconfig:
shell> chkconfig --addMySQL
(7)配置mysql
添加my.cnf到/etc
啟動數據庫,更改root密碼:
cd /usr/local/mysql/bin
./mysql -u roo
mysql>GRANT ALL PRIVILEGES ON *.* TO??root@?localhost IDENTIFIED BY "password";
或者啟動遠程訪問:
mysql>GRANT ALL PRIVILEGES ON *.* TO??root@?"%" IDENTIFIED BY "password";
1. 將FCKeditor2.1.1解壓縮到項目的根目錄下,目錄結構為:\項目名\FCKeditor\ ,然后將FCKeditor-2.3.zip(java)壓縮包中\web\WEB-INF\lib\目錄下的兩個jar文件拷到項目的\WEB-INF\lib\目錄下。
2. 將FCKeditor-2.3.zip壓縮包中\web\WEB-INF\目錄下的web.xml文件合并到項目的\WEB-INF\lib\目錄下的web.xml文件中。
3. 修改合并后的web.xml文件,將名為SimpleUploader的Servlet的enabled參數值改為true,以允許上傳功能,Connector Servlet的baseDir參數值用于設置上傳文件存放的位置。
4. 上面兩個servlet的映射分別為:
/editor/filemanager/browser/default/connectors/jsp/connector
/editor/filemanager/upload/simpleuploader
因為我的FCKeditor是放到\項目名\FCKeditor\目錄下,所以需要在兩個映射前面加上/FCKeditor,即改為/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector和/FCKeditor/editor/filemanager/upload/simpleuploader。
5. 采用Taglib在jsp中添加如下代碼創建在線編輯器:
在頁面的頂部加入〈%@ taglib uri="
在適當的位置加入下面代碼 注意/CM/,這個表示訪問項目的URL為http://127.0.0.1:8080/CM/,如果訪問的URL為:http://127.0.0.1:8080/ 的話,只需要將上面的/CM去掉就行,不用修改web.xml文件。 6. 經過上面步驟就可以在jsp中使用FCKeditor了。〈FCK:editor id="infoContent" basePath="/CM/FCKeditor/"
width="522"
height="300"
skinPath="/CM/FCKeditor/editor/skins/silver/"
defaultLanguage="zh-cn"
tabSpaces="8"
toolbarSet="CM"
imageBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
linkBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
flashBrowserURL="/CM/FCKeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
imageUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Image"
linkUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=File"
flashUploadURL="/CM/FCKeditor/editor/filemanager/upload/simpleuploader?Type=Flash"〉
請輸入內容
〈/FCK:editor〉