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)設(shè)置環(huán)境變量shell> vi /etc/profile
添加以下內(nèi)容:





2005年9月2日 #
設(shè)置好session的File Transfer中的download和upload路徑,然后登陸后就可以用sz filename下載文件回客戶(hù)端,從客戶(hù)端上傳文件則是用 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
*簡(jiǎn)單配置,只用于本地賬戶(hù)上傳一些在ubuntu server下下載不方便的軟件
7、安裝mysql server
(1)下載mysql二進(jìn)制分發(fā)包到工作目錄
(2)創(chuàng)建mysql 用戶(hù)
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)安裝數(shù)據(jù)庫(kù)
shell> cd mysql
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root? .
shell> chown -R mysql data
shell> chgrp -R mysql .
*此時(shí)可以手動(dòng)啟動(dòng)數(shù)據(jù)庫(kù):shell> bin/mysqld_safe --user=mysql &
(6)設(shè)置mysql自動(dòng)啟動(dòng)
將/usr/local/mysql/support-files/mysql.server 復(fù)制到/etc/init.d/mysql
添加為服務(wù):
sudo update-rc.d mysql defaults
如需刪除服務(wù):
sudo update-rc.d mysql remove
或者
在MySQL安裝目錄下或MySQL 源碼樹(shù)的support-files目錄中找到腳本。
要想手動(dòng)安裝mysql.server,用名稱(chēng)mysql將它復(fù)制到/etc/init.d目錄,然后將它變?yōu)榭蓤?zhí)行文件。只需要將位置更改為mysql.serveris所在并執(zhí)行這些命令的相應(yīng)目錄:
shell> cp mysql.server /etc/init.d/mysql
shell> chmod +x /etc/init.d/mysql
安裝腳本后,用來(lái)激活它以便在系統(tǒng)啟動(dòng)時(shí)運(yùn)行所需要的命令取決于你的操作系統(tǒng)。在Linux中,你可以使用chkconfig:
shell> chkconfig --addMySQL
(7)配置mysql
添加my.cnf到/etc
啟動(dòng)數(shù)據(jù)庫(kù),更改root密碼:
cd /usr/local/mysql/bin
./mysql -u roo
mysql>GRANT ALL PRIVILEGES ON *.* TO??root@?localhost IDENTIFIED BY "password";
或者啟動(dòng)遠(yuǎn)程訪(fǎng)問(wèn):
mysql>GRANT ALL PRIVILEGES ON *.* TO??root@?"%" IDENTIFIED BY "password";
1. 將FCKeditor2.1.1解壓縮到項(xiàng)目的根目錄下,目錄結(jié)構(gòu)為:\項(xiàng)目名\FCKeditor\ ,然后將FCKeditor-2.3.zip(java)壓縮包中\(zhòng)web\WEB-INF\lib\目錄下的兩個(gè)jar文件拷到項(xiàng)目的\WEB-INF\lib\目錄下。
2. 將FCKeditor-2.3.zip壓縮包中\(zhòng)web\WEB-INF\目錄下的web.xml文件合并到項(xiàng)目的\WEB-INF\lib\目錄下的web.xml文件中。
3. 修改合并后的web.xml文件,將名為SimpleUploader的Servlet的enabled參數(shù)值改為true,以允許上傳功能,Connector Servlet的baseDir參數(shù)值用于設(shè)置上傳文件存放的位置。
4. 上面兩個(gè)servlet的映射分別為:
/editor/filemanager/browser/default/connectors/jsp/connector
/editor/filemanager/upload/simpleuploader
因?yàn)槲业腇CKeditor是放到\項(xiàng)目名\FCKeditor\目錄下,所以需要在兩個(gè)映射前面加上/FCKeditor,即改為/FCKeditor/editor/filemanager/browser/default/connectors/jsp/connector和/FCKeditor/editor/filemanager/upload/simpleuploader。
5. 采用Taglib在jsp中添加如下代碼創(chuàng)建在線(xiàn)編輯器:
在頁(yè)面的頂部加入〈%@ taglib uri="
在適當(dāng)?shù)奈恢眉尤胂旅娲a 注意/CM/,這個(gè)表示訪(fǎng)問(wèn)項(xiàng)目的URL為http://127.0.0.1:8080/CM/,如果訪(fǎng)問(wèn)的URL為:http://127.0.0.1:8080/ 的話(huà),只需要將上面的/CM去掉就行,不用修改web.xml文件。 6. 經(jīng)過(guò)上面步驟就可以在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"〉
請(qǐng)輸入內(nèi)容
〈/FCK:editor〉