ラベル wget の投稿を表示しています。 すべての投稿を表示
ラベル wget の投稿を表示しています。 すべての投稿を表示

2013年10月24日木曜日

wgetを用いたディレクトリが公開されているサイトのデータの一括ダウンロード

wgetを用いた一括ダウンロード
以下、http://yourdesirehost/desiredirectory/内のpng画像のみ一括ダウンロードする場合。

wget  -Apng -w 1 -i http://yourdesirehost/desiredirectory/ -P /Volumes/Macintosh\ HD/Users/yourname/Desktop/downloads/

-A拡張子:ダウンロードしたいファイル拡張子
-wインターバル:ダウンロードインターバル
-i ファイルパス: ダウンロード対象のファイルパス/ディレクトリパス
-P 保存先:ダウンロード保存先パス

参考:
http://tech.bayashi.net/svr/doc/wget.html

2007年12月20日木曜日

サーバー各種アプリケーションインストール

サーバー各種アプリケーションインストール(基本上から順番にインストール)
サーバー:FreeBSD5.4

Proftpd(1.3.x)
http://www.proftpd.org/
./configure --prefix=/usr/local/proftpd
make
make install

wget(1.9)
http://wget.addictivecode.org/
./configure --prefix=/usr/local/wget1.9
make
make install

Perl(5.8系)
http://www.perl.org/get.html
./configure --prefix=/usr/local/perl5.8
make
make install

OpenSSL(1.0.0)
http://www.openssl.org/source/
./config --prefix=/usr/local/openssl1.0.0 shared
make
make install

Net_SSLeay(1.85)*
http://search.cpan.org/dist/Net_SSLeay.pm/
./Makefile.PL

MySQL(5.1.54)*
http://dev.mysql.com/downloads/
./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-extra-charaset=all --with-mysql-user=mysql --without-bench --localstatedir=/home/mysql/data
make
make install

Apache(2.0.x)
http://httpd.apache.org/download.cgi
./configure --prefix=/usr/local/apache2 --enable-module=so --enable-openssl --with-openssl=/usr/local/openssl1.0.0
make
make install

(各種コンパイルにアップデートが必要な可能性のあるツール)
libiconv
http://www.gnu.org/software/libiconv/
./configure --prefix=/usr/local/libiconv
make
make install

libxml
http://xmlsoft.org/downloads.html
./configure --prefix=/usr/local/libxml
make
make install

(GD関連)
libgif*
http://sourceforge.net/projects/giflib/
./configure --prefix=/usr/local/libgif
make
make install

zlib(libpng使用に必要)
http://www.zlib.net/
./configure --prefix=/usr/local/zlib
make
make install

libpng
http://www.libpng.org/pub/png/libpng.html
./configure --prefix=/usr/local/libpng
make
make install

(configureがうまくいかない場合)
cp cripts/makefile.linux Makefile
make
make install

libjpeg
http://www.ijg.org/
./configure --prefix=/usr/local/libjpeg --enable-shared
make
make install

gd
http://www.libgd.org/Downloads
./configure --prefix=/usr/local/lib/gd
make
make install

PHP5.2.5
http://www.php.net/
./configure
--prefix=/usr/local/php5.2.5
--enable-mbstring
--with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql
--with-gd=/usr/local/gd
--with-iconv=/usr/local/libiconv
--with-jpeg-dir=/usr/local/libjpeg
--with-png-dir=/usr/local/png
--with-libxml-dir=/usr/local/libxml
--with-zlib-dir=/usr/local/zlib
--with-openssl=/usr/local/openssl1.0.0
make
make install

※Apache2.2系では、PHP5をインストール後、/usr/local/apache2.2/mime.typesをviで開き、
application/x-httpd-php php
のmimetype設定の追加が必要。(httpd.conf内のモジュール設定は自動的に行われる。)

※proftppd1.3系は標準でftpからのchmodを許可するにはproftpd.conf内の

AllowAll

などとする。

※proftpdでユーザディレクトリ下を不可視にするにはproftpd.conf内
DocumentRoot ~
を有効にする。

参考:http://centos.i-recording.net/php_configure_help.html