亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 《FreeBSD新手快速入門》第5篇__FreeBSD服務(wù)器之FTP服務(wù) [打印本頁]

作者: freemongolia    時(shí)間: 2007-11-29 13:28
標(biāo)題: 《FreeBSD新手快速入門》第5篇__FreeBSD服務(wù)器之FTP服務(wù)
FreeBSD6.2架設(shè)之Pure-FTPd服務(wù)器

Pure-FTPd Server On FreeBSD6.2 HowTo

Mongolia



Index:
為方便離線查看,現(xiàn)附上PDF文檔

[ 本帖最后由 freemongolia 于 2007-11-29 13:50 編輯 ]

Pure-FTPd Server On FreeBSD6.2 HowTo.pdf

193.23 KB, 下載次數(shù): 934


作者: freemongolia    時(shí)間: 2007-11-29 13:28

簡介


Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn't provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.

Pure-FTPd是一個(gè)自由的、安全的、高品質(zhì)的FTP Server。它,高效并且易于使用。Pure-FTPd提供多語言支持,包括簡體文、繁體中文,同時(shí)也支持UTF-8。本文使用FreeBSD6.2做為系統(tǒng),使用Pure-FTPd程序提供FTP服務(wù),并且結(jié)合MySQL Server做認(rèn)證。支持虛擬用戶、用戶帶寬控制、用戶磁盤限額。使用User manager for PureFTPd,提供后臺(tái)管理界面。
FreeBSD6.2+Apache22+PHP5+php5-extensions+ Pure-FTPd+ User manager for PureFTPd
軟件版本信息:
·FreeBSD 6.2-RELEASE
·Apache-2.2.3
·Mysql-server-5.0.27
·Php5-5.1.6_3
·Php5-extensions-1.0
·Pure-FTPd-1.0.21_1
·User manager for Pure-FTPd
作者: freemongolia    時(shí)間: 2007-11-29 13:29


Step 1 Installation Apache22.


Installation of the Apache server:
跟隨下面步驟安裝 Apache2.
使用Ports方式安裝Apache22(更易于以后的維護(hù),比如升級(jí)、卸載),進(jìn)入Apache22所在的Ports安裝目錄/usr/ports/www/apache22目錄,執(zhí)行make install clean進(jìn)行安裝。
Shell:
whereis apache22
apache22: /usr/ports/www/apache22
cd /usr/ports/www/apache22
make install clean
系統(tǒng)要求選擇模塊,取消IPV6支持,其它保持默認(rèn)即可

Options for apache 2.2.6_2
[ ]
IPV6
Enable IPv6 support
安裝完成后,輸入rehash命令刷新
Shell:
To run apache www server from startup, add apache22_enable="YES"
in your /etc/rc.conf. Extra options can be found in startup script.
===>
Cleaning for autoconf-wrapper-20071109

===>
Cleaning for p5-gettext-1.05_1

===>
Cleaning for apache-2.2.6_2

rehash
系統(tǒng)提示,需要添加apache22_enable=”YES”/etc/rc.conf文件。
(具體信息可以查看cat /usr/local/etc/rc.d/apache22會(huì)有詳細(xì)說明)
Shell:
vi /etc/rc.conf
添加以下內(nèi)容
Editor:
#Apache22
apache22_enable="YES"
保存退出后,啟動(dòng)Apache進(jìn)行測試
輸入命令/usr/local/etc/rc.d/apache22 start啟動(dòng)Apache
Shell:
/usr/local/etc/rc.d/apache22 start
Syntax OK
Starting apache22.

使用瀏覽器訪問FreeBSD服務(wù)器IP地址測試Apache是否工作正常
瀏覽器打開http://youipaddress
It works!
好了,Apache22安裝成功了。



[ 本帖最后由 freemongolia 于 2007-11-29 13:31 編輯 ]
作者: freemongolia    時(shí)間: 2007-11-29 13:32

Step 2 Installation MySQL Server.


Installation of the MySQL server:
跟隨下面步驟安裝 MySQL.
使用Ports方式安裝MySQL,進(jìn)入MySQL所在的Ports安裝目錄/usr/ports/www/apache22目錄,執(zhí)行make install clean進(jìn)行安裝。
Shell:
whereis mysql50-server
mysql50-server: /usr/ports/databases/mysql50-server
cd /usr/ports/databases/mysql50-server/
make install clean
安裝完成后,輸入rehash命令刷新
Shell:
http://www.mysql.com/
===>
Cleaning for mysql-client-5.0.45_1

===>
Cleaning for mysql-server-5.0.45_1

rehash
系統(tǒng)提示,需要添加mysql_enable=”YES”/etc/rc.conf文件。
(具體信息可以查看cat /usr/local/etc/rc.d/mysql-server會(huì)有詳細(xì)說明)
Shell:
vi /etc/rc.conf
添加以下內(nèi)容
Editor:
#MySQL5.0
mysql_enable="YES"
保存退出后,啟動(dòng)Mysql5.0進(jìn)行測試
輸入命令/usr/local/etc/rc.d/mysql-server start啟動(dòng)Mysql

檢測Mysql是否正常運(yùn)行
可以通過監(jiān)聽端口和系統(tǒng)進(jìn)程進(jìn)行判斷
Shell:
netstat -an | grep "3306"
tcp4 0 0 *.3306 *.* LISTEN
ps -aux|grep mysql|grep -v grep
mysql 97589 0.0 0.3 1728 1376 p0 I 3:03PM 0:00.09 /bin/sh /usr/local/bin/mysqld_safe --defaults-extra-file=/va
mysql 97609 0.0 4.9 53844 25576 p0 S 3:03PM0:01.07 /usr/local/libexec/mysqld --defaults-extra-file=/var/db/mysq
系統(tǒng)顯示Mysql已在所有地址(0)上監(jiān)聽3306端口,并且也可以查到Mysql的進(jìn)程。

更改Mysql密碼
Mysql安裝完成后,并沒有設(shè)定密碼。為增加數(shù)據(jù)庫安裝性,使用mysqladmin命令設(shè)定Mysql密碼
Shell:
mysqladmin -u root password '123456'  ('123456')是你要設(shè)定的密碼
驗(yàn)證密碼是否設(shè)定常
Shell:
mysql -u root -p
Enter password:
Welcome to the MySQL monitor.
Commands end with ; or \g.

Your MySQL connection id is 3
Server version: 5.0.45 FreeBSD port: mysql-server-5.0.45_1

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> show databases;
+--------------------+
| Database
|

+--------------------+
| information_schema |
| mysql
|

| test
|

+--------------------+
3 rows in set (0.01 sec)

mysql> quit
Bye
密碼設(shè)定正確。至此Mysql安裝完成。


[ 本帖最后由 freemongolia 于 2007-11-29 13:34 編輯 ]
作者: freemongolia    時(shí)間: 2007-11-29 13:34

Step 3 Installation PHP5.


Installation of the PHP5:
跟隨下面步驟安裝 PHP5.
使用Ports方式安裝PHP5,進(jìn)入PHP5所在的Ports安裝目錄/usr/ports/www/php2執(zhí)行ake install clean進(jìn)行安裝。
Shell:
whereis php5
php5: /usr/ports/lang/php5
cd /usr/ports/lang/php5/
make install clean

安裝時(shí),會(huì)要求進(jìn)行php5選項(xiàng)設(shè)定,這里選擇如下
Options for php5 5.2.5

[X]

APACHE

Build Apache module

[X]

MULTIBYTE

Enable zend multibyte support


安裝完成后,輸入rehash命令刷新
Shell:
***************************************************************
Make sure index.php is part of your DirectoryIndex.
You should add the following to your Apache configuration file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
***************************************************************
===>
Cleaning for pkg-config-0.22_1

===>
Cleaning for libxml2-2.6.30

===>
Cleaning for php5-5.2.5

rehash
系統(tǒng)提示,需要添加以上被標(biāo)記顏色到httpd.conf文件。
先備份httpd.conf文件
Shell:
cd /usr/local/etc/apache22/
cp httpd.conf httpd.conf.bak
編輯httpd.conf文件
Shell:
vi /usr/local/etc/apache22/httpd.conf
編輯/usr/local/etc/apache22/httpd.conf文件,以使Apache Server支持php

編輯/usr/local/etc/apache22/httpd.conf,在AddType application/x-gzip .gz .tgz(大約354)下面添加添加以下內(nèi)容
Editor:
index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

修改前:

# probably should define those extensions to indicate media types:

#

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

修改后:

# probably should define those extensions to indicate media types:

#

AddType application/x-compress .Z

AddType application/x-gzip .gz .tgz

AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps

先不要退出,添加'index.php' 'DirectoryIndex' 主目錄索引(大約212)

Editor:

DirectoryIndex index.php index.html index.htm

修改前:

#

<IfModule dir_module>

DirectoryIndex index.html

</IfModule>


#

修改后:

#

<IfModule dir_module>

DirectoryIndex index.php index.html index.htm

</IfModule>

#
保存退出后。

[ 本帖最后由 freemongolia 于 2007-11-29 13:36 編輯 ]
作者: freemongolia    時(shí)間: 2007-11-29 13:37

Installation of the PHP5-Extensions:
跟隨下面步驟安裝 PHP5-Extensions.
使用Ports方式安裝PHP5-extensions,進(jìn)入PHP5-extensions所在的Ports安裝目錄/usr/ports/lang/php5-extensions目錄,執(zhí)行make install clean進(jìn)行安裝。
Shell:
whereis php5-extensions
php5-extensions: /usr/ports/lang/php5-extensions
cd /usr/ports/lang/php5-extensions/
make install clean
安裝時(shí),會(huì)要求進(jìn)行php5-extensions選項(xiàng)設(shè)定,這里選擇如下
Options for php5-extensions 1.0
[X]
MYSQL
MySQL database support
[X]
PCRE
Perl Compatible Regular Expression support
[X]
POSIX
POSIX-like functions
[X]
SESSION
session support
安裝完成后,輸入rehash命令刷新

Shell:
===>
Cleaning for php5-posix-5.2.5

===>
Cleaning for php5-session-5.2.5

===>
Cleaning for php5-extensions-1.1

rehash
復(fù)制/usr/local/etc/php.ini-dist/usr/local/etc/php.ini
Shell:
cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini
重新啟動(dòng)Web Server
Execute the following command to start / restart the Apache webserver.
Shell:
/usr/local/etc/rc.d/apache22 restart
/usr/local/www/apache22/data/目錄下建立一個(gè)test.php文件進(jìn)行php測試
建立的test.php文件內(nèi)容如下
Shell:
vi /usr/local/www/apache22/data/test.php

Editor:
<?
phpinfo();
?>
用瀏覽器打開http://yourip/test.php如顯示信息,證明php工作正常。

作者: freemongolia    時(shí)間: 2007-11-29 13:38

Step 4 Installation Pure-FTPd.


Installation of the Pure-FTPd:
跟隨下面步驟安裝 Pure-FTPd
使用Ports方式安裝Pure-FTPdPorts安裝目錄/usr/ports/www/apache22目錄,執(zhí)行make install clean進(jìn)行安裝。
Shell:
whereis pure-ftpd
pure-ftpd: /usr/ports/ftp/pure-ftpd
cd /usr/ports/ftp/pure-ftpd/
make with_language=simplified-chinese install

安裝時(shí),會(huì)要求進(jìn)行php5選項(xiàng)設(shè)定,這里選擇如下
Options for pure-ftpd 1.0.21_1
[X]
MYSQL
Support for users in MySQL database
[X]
PRIVSEP
Enable privilege separation
[X]
PERUSERLIMITS
Per-user concurrency limits
[X]
THROTTLING
Bandwidth throttling
[X]
BANNER
Show pure-ftpd welcome upon session start
[X]
UTF8
Support for charset conversion (expreimental)
安裝完成后,輸入rehash命令刷新
Shell:
===>
Compressing manual pages for pure-ftpd-1.0.21_1

===>
Registering installation for pure-ftpd-1.0.21_1

rehash
系統(tǒng)提示,需要添加pureftpd_enable=”YES”/etc/rc.conf文件。
(具體信息可以查看cat cat /usr/local/etc/rc.d/pure-ftpd會(huì)有詳細(xì)說明)
Shell:
vi /etc/rc.conf
添加以下內(nèi)容
Editor:
#Pure-FTPd
pureftpd_enable="YES"
保存退出。

作者: freemongolia    時(shí)間: 2007-11-29 13:38

Step 5 Creating a MySQL Database.


Creating a MySQL Database:
跟隨下面步驟創(chuàng)建一個(gè)MySQL數(shù)據(jù)庫
登陸http://machiel.generaal.net/files/pureftpd/v2.x/script.mysql網(wǎng)站下載script.mysql腳本文件。
Shell:
cd /root/
fetch "http://machiel.generaal.net/files/pureftpd/v2.x/script.mysql"

使用下載的MySQL腳本文件,建立一個(gè)數(shù)據(jù)庫
Shell:
mysql -u root -p < /root/script.mysql
Enter password:此處輸入你的MySQL密碼

至此數(shù)據(jù)庫創(chuàng)建完成。
數(shù)據(jù)內(nèi)容:創(chuàng)建一個(gè)數(shù)據(jù)庫Database:tpusers,Login = ftp Password = tmppasswd ,管理權(quán)限用戶名是:Administrator密碼:tmppasswd(采用MD5加密)

作者: freemongolia    時(shí)間: 2007-11-29 13:39

Step 6 Configuration of PureFTPd.


Configuration of PureFTPd:
跟隨下面步驟進(jìn)行Pure-FTPd配置
1、配置pure-ftpd.conf
配置pure-ftpd.conf文件
復(fù)制/usr/local/etc/pure-ftpd.conf.samplepure-ftpd.conf
Shell:
cd /usr/local/etc/
cp /usr/local/etc/pure-ftpd.conf.sample /usr/local/etc/pure-ftpd.conf

編輯pure-ftpd.conf 文件MySQLConfigFile位置(大約116)
編輯pure-ftpd.conf 文件CreateHomeDir (大約3366)
Shell:
vi /usr/local/etc/pure-ftpd.conf


Editor:
MySQLConfigFile          /usr/local/etc/pureftpd-mysql.conf
CreateHomeDir           yes


修改前:

# MySQL configuration file (see README.MySQL)

# MySQLConfigFile                   /etc/pureftpd-mysql.conf


# Automatically create home directories if they are missing

#CreateHomeDir                      yes


修改后:

# MySQL configuration file (see README.MySQL)

MySQLConfigFile                      /usr/local/etc/pureftpd-mysql.conf


# Automatically create home directories if they are missing

CreateHomeDir                                  yes

保存退出后。

2、配置pureftpd-mysql.conf
http://machiel.generaal.net/files/pureftpd/v2.x/pureftpd-mysql.conf網(wǎng)站下載,pureftpd-mysql.conf文件
Shell:
cd /usr/local/etc/
fetch http://machiel.generaal.net/files/pureftpd/v2.x/pureftpd-mysql.conf

啟動(dòng)PurtFTPd
Shell:
/usr/local/etc/rc.d/pure-ftpd start



[ 本帖最后由 freemongolia 于 2007-11-29 13:41 編輯 ]
作者: freemongolia    時(shí)間: 2007-11-29 13:41

Step 7 User manager for PureFTPd.


Installation User manager of the PureFTPd:
跟隨下面步驟安裝 PureFTPd管理程序.
使用Ports方式安裝User manager of the PureFTPd,進(jìn)入User manager of the PureFTPd所在的Ports安裝目錄cd /usr/ports/www/usermanager/執(zhí)行make install clean進(jìn)行安裝。
Shell:
whereis usermanager
usermanager: /usr/ports/www/usermanager
cd /usr/ports/www/usermanager/
make install clean
安裝完成后,輸入rehash命令刷新
Shell:
*****************************************************************
Please check /usr/local/www/data/UserManager/readme.txt
To use this manager, you will need to compile your
Pure-FTPd with -DWITH_MYSQL
*****************************************************************
'User manager for PureFTPd' is made by M.Mastenbroek 2002 - 2005
For more info look at http://machiel.generaal.net
Version 2.1
Installation:
Run the installation wizard install.php in your web browser.
The installation wizard will lead you step by step
through the configuration of the User manager for PureFTPd.
Running:
The User manager for PureFTPd starts from the index.php file.
*****************************************************************
rehash
系統(tǒng)提示,需要使用瀏覽器打開install.php進(jìn)行安裝。
編輯/usr/local/etc/apache22/httpd.conf文件,添加虛擬目錄
Shell:
cp /usr/local/etc/apache22/httpd.conf /usr/local/etc/apache22/httpd.conf.bak
vi /usr/local/etc/apache22/httpd.conf
添加以下內(nèi)容
Editor:
Alias /ftp "/usr/local/www/data/UserManager/"
<Directory "/usr/local/www/data/UserManager">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
保存退出。
作者: freemongolia    時(shí)間: 2007-11-29 13:43
使用瀏覽器打開http://youripadderss/ftp/install.php
根據(jù)向?qū)нM(jìn)行安裝設(shè)定,語言選擇中文,并且更改管理員密碼。最后記得刪除install.php文件
完成后打開http://youripadderss/ftp/index.php登陸錄后臺(tái)設(shè)置頁面,進(jìn)行新增用戶操作。
Configuration 'User manager for PureFTPd'
Step [1 - 7]
 
 
 
 
This configuration script has carried out a few checks to see if everything is ready to start the configuration.
 
Checking if config.php exists
OK!
 
Checking if config.php is writable
OK!
 
Checking if PHP Extension MYSQL is enabled
OK!
 
Checking if PHP Extension PCRE is enabled
OK!
 
Checking if PHP Extension POSIX is enabled
OK!
 
Checking if PHP Extension SESSION is enabled
OK!
 
 
Please choose your configuration type:.選擇New installation,create a new database.
Step [3 - 7]輸入正確的root用戶和root的密碼。
Settings MySQL database.直接按默認(rèn)設(shè)置(要是你改過密碼,就輸入你的密碼)
Step [4 - 7]語言選擇中文,選擇Quota support,Ratio support(上傳下載比可以選擇或不選擇)Save按鈕保存配置文件,然后點(diǎn)Setp5進(jìn)行下一步。
Step [5 - 7]這里你可以更改管理員Administator的密碼,也可以創(chuàng)建一個(gè)自己的帳號(hào)代替Administrator
Step [6 - 7]系統(tǒng)有一些提示,說需要編輯那2個(gè)配置文件,因?yàn)榍懊嬉呀?jīng)編輯過了。所以直接下一步。
Step [7 - 7]恭喜你安裝完成了。建議把install.php文件更改一下名稱。
作者: freemongolia    時(shí)間: 2007-11-29 13:43
管理介面
PureFTPd 帳號(hào)管理
按此以新增帳號(hào)
帳號(hào)
UID
GID
家目錄
上傳頻寬(KB/s)
下載頻寬(KB/s)
設(shè)定
ftpuser1
65534
31
/www/ftp/ftpuser1
75
75
帳號(hào)

啟用
密碼
再次確認(rèn)密碼
UID
nobody
GID
guest
家目錄
/www/ftp
上傳頻寬(KB/s)
80
配額檔案數(shù)量
下載頻寬(KB/s)
5
配額空間大小(MB)
上下傳比 [:]
0:0
IP 位址
*
備註



作者: freemongolia    時(shí)間: 2007-11-29 13:44

Step 8 寫在最后.


User manager for PureFTPd后臺(tái)管理程序,創(chuàng)建用戶時(shí)需要手動(dòng)指定FTP用戶主目錄。所以建立FTP用戶時(shí),需要先建立用戶的FTP目錄,并設(shè)置目錄屬性為nobody:guest
例如:建立一個(gè)用戶名為sunny的用戶,主目錄為/home/ftp/sunny
Shell:
mkdir -p /home/ftp/demo
chown nobody:guest demo

查看用戶在線狀態(tài)
通過'pure-ftpwho命令,查看在線用戶狀態(tài)。在/usr/local/www/apache22/cgi-bin目錄下建立一個(gè)ftpstatus.c文件
Shell:
vi /usr/local/www/apache22/cgi-bin/ftpstatus.c
內(nèi)容如下:
Editor:
#include <stdlib.h>

int main(int argc, char *argv[])

{


system("/usr/local/sbin/pure-ftpwho -H -w");



return 0;

}
進(jìn)行編譯
Shell:
cc -Wall -o ftpstatus ftpstatus.c
chmod 755 ftpstatus
chmod ug+s ftpstatus
使用瀏覽器訪問http://youripaddress.com/cgi-bin/ftpstatus查看在線FTP用戶狀態(tài)
Pure-FTPd server status
PID
Account
Time
State
File name
Remote host
Kbytes
Local host
11692
sunny
00:01
UL
file.iso
192.168.0.8
5248 (79 KB/s)
192.168.0.88:21

作者: freemongolia    時(shí)間: 2007-11-29 13:45

Step 9 F.A.Q.




Links to other sources


FreeBSD6.2
http://www.freebsd.org/
Apache Software
http://www.apache.org/
MySQL Server
http://www.mysql.com/

PHP: Hypertext Preprocessorhttp://www.php.net/

pureftpd-mysql.conf & script.mysql
http://machiel.generaal.net

User manager for PureFTPd
http://machiel.generaal.net/index.php?subject=user_manager_pureftpd&button=download
作者: qdmacat    時(shí)間: 2007-11-29 14:01
樓主真厚道!!真不錯(cuò),支持.
作者: huzi1986    時(shí)間: 2007-11-29 14:17
試一下。
作者: 劍心通明    時(shí)間: 2007-11-29 15:04
不錯(cuò),樓主把文檔發(fā)我吧,我轉(zhuǎn)到bsdlover上
作者: G00GLE    時(shí)間: 2007-11-29 15:15
好文檔,感謝樓主共享的精神
作者: freemongolia    時(shí)間: 2007-11-29 15:17
原帖由 劍心通明 于 2007-11-29 15:04 發(fā)表
不錯(cuò),樓主把文檔發(fā)我吧,我轉(zhuǎn)到bsdlover上

--------------------------------------------------------------
發(fā)在bsdlover上了,待審核。呵呵。
作者: 大俠卡卡    時(shí)間: 2007-11-29 16:26
支持樓主。□r花送你!學(xué)習(xí)了..
作者: 小丑人間    時(shí)間: 2007-11-29 18:14
不頂不行了
作者: tecer    時(shí)間: 2007-11-29 18:52
提示: 作者被禁止或刪除 內(nèi)容自動(dòng)屏蔽
作者: 小丑人間    時(shí)間: 2007-11-30 19:00
我按你上面裝的。都裝好了。賬號(hào)管理后臺(tái)可以訪問了。
PureFTPd 也啟動(dòng)了。
  現(xiàn)在就是賬號(hào)不知道怎么用。搞什么登陸。
Step 8 寫在最后.


User manager for PureFTPd后臺(tái)管理程序,創(chuàng)建用戶時(shí)需要手動(dòng)指定FTP用戶主目錄。所以建立FTP用戶時(shí),需要先建立用戶的FTP目錄,并設(shè)置目錄屬性為nobody:guest
例如:建立一個(gè)用戶名為sunny的用戶,主目錄為/home/ftp/sunny
Shell:
mkdir -p /home/ftp/demo
chown nobody:guest demo

能說清楚點(diǎn)嗎?
有點(diǎn)理解不了。

能搞到這里來我太激動(dòng)了 謝謝啊。。祝我成功啊
作者: freemongolia    時(shí)間: 2007-12-01 12:29
原帖由 小丑人間 于 2007-11-30 19:00 發(fā)表
我按你上面裝的。都裝好了。賬號(hào)管理后臺(tái)可以訪問了。
PureFTPd 也啟動(dòng)了。
  現(xiàn)在就是賬號(hào)不知道怎么用。搞什么登陸。
Step 8 寫在最后.


User manager for PureFTPd后臺(tái)管理程序,創(chuàng)建用戶時(shí)需要手動(dòng) ...


1、帳號(hào)管理問題如果你都可以后臺(tái)管理登陸了,那直接在管理介面12樓那個(gè)里新增帳號(hào)就可以啦。(想給張三用。那就建立一個(gè)帳號(hào)叫張三,并且把密碼設(shè)置好),人家就可以用你給的帳號(hào),登陸FTP上傳下載文件啦。

2、需要用root手工建立一個(gè)目錄,給你建立的FTP用戶用,然后改變權(quán)限。比如說你公司有10個(gè)人要單獨(dú)使用FTP,你不會(huì)全讓他們把文件放在一個(gè)目錄吧。那沒有隱私了不是?哪里不明白,仔細(xì)看一下貼子就明白了。要是上網(wǎng)不方便,就請(qǐng)下載那個(gè)PDF文件。
作者: 木木楚    時(shí)間: 2007-12-03 21:49
支持下載了...看看了.哈哈...
作者: 2599qiang    時(shí)間: 2007-12-03 21:59
最好在把自動(dòng)增加APACHE虛擬主機(jī)和MYSQL用戶帳戶的SHELL寫出來。。。。。嘿嘿。。一個(gè)完整的商業(yè)化的虛擬主機(jī)就可以賣錢了。。。這個(gè)SHELL寫的人性化的話。。價(jià)值就不非了。。。
作者: Grrrr    時(shí)間: 2007-12-04 08:58
這樣的東西,不頂就不是中國人啊。
作者: liwei6998    時(shí)間: 2007-12-05 10:12
太棒了,這種資料真是難得,支持!。
作者: powerv_cu    時(shí)間: 2007-12-16 02:54
太好了。強(qiáng)烈支持。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。!
作者: shzxxx    時(shí)間: 2008-01-19 01:07
寫的狠棒
作者: letmec    時(shí)間: 2008-05-21 11:04
使用瀏覽器訪問http://youripaddress.com/cgi-bin/ftpstatus查看在線FTP用戶狀態(tài)

到這的時(shí)候?yàn)g覽器出現(xiàn)500 錯(cuò)誤 是怎么回事?

[ 本帖最后由 letmec 于 2008-5-22 08:28 編輯 ]
作者: hy0kl    時(shí)間: 2008-05-21 13:15
強(qiáng)就一個(gè)字.

頂 + 收藏 + 實(shí)踐.
作者: hy0kl    時(shí)間: 2008-05-29 08:59
[question]
昨天在更新了 ports 樹后再來安裝 php5,發(fā)現(xiàn)經(jīng)典錯(cuò)誤又出現(xiàn)了.

=> port manually into /usr/ports/distfiles/gnome2 and try again.
*** Error code 1

Stop in /usr/ports/devel/pkg-config.
*** Error code 1

Stop in /usr/ports/devel/pkg-config.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.


# cd /usr/ports/lang/php5/
# make config
++++++++++
[X] APACHE Build Apache module
[X] MULTIBYTE Enable zend multibyte support
+++++++++
# make install clean

之后我手工加入 WITHOUT_X11=yes 還是編譯不過.

# uname -a
FreeBSD www.FreeBSD7.org 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

# make showconfig
===> The following configuration options are available for php5-5.2.6:
     CLI=off "Build CLI version"
     CGI=off "Build CGI version"
     APACHE=on "Build Apache module"
     DEBUG=off "Enable debug"
     SUHOSIN=off "Enable Suhosin protection system (not for jails)"
     MULTIBYTE=on "Enable zend multibyte support"
     IPV6=off "Enable ipv6 support"
     MAILHEAD=off "Enable mail header patch"
     REDIRECT=off "Enable force-cgi-redirect support (CGI only)"
     DISCARD=off "Enable discard-path support (CGI only)"
     FASTCGI=off "Enable fastcgi support (CGI only)"
     PATHINFO=off "Enable path-info-check support (CGI only)"
===> Use 'make config' to modify these settings

[ 本帖最后由 hy0kl 于 2008-5-29 09:06 編輯 ]
作者: jackerzhang23    時(shí)間: 2008-07-19 00:36
安裝完畢~~謝謝樓主無私的分享!學(xué)習(xí)之用!再次感謝幫助過的我大師們~FTP我以架設(shè)完成,現(xiàn)在就是Discuz了~命令還要努力學(xué)習(xí)下!
作者: tecer    時(shí)間: 2008-07-19 07:34
提示: 作者被禁止或刪除 內(nèi)容自動(dòng)屏蔽
作者: wcxgo    時(shí)間: 2008-07-19 10:23
標(biāo)題: 太好了
好東西啊樓主啊你真是太好了我現(xiàn)在試試希望能成功
作者: shayoulala    時(shí)間: 2008-07-19 12:26
占位 跟蹤`
作者: ChestHair    時(shí)間: 2008-12-28 00:27

作者: tud_522    時(shí)間: 2009-02-10 11:32
標(biāo)題: 回復(fù) #11 freemongolia 的帖子
菜鳥的福。。!
作者: vfateLinux    時(shí)間: 2009-12-16 16:35
貼了這么多,我看的都?jí)蚶鄣摹O氡貥侵饕操N的很辛苦啊,樓主的奉獻(xiàn)精神實(shí)在讓人佩服啊。五體投地,,,,
作者: dooros    時(shí)間: 2009-12-28 15:45
記錄下,找了好久。。。
作者: miladuo    時(shí)間: 2010-01-06 10:51
這篇文章真是好文章,看起來很詳細(xì),學(xué)習(xí)學(xué)習(xí)。
作者: soul_walker    時(shí)間: 2011-02-10 10:29
好文 值得收藏 向樓主致敬
作者: justzhi    時(shí)間: 2011-03-25 19:26
強(qiáng)烈支持 淚流滿面啊




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2