ドラフト作成
■ レイヤーフレーム
iPlotz: wireframing, mockups..
mockingbird
2012年3月21日水曜日
2011年11月17日木曜日
logrotateの設定
■ アスタリスクでのパス指定
アスタリスクでサブディレクトリも含めて記述でき、
空白で区切ることによって、複数のパスを記述できる。
/var/log/basedir/*.log /var/log/basedir/*/*.log {
daily
rotate 5
}
logrotating files in a directories and its subdirectories
バーチャルホストをいくつか追加するときに。
■ 設定の確認
logrotate -dv /etc/logrotate.d/httpd
2011年8月2日火曜日
2011年7月4日月曜日
mod_wsgi 3.3 のインストール
mod_wsgi
apacheのライブラリ
yum install httpd-devel.x86_64インストール
./configure --with-python=/usr/local/bin/python2.7make
make install
mod_wsgiのログ
cp .libs/mod_wsgi.so /usr/lib64/httpd/modules/mod_wsgi.socp .libs/mod_wsgi.lai /usr/lib64/httpd/modules/mod_wsgi.la
cp .libs/mod_wsgi.a /usr/lib64/httpd/modules/mod_wsgi.a
chmod 644 /usr/lib64/httpd/modules/mod_wsgi.a
ranlib /usr/lib64/httpd/modules/mod_wsgi.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib64/httpd/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib64/httpd/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib64/httpd/modules/mod_wsgi.so
2011年7月3日日曜日
Python2.7 のインストール
2.6の時と同じ。
必要なライブラリ
とりあえず、以下のものは入れておく。yum install sqlite-devel.x86_64 zlib-devel
yum install gdbm-devel.x86_64 readline-devel.x86_64 readline-devel.x86_64 freetype-devel.x86_64
yum install bzip2-devel.x86_64 yum install db4-devel.x86_64 openssl-devel.x86_64 gdbm-devel.x86_64 ncurses-devel.x86_64
zlib-develはPILで必要なので32bit版も入れる
dl, imageop はなくなるモジュールなので無視
ここで入れ忘れても、make, make install で、追加したものだけインストールできる。
インストール
./configure --enable-shared
make
make install
/usr/local/bin の検索順位が /usr/bin より前なので、
rm /usr/local/bin/python
で、消しておく。
ライブラリ検索の登録
方法1
ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib64/
方法2
rootになって、
echo "/usr/local/lib" > /etc/ld.so.conf.d/local.conf
ldconfig
方法3
やったこと無いけど、
LD_LIBRARY_PATH を使う。
モジュールインストール
setuptoolsのインストール
wget http://peak.telecommunity.com/dist/ez_setup.py
python2.7 ez_setup.py
easy_install pip
とりあえず、これは入れておく。
yum install mysql-devel.x86_64
pip install MySQL-python
yum install libxml2-devel.x86_64
yum install libxslt-devel.x86_64
pip install lxml
pip install zenhan
pip install feedparser
pip install django
pip install Werkzeug
2011年5月13日金曜日
ruby1.9のインストール
zlibとかいろいろ必要だと思うが、既に大体入っている。
libyaml をインストール(gemで必要)
http://pyyaml.org/wiki/LibYAML
libyaml をインストール(gemで必要)
http://pyyaml.org/wiki/LibYAML
後は、configure,make, make install .....
2010年6月26日土曜日
postgres シーケンス番号の変更
How to reset postgres' primary key sequence when it falls out of sync?
http://stackoverflow.com/questions/244243/how-to-reset-postgres-primary-key-sequence-when-it-falls-out-of-sync
シーケンス番号 の整合性
SELECT setval('your_table_id_seq', (SELECT MAX(id) FROM your_table));
試してないけど、これでもOK
ALTER SEQUENCE sequence_name RESTART WITH (SELECT max(id) FROM table_name);
登録:
コメント (Atom)