約 2,919,158 件
https://w.atwiki.jp/pontack/pages/17.html
#norelated Apacheのこと 基本的に備忘録として使います。 ほとんど更新はありませんのでご了承ください。 ソースからインストール(のメモ) apacheのサイトからソースを頂きます。 今回頂いたのは、httpd-2.2.8.tar.gz です。 インストール先を/opt/apacheとする前提でコンパイルします。 展開 # tar zxvf httpd-2.2.8.tar.gz aprのコンパイル&インストール # cd httpd-2.2.8/srclib/apr # ./configure --prefix=/opt/apache/apr-httpd/ # make make install apr-utilのコンパイル&インストール # cd httpd-2.2.8/srclib/apr-util # ./configure --prefix=/opt/apache/apr-util-httpd/ --with-apr=/opt/apache/apr-httpd/ # make make install 本体のコンパイル&インストール ありとあらゆるものインストールしています。 # cd httpd-2.2.8 # ./configure --prefix=/opt/apache --enable-rule=SHARED_CORE --enable-module=so \ # --enable-module=most --enable-access=shared --enable-auth=shared --enable-auth_anon=shared \ # --enable-auth_dbm=shared --enable-auth_digest=shared --enable-include=shared \ # --enable-log_config=shared --enable-env=shared --enable-mime_magic=shared \ # --enable-cern_meta=shared --enable-expires=shared --enable-deflate=shared \ # --enable-headers=shared --enable-usertrack=shared --enable-setenvif=shared \ # --enable-mime=shared --enable-dav=shared --enable-status=shared \ # --enable-autoindex=shared --enable-asis=shared --enable-info=shared \ # --enable-dav_fs=shared --enable-vhost_alias=shared --enable-negotiation=shared \ # --enable-dir=shared --enable-imap=shared --enable-actions=shared \ # --enable-speling=shared --enable-userdir=shared --enable-alias=shared \ # --enable-rewrite=shared --enable-proxy=shared --enable-proxy_ftp=shared \ # --enable-proxy_http=shared --enable-proxy_connect=shared --enable-cache=shared \ # --enable-suexec=shared --enable-disk_cache=shared --enable-file_cache=shared \ # --enable-mem_cache=shared --enable-cgi=shared --enable-proxy_balancer=shared \ # --enable-proxy_ajp=shared --enable-ssl=shared --enable-shared=max \ # --with-apr=/opt/apache/apr-httpd --with-apr-util=/opt/apache/apr-util-httpd # make make install 権限変更 # chown -R apache apache /opt/apache サービス起動 OS起動時にApacheが自動起動するように設定します。 /etc/init.d/httpd #!/bin/bash # # httpd Startup script for the Apache HTTP Server # # chkconfig - 85 15 # description Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname httpd # config /opt/apache/conf/httpd.conf # pidfile /opt/apache/logs/httpd.pid # Source function library. . /etc/rc.d/init.d/functions # Start httpd in the C locale by default. HTTPD_LANG=${HTTPD_LANG-"C"} # This will prevent initlog from swallowing up a pass-phrase prompt if # mod_ssl needs a pass-phrase from the user. INITLOG_ARGS="" # Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server # with the thread-based "worker" MPM; BE WARNED that some modules may not # work correctly with a thread-based MPM; notably PHP will refuse to start. # Path to the apachectl script, server binary, and short-form for messages. apachectl=/opt/apache/bin/apachectl httpd=${HTTPD-/opt/apache/bin/httpd} prog=httpd pidfile=${PIDFILE-/opt/apache/logs/httpd.pid} lockfile=${LOCKFILE-/opt/apache/logs/httpd.lock} RETVAL=0 # check for 1.3 configuration check13 () { CONFFILE=/opt/apache/conf/httpd.conf GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|" GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|" GONE="${GONE}AccessConfig|ResourceConfig)" if LANG=C grep -Eiq "^[[ space ]]*($GONE)" $CONFFILE; then echo echo 1 2 " Apache 1.3 configuration directives found" echo 1 2 " please read /usr/share/doc/httpd-2.0.52/migration.html" failure "Apache 1.3 config directives test" echo exit 1 fi } # The semantics of these two functions differ from the way apachectl does # things -- attempting to start while running is a failure, and shutdown # when not running is also a failure. So we just do it the way init scripts # are expected to behave here. start() { check13 || exit 1 #LANG=$HTTPD_LANG daemon $apachectl start $apachectl start RETVAL=$? [ $RETVAL = 0 ] touch ${lockfile} return $RETVAL } stop() { $apachectl stop RETVAL=$? [ $RETVAL = 0 ] rm -f ${lockfile} ${pidfile} } # See how we were called. case "$1" in start) start ;; stop) stop ;; *) echo $"Usage $prog {start|stop|configtest}" exit 1 esac exit $RETVAL 権限変更 # chmode 755 /etc/init.d/httpd サービス登録 # chkconfig --add httpd # chkconfig httpd on # chkconfig --list httpd 起動停止確認 # service httpd start # service httpd start SSL通信させる(のメモ) OpenSSLの日本語サイトからソースを頂きます。 今回頂いたのは、openssl-0.9.6c.tar.gz です。 インストール先を/opt/opensslとする前提でインストールします。 展開とインストール(認証局をつくるサーバで実施します。) # tar zxvf openssl-0.9.6c.tar.gz # cd openssl-0.9.6c # ./config --prefix=/opt/openssl --openssldir=/opt/openssl/ssl # make # make install 設定ファイルの変更 # vi /opt/openssl/ssl/openssl.cnf #dir = ./demoCA # Where everything is kept ↓基本のディレクトリを変更します。 dir = /opt/openssl/ssl # Where everything is kept #default_days = 365 # how long to certify for ↓認証の有効期間を変更します。(発行した証明書は10年有効) default_days = 3650 # how long to certify for 認証局の準備 # touch /opt/openssl/ssl/index.txt # echo 01 /opt/openssl/ssl/serial # mkdir /opt/openssl/ssl/{server,newcerts} 認証局作成 # cd /opt/openssl/ssl/ # /opt/openssl/bin/openssl req -new -x509 -keyout private/cakey.pem -out cacert.pem -days 7300 証明書の中身確認 # /opt/openssl/bin/openssl x509 -in cacert.pem -text サーバ署名要求書を作る(ここはサーバでやる) サーバ用秘密鍵の作成 # cd /opt/apache/conf/cert # openssl genrsa -out server.key 1024 サーバ用公開鍵の作成 # openssl req -new -key server.key -out server.csr 秘密鍵からパスフレーズを削除 # mv server.key server.key_tmp # openssl rsa -in server.key_tmp -out server.key サーバ証明書を作る(ここは認証局でやる) 上記で作成されたサーバ署名要求書(server.csr)を認証局のサーバに配置する。 下記を実施してサーバ証明書を作成する。 # cd /opt/openssl/ssl/server # /opt/openssl/bin/openssl ca -policy policy_anything -out server.crt -infiles server.csr サーバssl通信確認(ここはサーバでやる)上記で出力した server.crt をサーバの所定の位置に格納する。apacheの設定を行い再起動して確認する。 認証局の証明書をクライアントへインポート作成した認証局の証明書(/opt/openssl/ssl/cacert.pem)をクライアントへインポートする。(cacert.pem → cacert.crt とかに変えて配布する)クライアントは上記のcacert.crtをダブルクリックしてインストールする。 アクセスして問題がないことを確認する。 アクセスログを分ける イメージへのアクセスを分けてみる SetEnvIfNoCase Request_URI "\.(gif)|(jpg)|(png)|(css)$" object-is-image CustomLog "logs/access_log" common CustomLog "logs/access_noimg_log" common env=!object-is-image CustomLog "logs/access_img_log" common env=object-is-image 携帯とPCのアクセス先を変えてみる http //○○/にアクセスしてきたときに 携帯の場合は、/mobile/ へ PCの場合(携帯以外)の場合は、/pc/ へダイレクトする。 また、携帯サイトへは、PCからアクセスさせないようにする。 httpd.conf Include conf/extra/httpd-mobile.conf RewriteEngine on RewriteLog "/opt/apache/logs/rewrite.log" RewriteLogLevel 3 # ← 必要に応じて換える。デフォルトは0 RewriteCond %{HTTP_USER_AGENT} ^KDDI [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Up.Browser [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^J-PHONE [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^vodafone [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SoftBank [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DoCoMo [NC] RewriteRule ^/$ mobile/ [R,L] RewriteEngine on RewriteLog "/opt/apache/logs/rewrite.log" RewriteLogLevel 3 # ← 必要に応じて換える。デフォルトは0 RewriteRule ^/$ pc/ [R] httpd-mobile.conf Location /mobile Options Indexes FollowSymLinks Order deny,allow deny from all #For DoCoMo allow from 210.153.84.0/24 allow from 210.136.161.0/24 ・ ・ ・ここに許可する携帯のゲートウェイを書きまくる。 ・ ・ allow from 61.204.93.0/24 allow from 61.204.94.0/24 allow from 61.204.95.0/24 /Location
https://w.atwiki.jp/estorage/pages/17.html
VMWare-Web開発環境 今回構築するWeb環境 CentOS-5.2 VMWare1.0.6 PHP4.X PHP5.X mojavi2.X Apache/2.2.3(二つ) PostgreSQL PukiWiki1.X Pear PDF samba subversion パッケージソフトからのインストール ソフトウェアの追加/削除からPHP5(PEAR)、Apache2、PostgreSQLをインストール パッケージソフトからのインストールはそんなに悩まずにできるので特に説明なし ラウザで「http localhost」にアクセスしてapacheが起動しているか確認。 apacheのドキュメントルート「/var/www/html」 apacheの設定ファイル「/var/www/html/httpd.conf」 ドキュメントルート直下にtest.phpファイルを置いてphpが動作しているか確認する test.phpのファイル内容 ?php phpinfo(); ? ラウザで「http localhost/test.php」にアクセスしてPHPが起動しているか確認。 PHP4とApaceh(二つ目)を手動で設定する下準備 アプリケーション→ソフトウェアの追加削除 gcc、make、Perlのパッケージをインストール Apacheの設定 任意のフォルダにapacheを解凍「tar zxvf httpd-2.0.63.tar.gz -C /usr/local/src/」 解凍したapacheのフォルダ直下に移動する。 apache2をインストール(configure)すろ時に私の場合は「checking whether to enable mod_deflate... configure error mod_deflate has been requested but can not be built due to prerequisite failures 」とエラーで怒られたので「# yum install zlib-devel」を実行した。 ①「./configure --enable-so --enable-shared --enable-deflate --enable-headers」を実行 ②「./configure --enable-so --enable-shared --with-mpm=worker --enable-headers」を実行 ③「 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-roxen-zts --enable-zend-multibyte --without-mysql --enable-track-vars --enable-mbstring --enable-mbregex」 4「./configure --enable-so --enable-shared --enable-deflate --enable-headers --prefix=/usr/local/src/httpd-2.0.63/」 PHPの設定手順 「tar zxvf php-4.4.9.tar.gz -C /usr/local/src/」 でファイルを解凍する。 Apacheの設定手順 postgresユーザになる「su - postgres」 DBユーザを作成する「createuser -AdPE db_user」 先ほど作成したユーザになる「su - centos」 データベースの作成「createdb --encoding EUC_JP test_db」 先ほど作成したデータベースの確認を行う「psql -l」 作成したデータベースにアクセスする「psql test」 Postgreの設定手順 PDFの設定手順 sambaの設定手順 パッケージの削除方法 不要なパッケージの削除rpm -e httpd-2.2.3-11.el5_1.centos.3 system-config-httpd-1.3.3.3-1.el5 webalizer-2.01_10-30.1.i386 gnome-user-share-0.10-6.el5.i386 →Apacheとそれに依存するパッケージをアンインストールする デフォルトでインストールapacheを確認 rpm -qa | grep httpd apacheをアンインストールする rpm -e dhcp
https://w.atwiki.jp/kojiro/pages/654.html
TABLE
https://w.atwiki.jp/battlestationsmidway/pages/56.html
Subtitles 字幕 Enable/Disable Subtitles 字幕の有効/無効 Camera Shake カメラの振動 Enable/Disable Camera Shake カメラの振動の有効/無効 Water Drops on Camera カメラの水滴 Enable/Disable Water Drops on Camera カメラの水滴の有効/無効 Apply and Save Changes 変更を適用 Reset to Default 初期設定に戻す
https://w.atwiki.jp/monkocho_0514/pages/18.html
マルチテナント ・CDBレベルで管理されるリソース(全DBで共有) ルートコンテナ(CDB$ROOT) ・SYSTEM表領域 ・SYSAUX表領域 ・UNDO表領域 ・REDOログファイル ・制御ファイル シードPDB(PDB$SEED) ・SYSTEM表領域 ・SYSAUX表領域 CDBレベルで管理される操作 PDBで実行可能な操作 マルチテナントアーキテクチャの利点 ・CDBの作成方法の特徴 SQLでCDBを作成する場合 1. enable_pluggable_database パラメータをTRUEに設定したインスタンスを起動 2. ENABLE PLUGGABLE DATABASE句を指定したCREATE DATABASE文を実行 $ cat initcdb3.ora db_create_file_dest= /u01/app/oracle/oradata db_name=cdb3 enable_pluggable_database=true $ export ORACLE_SID=cdb3 $ sqlplus / as sysdba SQL STARTUP MOUNT SQL CREATE DATABASE cdb3 ENABLE PLUGGABLE DATABASE 2 SEED SYSTEM DATAFILES SIZE 150M 3 SYSAUX DATAFILES SIZE 100M; SQL ( catalog.sqlなど実行) ・シードPDBのファイル配置を制御する要素 マルチテナント環境のデータディクショナリビュー CON_ID列(コンテナ番号)にはどんなものがあるか シードPDBのみ表領域を追加する方法 PDBを作成する方法 シードPDBからPDBを作成するとどうなるか 既存PDBをクローニングする場合の注意点 非CDBからPDBの作成はどのように行われるか 接続(プラグ)の条件 PDBの切断(UNPLUG)の注意点 PDBの削除(DROP)の注意点 CDBとPDBへの接続の特徴 PDBにサービスを追加するには PDB名を変更するには PDBの起動、停止方法 PDBの起動の特徴 PDBの自動起動の方法 PDBの停止の特徴 マルチテナントの初期化パラメータ変更はどこに保存されるか PDBでSCOPE=PFILEでパラメータを変更した場合の反映のされ方 PDBに接続してUNDO表領域を作成するとどうなるか マルチテナントの表領域とデータファイルの特徴 マルチテナントのデフォルト表領域、デフォルト永続表領域の特徴 マルチテナントの一時表領域、デフォルト一時表領域の特徴 マルチテナントの表領域のサイズ制限の方法 マルチテナントの共通ユーザ(C##xxx)の特徴 マルチテナントのローカルユーザの特徴 マルチテナントのCONTAINER=ALL句の特徴 マルチテナントのローカル権限と共通権限の特徴 ALTER SESSION SET CONTAINERによるコンテナ切替えの特徴は何か マルチテナントのOracleメタデータの特徴 CDBのバックアップ PDBのバックアップ マルチテナントの表領域のバックアップ マルチテナントのNOARCHIVELOGモード時のバックアップの注意点 マルチテナントのユーザー管理のバックアップ マルチテナントのインスタンス障害はどのレベルに影響するか マルチテナントの一時表領域のリカバリ方法 ルートコンテナのリカバリ方法 PDBの表領域のリカバリ方法 CDBレベルのDBPITR PDBレベルのPDBPITR マルチテナントの表領域レベルのTSPITR CDBのフラッシュバックデータベースはどのように実行されるか フラッシュバックアップ前にデータファイルの移動がある場合はどうなるか
https://w.atwiki.jp/teamarrowhead/pages/4.html
*R-TYPE Table Strategy とは PSP® (PlayStation® Portable)にて発売中のSFシミュレーション、「R-TYPE TACTICS」「R-TYPE TACTICS II」を元にしたボードゲームです。 同人サークル「Taem Arrow-Head」が作成・更新しています。
https://w.atwiki.jp/kagiwada/pages/45.html
ファイヤーウォール設定 OS:CentOS45 まず、linuxのファイヤーウォール(firewall)の種類には 何種類かあるらしい。 なかでも、selinuxの機能を使用するのがもっとも安全しかし 設定が面倒なようです。 ファイアーウォール、ファイヤーウォール、ファイヤウォール ファイアウォールとも言う。 今回設定は、iptablesを使用します。 hosts.allow、hosts.denyの設定は行いません。 参考URL:http //www.rivo.mediatti.net/~okutama/iptables.htm ・/etc/sysconfig/iptablesを編集。 ・iptablesのリブートでしようできました。 vi /etc/sysconfig/iptables ##すべて追記しました。 ##ルール すべての端末を通し、192.168.1.0/24を拒否したい場合 # Generated by iptables-save v1.2.11 on Wed Jan 7 14 04 33 2009 *nat PREROUTING ACCEPT [0 0] POSTROUTING ACCEPT [0 0] OUTPUT ACCEPT [0 0] COMMIT # Completed on Wed Jan 7 14 04 33 2009 # Generated by iptables-save v1.2.11 on Wed Jan 7 14 04 33 2009 *mangle PREROUTING ACCEPT [0 0] INPUT ACCEPT [0 0] FORWARD ACCEPT [0 0] OUTPUT ACCEPT [0 0] POSTROUTING ACCEPT [0 0] COMMIT # Completed on Wed Jan 7 14 04 33 2009 # Generated by iptables-save v1.2.11 on Wed Jan 7 14 04 33 2009 *filter FORWARD ACCEPT [0 0] INPUT ACCEPT [0 0] OUTPUT ACCEPT [0 0] # TEST FILLETER ここが肝!! -A INPUT -s 192.168.1.0/255.255.255.0 -j REJECT COMMIT # Completed on Wed Jan 7 14 04 33 2009 ・/etc/sysconfig/iptablesを編集。 ・iptablesのリブートでしようできました。 ##すべて追記しました。 ##SSHとIDENT以外の外部インターフェースへの接続を遮断する # Completed on Wed Jan 7 13 54 27 2009 # Generated by iptables-save v1.2.11 on Wed Jan 7 13 54 27 2009 *filter FORWARD ACCEPT [0 0] INPUT DROP [0 0] OUTPUT ACCEPT [0 0] # Accept traffic from internal interfaces -A INPUT ! -i eth0 -j ACCEPT # Accept traffic with the ACK flag set -A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT # Allow incoming data that is part of a connection we established -A INPUT -m state --state ESTABLISHED -j ACCEPT # Allow data that is related to existing connections -A INPUT -m state --state RELATED -j ACCEPT # Accept responses to DNS queries -A INPUT -p udp -m udp --dport 1024 65535 --sport 53 -j ACCEPT # Accept responses to our pings -A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT # Accept notifications of unreachable hosts -A INPUT -p icmp -m icmp --icmp-type destination-unreachable -j ACCEPT # Accept notifications to reduce sending speed -A INPUT -p icmp -m icmp --icmp-type source-quench -j ACCEPT # Accept notifications of lost packets -A INPUT -p icmp -m icmp --icmp-type time-exceeded -j ACCEPT # Accept notifications of protocol problems -A INPUT -p icmp -m icmp --icmp-type parameter-problem -j ACCEPT # Allow connections to our SSH server -A INPUT -p tcp -m tcp --dport ssh -j ACCEPT # Allow connections to our IDENT server -A INPUT -p tcp -m tcp --dport auth -j ACCEPT COMMIT # Completed on Wed Jan 7 13 54 27 2009 reboot方法 /etc/init.d/iptables restart アクセス数| - | 名前 コメント
https://w.atwiki.jp/mynote/pages/88.html
Tesseract(テッセラクト) インストール Macの場合 Macportでインストール $sudo port install tesseract さくらサーバーの場合 Leptonicaのインストール wgetでダウンロード $wget http //leptonica.org/source/leptonica-1.68.tar.gz tar xvf leptonica-1.xx.tar.gz ./configure --prefix=/home/XXX/local/bin make make install tessractのインストール ./configure --prefix=/home/epushi/local/bin CPPFLAGS="-I/home/epushi/local/bin/include" LDFLAGS="-L/home/epushi/local/lib" LIBLEPT_HEADERSDIR="/home/epushi/local/include" Link http //hints.macworld.com/article.php?story=2010021805585497 https //trac.macports.org/ticket/32075 macportsとhomebrewまとめろ http //tech.caph.jp/2011/04/06/homebrew%E3%81%AE%E5%B0%8E%E5%85%A5%E3%81%A8%E4%BD%BF%E3%81%84%E6%96%B9/ http //blog.asial.co.jp/371 %./configure --help `configure configures tesseract 3.01 to adapt to many kinds of systems. Usage ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking... messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `.. ] Installation directories --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install will install all the files in `/usr/local/bin , `/usr/local/lib etc. You can specify an installation prefix other than `/usr/local using `--prefix , for instance `--prefix=$HOME . For better control, use the options below. Fine tuning of the installation directories --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/tesseract] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] Program names --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-graphics Enable graphics (ScrollView) (default). --enable-multiple-libraries Enable multiple libraries. --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --disable-largefile omit support for large files Optional Packages --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-extra-includes=DIR Define an additional directory for include files --with-extra-libraries=DIR Define an additional directory for library files --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] Some influential environment variables CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L lib dir if you have libraries in a nonstandard directory lib dir LIBS libraries to pass to the linker, e.g. -l library CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I include dir if you have headers in a nonstandard directory include dir CC C compiler command CFLAGS C compiler flags CPP C preprocessor CXXCPP C++ preprocessor LIBLEPT_HEADERSDIR Leptonica headers directory Use these variables to override the choices made by `configure or to help it to find libraries and programs with nonstandard names/locations. Report bugs to theraysmith@gmail.com .
https://w.atwiki.jp/cineman/pages/11.html
openexrビルド ./configure --enable-osx-universal-binaries --disable-dependency-tracking --enable-imfexamples LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include
https://w.atwiki.jp/it_certification/pages/90.html
目的 構成 検証1 ユニキャストによるneighbor確立 検証2 擬似ブロードキャスト環境 目的 NBMA環境でのOSPFv3設定方法を確認します。 構成 設定概要 各ルータはframe-relayによって接続されています。 link-local addressはEUI-64形式ではなく、明示的に指定します。 構成図 netファイル #ghostios = True #sparsemem = True model = 3660 [localhost] [[3660]] image = C \Program Files\Dynamips\images\c3660-ik9o3s-mz.124-6.T.bin ram = 128 [[ROUTER R1]] s1/0 = SW 1 [[ROUTER R2]] s1/0 = SW 2 [[ROUTER R3]] s1/0 = SW 3 [[FRSW SW]] 1 102 = 2 201 1 103 = 3 301 初期設定 R1 ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ipv6 address 2000 1 1/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80 1 link-local ipv6 address 2000 10 1/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80 2 102 frame-relay map ipv6 FE80 3 103 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end 初期設定 R2 ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 2.2.2.2 255.255.255.255 ipv6 address 2000 2 2/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80 2 link-local ipv6 address 2000 10 2/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80 3 201 frame-relay map ipv6 FE80 1 201 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end 初期設定 R3 ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R3 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! memory-size iomem 5 ! ! ip cef ! ! ! ipv6 unicast-routing ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address 3.3.3.3 255.255.255.255 ipv6 address 2000 3 3/128 ! interface FastEthernet0/0 no ip address shutdown duplex auto speed auto ! interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80 3 link-local ipv6 address 2000 10 3/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80 2 301 frame-relay map ipv6 FE80 1 301 ! interface Serial1/1 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/2 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! interface Serial1/3 no ip address shutdown serial restart-delay 0 no dce-terminal-timing-enable ! ip http server no ip http secure-server ! ! ! ipv6 router ospf 1 log-adjacency-changes redistribute connected ! ! ! ! control-plane ! ! ! ! ! ! ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end 検証1 ユニキャストによるneighbor確立 fram-relayの設定確認 DLCI番号とのマッピングは、link-localアドレスに対して行います。下記の設定例を確認して下さい。 R1#show running-config | begin Serial1/0 interface Serial1/0 no ip address encapsulation frame-relay ipv6 address FE80 1 link-local ipv6 address 2000 10 1/112 ipv6 enable ipv6 ospf 1 area 0 serial restart-delay 0 no dce-terminal-timing-enable frame-relay map ipv6 FE80 2 102 frame-relay map ipv6 FE80 3 103 ! R1# R1# R1#show frame-relay map Serial1/0 (up) ipv6 FE80 2 dlci 102(0x66,0x1860), static, CISCO, status defined, active Serial1/0 (up) ipv6 FE80 3 dlci 103(0x67,0x1870), static, CISCO, status defined, active OSPFの設定 IPv4と同様、ユニキャストによりneighborを確立するよう設定します。 R1(config)#interface Serial 1/0 R1(config-if)#ipv6 ospf neighbor FE80 2 R1(config-if)#ipv6 ospf neighbor FE80 3 R2(config)#interface Serial 1/0 R2(config-if)#ipv6 ospf neighbor FE80 1 R3(config)#interface Serial 1/0 R3(config-if)#ipv6 ospf neighbor FE80 1 neighborの確認 neighborとルーティングテーブルを確認します。 R1#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/DR 00 01 53 6 Serial1/0 2.2.2.2 1 FULL/DROTHER 00 01 32 6 Serial1/0 R1# R1# R1#show ipv6 route IPv6 Routing Table - 7 entries Codes C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external LC 2000 1 1/128 [0/0] via , Loopback0 OE2 2000 2 2/128 [110/20] via FE80 2, Serial1/0 OE2 2000 3 3/128 [110/20] via FE80 3, Serial1/0 C 2000 10 0/112 [0/0] via , Serial1/0 L 2000 10 1/128 [0/0] via , Serial1/0 L FE80 /10 [0/0] via , Null0 L FF00 /8 [0/0] via , Null0 R1# 設定削除 検証2に備え、ユニキャストによるneighbor確立の設定を削除します。 R1(config)#interface Serial 1/0 R1(config-if)#no ipv6 ospf neighbor FE80 2 R1(config-if)#no ipv6 ospf neighbor FE80 3 R2(config)#inter Serial 1/0 R2(config-if)#no ipv6 ospf neighbor FE80 1 R3(config)#interface Serial 1/0 R3(config-if)#no ipv6 ospf neighbor FE80 1 検証2 擬似ブロードキャスト環境 擬似ブロードキャスト環境の設定 frame-relay網内で、擬似的にブロードキャスト, マルチキャストが転送できるよう設定を変更します。 R1(config)#interface Serial 1/0 R1(config-if)#frame-relay map ipv6 FE80 2 102 broadcast R1(config-if)#frame-relay map ipv6 FE80 3 103 broadcast R2(config)#interface Serial 1/0 R2(config-if)#frame-relay map ipv6 FE80 1 201 broadcast R3(config)#interface Serial 1/0 R3(config-if)#frame-relay map ipv6 FE80 1 301 broadcast network typeの変更 マルチキャストによりneighborを確立できるよう、network typeをbroadcastに変更します。 R1(config)#interface Serial 1/0 R1(config-if)#ipv6 ospf network broadcast R2(config)#interface Serial 1/0 R2(config-if)#ipv6 ospf network broadcast R3(config)#interface Serial 1/0 R3(config-if)#ipv6 ospf network broadcast neighborの確認 neighborが確立され、経路が交換されている事を確認します。 R1#show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 3.3.3.3 1 FULL/DR 00 00 38 6 Serial1/0 2.2.2.2 1 FULL/DROTHER 00 00 39 6 Serial1/0 R1# R1# R1#show ipv6 route IPv6 Routing Table - 7 entries Codes C - Connected, L - Local, S - Static, R - RIP, B - BGP U - Per-user Static route I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2 ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2 D - EIGRP, EX - EIGRP external LC 2000 1 1/128 [0/0] via , Loopback0 OE2 2000 2 2/128 [110/20] via FE80 2, Serial1/0 OE2 2000 3 3/128 [110/20] via FE80 3, Serial1/0 C 2000 10 0/112 [0/0] via , Serial1/0 L 2000 10 1/128 [0/0] via , Serial1/0 L FE80 /10 [0/0] via , Null0 L FF00 /8 [0/0] via , Null0 R1#