

日の出は曇っていて、うっすら・・・・
バイクで帰宅中に雲の隙間から見えたので撮影してみましたw
去年はブログほとんど更新しませんでしたが、今年もあまり更新しないかもですw
あけおめ♪
7
今日は朝から海が荒れてました!
海沿いの道を走ると潮が一杯飛んできてぇ行く先が白い。。。
行きは急いでいたので写真撮れませんでしたが帰りに撮ってきた!

なんか普通に荒れてるwww
テトラポットが海の中に消え去ってますね!
近くに防波堤もあったんですが!
波が凄い勢いで当たって飲み込まれてた!
動画も貼り付けておくよw
http://inyuito.blognya.tk/files/2011/09/20110901_165834.flv


OS: Ubuntu 10.04.3 LTS
apt-get install gcc g++ make iputils-tracepath patch mkdir ~/tmp/ cd ~/tmp/ #wget ftp://ftp.linux-ipv6.org/pub/usagi/snap/kit/usagi-linux26-s20060918.tar.bz2 #2011年09月19日現在↑のIPv4に繋ぐとPASVエラーが出るのでミラーを書いておく↓ wget http://cdn.kamyu.net/pub/usagi-linux26-s20060918.tar.bz2 tar xvfj usagi-linux26-s20060918.tar.bz2 cd usagi make prepare TARGET=linux26 cd usagi/libnetlink ./configure make cd ../dtcp wget http://www.tugumi.net/tips/feel6linux/dtcpc.c.password.diff patch -p0 < dtcpc.c.password.diff ./configure --prefix=/usr/local #このままmakeすると「conflicting types for ‘getline’」エラーが出るので #/usr/include/stdio.hを編集する vi /usr/include/stdio.h
extern _IO_ssize_t getline (char **__restrict __lineptr,
extern _IO_ssize_t __getline (char **__restrict __lineptr,
make sudo make install vi /usr/include/stdio.h #先ほど編集したgetlineを一応戻しておきましょう。
#!/bin/sh
#####設定項目#####
#Feel6ユーザ名
user=""
#Feel6パスワード
pass=""
#インターフェース eth0とか
interface=""
#ネットワークアドレス 例:2001:3e0:ad1::1/48の場合2001:3e0:ad1::
ipv6address=""
######以下処理#######
echo DTCP AllKill
/usr/local/sbin/dtcpc -k
echo ifconfig dtcp down
ifconfig dtcp down
echo ifconfig sit0 down
ifconfig sit0 down
echo ifconfig eth0 del ${ipv6address}/64
ifconfig eth0 del ${ipv6address}/64
echo ip -6 route ${ipv6address}/48
ip -6 route del ${ipv6address}/48
echo DTCP Starting...
/usr/local/sbin/dtcpc -u ${user} -P ${pass} -t network -n ${interface} dtcp.feel6.jp -c 5
WordPress 3.xでサブドメインのマルチサイトをNginxとphp5-fpmを使って構築しました。
WP Super Cacheをプラグインに導入し高速化しています。
OSはUbuntuとなっております。
Nginxの最新版とphp5-fpm(デフォルトで無いため)を使うためにリポジトリを追加します。
vi /etc/apt/sources.list.d/ppa.list #Nginx deb http://ppa.launchpad.net/nginx/stable/ubuntu/ lucid main deb-src http://ppa.launchpad.net/nginx/stable/ubuntu/ lucid main #php5 deb http://ppa.launchpad.net/bjori/php5/ubuntu/ lucid main deb-src http://ppa.launchpad.net/bjori/php5/ubuntu/ lucid main
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F031C70E5C811BC8 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 00A6F0A3C300EE8C apt-get update apt-get upgrade apt-get install nginx php5-fpm php5-mysql mysql-server update-rc.d -f nginx defaults update-rc.d -f php5-fpm defaults update-rc.d -f mysql defaults
vi /etc/php5/fpm/pool.d/www.conf listen = 127.0.0.1:9000 ↑をコメントアウトして↓を書き加えてください。 listen = /var/run/php5-fpm.sock ここではphp.iniやプロセス数の設定など省かせていただきます。
vi /etc/nginx/sites-available/blognya.tk
server {
listen 80;
root /var/www/blognya.tk;
index index.php;
server_name *.blognya.tk blognya.tk;
location / {
if (-f $request_filename) {
break;
}
if ($request_uri ~ ^/files/(.+)$) {
rewrite ^/files/(.+) /wp-includes/ms-files.php?file=$1 last;
}
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri '';
}
if ($query_string) {
set $supercache_uri '';
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri '';
}
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host$1/index.html;
}
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/blognya.tk/$fastcgi_script_name;
}
}
/etc/init.d/php5-fpm restart /etc/init.d/nginx restart cd /var/www/ wget http://ja.wordpress.org/wordpress-3.2.1-ja.tar.gz tar zxvf wordpress-3.2.1-ja.tar.gz mv wordpress blognya.tk