LinuxからFreeBSDに乗り換えるスレ
■ このスレッドは過去ログ倉庫に格納されています
俺はRedHat9からFreeBSD4に乗り換えたが、いい感じで負荷が減った。 ApacheのWebサーバーね。 特に低スペックな環境でお勧め。 cd /usr/ports/www/opera make install clean ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz [root@freebsd]~# tar -zxvf ports.tar.gz -C /usr/ http://www.soulforged.net/wordpress/?p=35 /usr/ports/ #cd /usr/ports/lang/ruby18 #make install clean #cd /usr/ports/devel/ruby-gems #make install clean #gem update #gem install rails -include-dependencies #gem install mechanize #gem install sqlite3-ruby cd /usr/ports/www/opera make install clean http://mechanize.rubyforge.org/ #!/usr/local/bin/ruby require 'rubygems' require 'mechanize' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.google.com/" ;) search_form = page.forms.with.name("f").first search_form.q = "Hello" search_results = agent.submit(search_form) puts search_results.body http://www.amazon.co.jp/gp/product/4839918945/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz [root@freebsd]~# tar -zxvf ports.tar.gz -C /usr/ http://www.soulforged.net/wordpress/?p=35 /usr/ports/ #cd /usr/ports/lang/ruby18 #make install clean #cd /usr/ports/devel/ruby-gems #make install clean #gem update #gem install rails -include-dependencies #gem install mechanize #gem install sqlite3-ruby cd /usr/ports/www/opera make install clean http://mechanize.rubyforge.org/ #!/usr/local/bin/ruby require 'rubygems' require 'mechanize' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.google.com/" ;) search_form = page.forms.with.name("f").first search_form.q = "Hello" search_results = agent.submit(search_form) puts search_results.body #!/usr/local/bin/ruby -Ke # kwrite require 'rubygems' require 'mechanize' require 'nkf' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.yahoo.co.jp/" ;) puts NKF.nkf("-e",page.body) #search_form = page.forms.with.name("f").first #search_form.q = "Hello" #search_results = agent.submit(search_form) #puts NKF.nkf("-e",search_results.body) http://www.sqlite.org/sqlite-3.3.9.tar.gz tar zxf sqlite-3.3.9.tar.gz cd sqlite-3.3.9 ./configure --prefix=/usr/local/sqlite --enable-utf8 make make install http://bsdsystem.blog40.fc2.com/blog-entry-5.html $ fetch http://www.sqlite.org/sqlite-3.2.7.tar.gz $ tar zxvf sqlite-3.2.7.tar.gz $ cd sqlite-3.2.7 $ ./configure $ make $ su # make install http://www.amazon.co.jp/gp/product/4839918945/ ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz [root@freebsd]~# tar -zxvf ports.tar.gz -C /usr/ http://www.soulforged.net/wordpress/?p=35 /usr/ports/ #cd /usr/ports/lang/ruby18 #make install clean #cd /usr/ports/devel/ruby-gems #make install clean #gem update #gem install rails -include-dependencies #gem install mechanize #gem install sqlite3-ruby cd /usr/ports/www/opera make install clean http://mechanize.rubyforge.org/ #!/usr/local/bin/ruby -Ke # kwrite require 'rubygems' require 'mechanize' require 'nkf' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.yahoo.co.jp/" ;) puts NKF.nkf("-e",page.body) #search_form = page.forms.with.name("f").first #search_form.q = "Hello" #search_results = agent.submit(search_form) #puts NKF.nkf("-e",search_results.body) http://www.sqlite.org/sqlite-3.3.9.tar.gz tar zxf sqlite-3.3.9.tar.gz cd sqlite-3.3.9 ./configure --prefix=/usr/local/sqlite --enable-utf8 make make install http://bsdsystem.blog40.fc2.com/blog-entry-5.html $ fetch http://www.sqlite.org/sqlite-3.2.7.tar.gz $ tar zxvf sqlite-3.2.7.tar.gz $ cd sqlite-3.2.7 $ ./configure $ make $ su # make install http://mizukichi.sblo.jp/article/1349765.html SIGSEGV: 【プログラミング】自宅マシンをFreeBSD-6.1 KDEにしてみた ■Xインストール cd /usr/ports/x11/xorg; make install clean; もしくは pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/xorg-6.9.0.tbz; ■X設定 Xorg -configure; cp /root/Xorg.conf.new /etc/X11/xorg.conf xorgcfg -textmode; 内容は好みもありますので適当に。 ■KDE環境構築 /usr/portsのをmakeしてもいいんですが、ホントにアホみたいに時間かかるのでpackageを使うことをオススメします。 pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/kde-3.5.3.tbz; pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/ja-kde-i18n-3.5.3.tbz; ■日本語環境 SCIM-anthyマンセー cd /usr/ports/japanese/scim-anthy/; make install clean; skimもいいね! pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/skim-1.4.4.tbz vi .xinitrc ----- XMODIFIERS=@im=SCIM ; export XMODIFIERS GTK_IM_MODULE=scim ; export GTK_IM_MODULE QT_IM_MODULE=scim ; export QT_IM_MODULE ----- xinitでX起動後に、 skim -d skimやscimの設定はGUIで行えます。 ■サウンド設定 kldload sound; kldload snd_driver; cat /dev/sndstat; ズラズラと表示されればOKです。 また、再起動後にも有効になるように下記編集を行います。 vi /boot/loader.conf ----- sound_load="YES" snd_driver_load="YES" ----- cd /usr/ports/www/apache22 make install clean apachectl restart cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart apachectl restart FreeBSD ports/www/apache22 でインストールして、 /usr/local/etc/rc.d/apache22.sh 経由で起動する場合は、 /etc/rc.conf に以下のように書くと /sbin/kldload accf_http まで実行してくれるようになっている。 apache22_enable="YES" apache22_http_accept_enable="YES" accf_httpに関する設定 コマンド スクリプトetc/rc.d/apache22.shの設定では、 apache22_http_accept_enable="NO"がデフォルトの設定値に なっていて、そのままでは、accf_http(9)のサポート無しで、 httpdが起動するわけだけど、設定の如何に拘らず、accf_http モジュールがロードされていない場合、脚注*1のようなメッセージが 表示されました。 そもそも、apache22を使いたいと思ったのも、accf_httpがサポート されているというのが主な理由の一つだったので、これは有効にする つもりだけど、jail内では、kldload(8)が使えないと思うので、 事前に、ホスト側で、 # kldload accf_http を実行して、カーネルモジュールを予めロードしておきました。 そして、Apacheをインストールしたjail内の/etc/rc.confに、 apache22_http_accept_enable="YES" の行を追加しました。 また、システム起動時、自動的にaccf_http.koのモジュールをロードしてくれるよう、ホスト環境の/boot/loader.confの方に、 accf_http_load="YES" も加えておきました。 httpreadyがない Apache 2.2.xを起動させると以下のようにwarningが出る場合がある. [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter この場合は以下のようにすればよい. % sudo kldload accf_http.ko 毎回起動した毎に呼び出すのは面倒なので/boot/loader.confに以下を追加. accf_http_load="YES" apache22を使いたいと思ったのも、accf_httpがサポートされているというのが主な理由の一つだったので、これは有効にするつもりだけど、jail内では、kldload(8)が使えないと思うので、事前に、ホスト側で、 # kldload accf_http を実行して、カーネルモジュールを予めロードしておきました。 そして、Apacheをインストールしたjail内の/etc/rc.confに、 apache22_http_accept_enable="YES" の行を追加しました。 また、システム起動時、自動的にaccf_http.koのモジュールをロードしてくれるよう、ホスト環境の/boot/loader.confの方に、 accf_http_load="YES" も加えておきました。 リヌからBSDに乗り換えるメリットって思い付かない。 所謂趣味の範疇だな。 >>72 一行目から二行目の結論を導き出すには、お前が高い技術力、運用力を持つ社会的に認められたエンジニアである必要がある。 お前は本当にそうなのか? linuxがマトモに使い物になるようになったのって、ここ数年という印象があるな あえてlinuxじゃないとダメって、組み込み系とかの用途位しか思いつかん JP1がサポートしているOSは問答無用で却下 っていう会社も多いからなぁ Yahoo! JAPAN様は、200台の ProLiant DL360に FreeBSDを導入、また AlphaServer ES40を全体のログ解析に利用しています。 日本最大のアクセスを誇る総合サイト Yahoo! JAPANを支えるコンパックサーバ で、安定運用しているリヌからBSDに乗り換えるメリットは? 安定してると思ってるんなら無理して乗り換えなくてもいんじゃね? Linux厨は安定していても乗り換えて当たり前だと思ってるから困るね。 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/www/apache-1.3.37_2.tbz pkg_add apache-1.3.37_2.tbz /usr/local/etc/apache /etc/rc.conf /usr/local/etc/rc.d /usr/local/etc/rc.d/apache.sh restart /usr/local/etc/rc.d/apache.sh status 必要を感じない香具師は乗り換えるべきでない。 FreeBSDの方がどんなに優れていようと、合理的な理由がなければ 余計な負担を抱え込むだけだからね。 FreeBSDしか使わない漏れでも、そこまで差があるとは思わん。 たとえLinuxの方がどんなに優れていても、面倒だから使う気には ならないし。 Linuxはドライバサポートや商用アプリケーションがあるのが 良い所だろう。*BSDは伝統のある4.4BSDをルーツとしており、 設計が古いおかげでコードがいい具合に枯れているから、高 負荷下(大昔 --と言ってもほんの十数年前だが-- の常識では サ=バでload averageが1以下なんて贅沢はまずなかった)でも 普通に動くのが良い所。 ReiserFSがフルで使えるようになったらFreeBSDかNetBSDに乗り換えるつもり。 俺的には鯖で使う場合はLinuxよりFreeBSDの方が痒い所に手が届いてると思う。 /etc/rc.conf inetd_enable="YES" 慣れれば15分でできるIMAP導入?(強引に3STEP) IMAP(UW-IMAP)と(ついでに必要な)Postifx,fetchmailを入れてみた ちなみに環境はFreeBSD 6.1Releaseを想定,読み替えればLinuxでも簡単にできると思います STEP 1 : IMAPの導入 cd /usr/ports ; portinstall -P mail/imap-uw でインストール vi等のエディタで /etc/inetd.confを開き #imap 〜〜〜 → imap 〜〜〜 としてコメントを外す. もちろん,/etc/rc.confでは inetd_enable=yes としていること IMAPはこれで起動するけどこのままではいろいろまともに動かない なので /etc/c-client.cf なるファイルを作成し以下の内容を記述 I accept the risk for IMAP toolkit 4.1. set mail-subdirectory IMAP set disable-plaintext 0 set hide-dot-files 1 STEP 2 : Postfixの導入 cd /usr/ports ; portinstall -P mail/postifx でインストール vi等のエディタで/etc/rc.confを開き postfix_enable="YES" とする このままでも起動できるけど,次に述べるfetchmailがこのままでは正常に動作しない なので /usr/local/etc/postfix/main.cf の #alias_maps = hash:/etc/aliases ↓ alias_maps = hash:/etc/aliases にする STEP 3 : fetchmailの導入 cd /usr/ports ; portinstall -P mail/fetchmail 自分のホームディレクトリ直下に.fetchmailrcを作成する 内容は以下のような感じ poll <popサーバのアドレス> protocol pop3 user <popサーバのユーザ名> password <popサーバのパスワード> flush #メール受信後popサーバに置いてあるメールを消去したいとき no mimedecode smtphost localhost is <IMAPで受信するユーザ名> here ---------------------------------------------------------- これだけ設定しておいてあとはcronでも走らせておけば定期的にメールをプロバイダから受けてIMAPサーバのメールとして蓄積していく procmailなんかもやっておけばサーバの時点で迷惑メールをフィルタリングもできるでしょうねー Tags:IMAP メールサーバ 設定 /usr/local/etc/apache /etc/rc.conf /usr/local/etc/rc.d cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart apachectl restart FreeBSD ports/www/apache22 でインストールして、 /usr/local/etc/rc.d/apache22.sh 経由で起動する場合は、 /etc/rc.conf に以下のように書くと /sbin/kldload accf_http まで実行してくれるようになっている。 apache22_enable="YES" apache22_http_accept_enable="YES" /etc/rc.conf inetd_enable="YES" Apache の設定 WWWサーバでもっとも利用されている Apacheは既にIPv6に対応しています。 ここでは、Apache2 を導入してみることにしましょう。 FreeBSDのパッケージ にはwwwカテゴリーにapache-2.0.53 があります。 パッケージを導入すると、 /usr/local/etc/apache2/ 以下に設定ファイルが、 /usr/local/etc/rc.d/apache2.shがサーバのスタートファイルになります。 FreeBSDでは、パッケージから導入したものは全て /usr/local/etc 以下に 設定ファイルがおかれ、スタートスクリプトが /usr/local/etc/rc.d/以下に 置かれるようになっています。 5系列では、現在ではこうして置かれたスクリプト も全て /etc/rc.conf から コントロールするように改められています。実際に、 /usr/local/etc/rc.d/apache2.sh の一部を下に示します。 # # Add the following lines to /etc/rc.conf to enable apache2: # apache2_enable (bool): Set to "NO" by default. # Set it to "YES" to enable apache2 # apache2ssl_enable (bool): Set to "NO" by default. つまり、スクリプトが /etc/rc.conf を読み、apache2_enable が YES でないと動かないようになっているのです(その他の起動時のオプション なども /etc/rc.conf の変数を通じて設定するようになっています)。 従って、Apache2 を動かすためには、/etc/rc.conf に以下の行を追加します。 # /etc/rc.conf の末尾 apache2_enable="YES" 但し、こうした新しい方針に従っていないパッケージでは、まだ、 hoge.sh.sample のように 末尾の .sampleを名前から取り除かないと 使えないタイプがあるので 注意しましょう(FreeBSDでは /usr/local/etc/rc.d/ にあって拡張子が .sh のタイプのスクリプトは 全て起動時に自動的に起動されるようになっています)。 /usr/local/etc/apache2/ の設定ファイルの基本は、httpd.conf です。 Apacheの設定は、ほとんどこのhttpd.conf に設定するだけになっています。 きちんとDNSが立ち上がっていれば、問題なくデフォルトの設定のみで動作する 筈です。 # /usr/local/etc/rc.d/apache2.sh start もし、httpd が立ち上がっていなければ、何らかの設定ミスがあります。 # ps ax |grep httpd (httpd のプロセスが幾つかある筈) コンソールへのエラー出力か、あるいは /var/log/httpd-err.log を見て、 対処 して下さい。httpd が立ち上がらない原因のほとんどは、名前に関する 問題です。 自分自身に与えた名前に対応するIPアドレスが見つからないような 場合、特に IPv6アドレスは設定しても、IPv4アドレスが設定されていない ようなミスに 注意しましょう。 自分自身の名前は、hostname コマンドで分かります。 # hostname dns.s01.wakhok.ac.jp この名前は、起動時に /etc/rc.conf から読み込まれて自動的に設定されます。 # /etc/rc.conf の名前に関する設定 hostname="dns.s01.wakhok.ac.jp" 一時的には、hostname コマンドに引数を与えることで変更も出来ます。 # hostname dns.s01.wakhok.ac.jp /etc/rc.conf sshd_enable=YES /usr/local/etc/apache22 /etc/rc.conf /usr/local/etc/rc.d cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart apachectl restart FreeBSD ports/www/apache22 でインストールして、 /usr/local/etc/rc.d/apache22.sh 経由で起動する場合は、 /etc/rc.conf に以下のように書くと /sbin/kldload accf_http まで実行してくれるようになっている。 apache22_enable="YES" apache22_http_accept_enable="YES" /etc/rc.conf inetd_enable="YES" /usr/local/etc/apache22 /etc/rc.conf /usr/local/etc/rc.d cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart apachectl restart FreeBSD ports/www/apache22 でインストールして、 /usr/local/etc/rc.d/apache22.sh 経由で起動する場合は、 /etc/rc.conf に以下のように書くと /sbin/kldload accf_http まで実行してくれるようになっている。 apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" ServerName www.example.com:80 top ps /usr/local/etc/apache22 /etc/rc.conf /usr/local/etc/rc.d cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart apachectl restart FreeBSD ports/www/apache22 でインストールして、 /usr/local/etc/rc.d/apache22.sh 経由で起動する場合は、 /etc/rc.conf に以下のように書くと /sbin/kldload accf_http まで実行してくれるようになっている。 apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" ServerName www.example.com:80 >>92-102 これは新手の荒らしか? 所々意味が通らないし。 そういえばspamメールの最後にFreeBSD関連のwebから持ってきたと思われる 文書を貼付けた馬鹿がいたなぁ。その程度の事でベイジアンフィルタが騙さ れるのはほんの数日だった :-) /usr/local/sbin/apachectl start /var/log/httpd-error.log (環境によっては /usr/local/apache/logs/error.log) の最後にエラーメッセージがないか確認して下さい。 http://localhost # LoadModule unique_id_module うざい > ID:eGZqoOsF どっかの無料 web スペースにでもまとめて貼っとけば、 喜ぶ奴もいるかもしれないのに。 >>108 はいはい、統治は自分のブログででもやってくださいな。 なんの為にもならない糞みたいな書き込み(しかもage)でスレが埋まってく・・ top ps /usr/local/etc/apache22 /etc/rc.conf /usr/local/etc/rc.d cd /usr/ports/www/apache22 make install clean /usr/local/etc/rc.d/apache22.sh restart /usr/local/sbin/apachectl start /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" ServerName www.example.co.jp:80 [ -z "$apache22_enable" ] && apache22_enable="YES" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="YES" hostname="freebsd.localhost" ifconfig_lnc0="DHCP" keymap="jp.106" moused_enable="YES" usbd_enable="YES" inetd_enable="YES" apache22_enable="YES" http://localhost # LoadModule unique_id_module freebsd# /etc/rc.d/inetd restart cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22 http.conf ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" /usr/local/etc/apache22 [ -z "$apache22_enable" ] && apache22_enable="YES" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/sbin/apachectl status http://localhost cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" /usr/local/etc/apache22 [ -z "$apache22_enable" ] && apache22_enable="YES" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" /usr/local/etc/apache22 [ -z "$apache22_enable" ] && apache22_enable="YES" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" apache22_http_accept_enable="YES" inetd_enable="YES" /usr/local/etc/apache22 [ -z "$apache22_enable" ] && apache22_enable="YES" [ -z "$apache22_http_accept_enable" ] && apache22_http_accept_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" ;> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=Shift_JIS"> <title>タイトル</title> </head> <body> 本文 </body> </html> /usr/local/www/apache22/data /usr/local/www/apache22/data/index.html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd" ;> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=EUC_JP"> <title>タイトル</title> </head> <body> 本文 </body> </html> 7.1.4 CGI # cd /usr/local/apache/cgi-bin/ # chmod +x test-cgi で中のtest-cgiに実行権をつけます。IPアドレス/cgi-bin/test-cgi で動作を確認します。 >> cgi-binディレクトリにあるprintenvとtest-cgiはセキュリティホールとなる可能性があるので、cgi動作確認後は削除して下さい。 ・CGIの設定 <Directory "/usr/local/apache/cgi-bin"> Options None FollowSymLinks ExecCGI </Directory> AddHandler cgi-script .cgi #!/usr/local/bin/ruby print "<html>ruby</html>" #!/usr/local/bin/ruby print "Content-type: text/html\n\n" print "<html>ruby</html>" 一時linuxに変えようと思ったけど、変わったアプリをインストールするとメーカーの試用版だったりする。 ダイアルアップの頃のスケベサイトを思い出してしまった。 com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html Qr4Nh5VB == eGZqoOsF ここまでくりゃ立派な荒らしだ 今からBSDってことは絶対無い。 地上ディジタル放送で十分。 BSDigitalも自動的に見れるから問題ナッシング http://sv-miya.dyndns.org/freebsd/ com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html http://sv-miya.dyndns.org/freebsd/ com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html ls apache* # pkg_add foo-1.2.3.tgz # pkg_delete foo-1.2.3 http://sv-miya.dyndns.org/freebsd/ com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html ls apache* # pkg_add -r apache22 # pkg_add foo-1.2.3.tgz # pkg_delete foo-1.2.3 http://sv-miya.dyndns.org/freebsd/ com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html ls apache* # pkg_add -r apache22 # pkg_add foo-1.2.3.tgz # pkg_delete foo-1.2.3 vi /etc/rc.conf http://sv-miya.dyndns.org/freebsd/ com/2862cz cd /usr/ports/www/apache22 make install clean /usr/local/etc/apache22/http.conf # LoadModule unique_id_module ServerName freebsd.example.co.jp:80 /etc/rc.conf apache22_enable="YES" /usr/local/etc/rc.d/apache22.sh restart /usr/local/etc/rc.d/apache22.sh status /usr/local/sbin/apachectl status http://localhost http://127.0.0.1 top ps whereis apache22 freebsd# /etc/rc.d/inetd restart http://sv-miya.dyndns.org/freebsd/ http://blog.at-dark.jp/pc/2007/01/freebsd.html http://atlas.kek.jp/physics/nyumon/unix-commands.html http://hp.vector.co.jp/authors/VA016670/unix/vi_reference.html http://atlas.kek.jp/physics/nyumon/vi-commands.html ls apache* # pkg_add -r apache22 # pkg_add foo-1.2.3.tgz # pkg_delete foo-1.2.3 vi /etc/rc.conf 'httpready' Accept Filter # kldload accf_http.ko http://www.amazon.co.jp/gp/product/4839918945/ rubygems rubygem FreeBSD ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz [root@freebsd]~# tar -zxvf ports.tar.gz -C /usr/ http://www.soulforged.net/wordpress/?p=35 /usr/ports/ #cd /usr/ports/lang/ruby18 #make install clean #cd /usr/ports/devel/ruby-gems #make install clean #gem update #gem install rails -include-dependencies #gem install mechanize #gem install sqlite3-ruby cd /usr/ports/www/opera make install clean http://mechanize.rubyforge.org/ #!/usr/local/bin/ruby -Ke # kwrite require 'rubygems' require 'mechanize' require 'nkf' agent = WWW::Mechanize.new agent.user_agent_alias = 'Mac Safari' page = agent.get("http://www.yahoo.co.jp/" ;) puts NKF.nkf("-e",page.body) #search_form = page.forms.with.name("f").first #search_form.q = "Hello" #search_results = agent.submit(search_form) #puts NKF.nkf("-e",search_results.body) http://www.sqlite.org/sqlite-3.3.9.tar.gz tar zxf sqlite-3.3.9.tar.gz cd sqlite-3.3.9 ./configure --prefix=/usr/local/sqlite --enable-utf8 make make install http://bsdsystem.blog40.fc2.com/blog-entry-5.html $ fetch http://www.sqlite.org/sqlite-3.2.7.tar.gz $ tar zxvf sqlite-3.2.7.tar.gz $ cd sqlite-3.2.7 $ ./configure $ make $ su # make install 厨と呼ばれ嫌われるタイプの人間の判別はただ一つ 自分の使っているモノを他人にも使えと利点欠点まったく考慮せずに一方的にゴリ押しする 自分が使ってよかったから他人が使ってもいいものだと盲目的に信じてる PC関係だけじゃなくて世のすべてに共通する 自分が見て面白かったものは他人がみても面白い等など 2004年頃に乗り換えてからずっとFreeBSD もう他への乗り換えとか面倒で惰性で使ってるだけ ZFS使いたくて乗り換えた。 8.9から入って9.0使ってる。 NASにしてTVの録画先とかMacのTime machineとかファイル置き場 26 :風吹けば名無し@転載禁止:2015/07/31(金) 21:18:36.48 ID:OZfmqC0f0 http://livedoor.blogimg.jp/pekochan893/imgs/5/f/5f846836.jpg 長谷川亮太君のブログ「日常」 2012年2月22日 02:18 『ネット上で犯罪自慢をしてはならない』 とくに学生に多いのがmixiやらツイッターで未成年飲酒を堂々と書き込んでいる人々。 気持ちは分かるし実際にはほとんどの人がやっているのだろうけど自らネットで世間に公表してはいかんでしょ。 この国に生まれた以上は法律に違反する行為なのだからわきまえないと...と法学部に進学する俺が言ってみる。 まあこの年頃はこのような事がファッション感覚みたいなもんだからしょうがないのかなとは思います。 自分自身もどちらかと言うと自己顕示欲が強い人間だから気持ちは分かる。 ただこんなのがもしバレて人生狂ったら笑えないからほどほどにした方が良いと思われる。 2年間も書込みが無いほど過疎ってる、何故? vine linuxでサーバー運用しているが、何故か、面白みが無い。 FreeNASで遊んでみて、FreeBSDを触る気になった。 サーバーの 全面移行を画策中、何かとご教示の程、よろしく。 FreeBSDが複雑になってきたのでNetBSDのほうが楽しいかもしれない。 ここ2年くらい、FreeWnnがportsでコンパイルできなくなり、 FreeBSDのバージンアップができず困ってます。 Wnn以外は覚える気ないし、日本語変換ができないと不便だし。。 >> 153 > ここ2年くらい、FreeWnnがportsでコンパイルできなくなり、 > FreeBSDのバージンアップができず困ってます。 > Wnn以外は覚える気ないし、日本語変換ができないと不便だし。。 Debian, SuSE GNU/Linuxで64ビット化の対応とかしたパッチをここ2−3年だしていたので、 そのソースを引っ張ってきてやってみたら? Debian GNU/Linuxであいかわらず kinput2-wnn の自分で修正したバージョン使っている。 FreeBSDはFreeNASサーバーでちょこっとつかっているだけだが。 ■ このスレッドは過去ログ倉庫に格納されています
read.cgi ver 07.5.1 2024/04/28 Walang Kapalit ★ | Donguri System Team 5ちゃんねる