syslogにログをはく
vi /usr/local/pgsql/data/postgresql.conf
log_destination = 'syslog'
log_statement = 'all'
syslogの設定にも追加
vi /etc/syslog.conf
local0.* /var/log/postgresql.log
syslog再起動
/etc/init.d/syslog restart
syslogにログをはく
vi /usr/local/pgsql/data/postgresql.conf
log_destination = 'syslog'
log_statement = 'all'
syslogの設定にも追加
vi /etc/syslog.conf
local0.* /var/log/postgresql.log
syslog再起動
/etc/init.d/syslog restart
#!/usr/bin/perl -w
use strict;
use PDF::API2;
my $pdf = PDF::API2->new;
$pdf = PDF::API2->open('/tmp/old.pdf');
my $page = $pdf->openpage(1);
my $gfx = $page->gfx;
#my $jfs = $pdf->cjkfont( 'KozGo', -encode=>'utf8' );
my $jfs = $pdf->cjkfont( 'KozGo', -encode=>'shiftjis' );
my $text = "T03 2007/1/23 どんなかんじでしょうかね";
$gfx->textlabel(30, 800, $jfs, 20, $text, -color=>'red');
$pdf->saveas("new_file.pdf");
Adding a 250 MB swap file to the system
Create an empty 250M file :
dd if=/dev/zero of=/swapfile bs=1024 count=2097152
Create the swap on the newly created file :
mkswap /swapfile
Enable the new swap file :
swapon /swapfile
Edit fstab and add :
/swapfile swap swap defaults 0 0
Verify if the new swap space is enabled :
cat /proc/swaps
free -m
分からないから、質問して下さい。
# yum -y install flex libxml2-devel
# yum -y install zlib-devel libpng-devel
# yum -y install libjpeg-devel
# mkdir /usr/local/php-5.2.6
# cd /usr/loca/src
# tar zxf php-5.2.6.tar.gz
# cd php-5.2.6
# ./configure --prefix=/usr/local/php-5.2.6
# make
# make install
# make clean
# make distclean
# ./configure --prefix=/usr/local/php-5.2.6 --enable-mbstring --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-jpeg-dir
# make
# make install
--prefix=/usr/local/php-5.2.1
--enable-mbstring
--with-apxs2=/usr/local/httpd/bin/apxs
--with-pgsql=/usr/local/pgsql
--with-mysql=/usr/local/mysql
--with-gd
--with-zlib
--with-jpeg-dir
# ln -sfn /usr/local/php-5.2.6 /usr/local/php5
AddType application/x-httpd-php.php ← 追記
mysql.default_socket = /var/lib/mysql/mysql.sock ← 追記