sed -i 's/IPADDR=192.168.0.XXX/IPADDR=192.168.0.241/g' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i 's/HWADDR=00:16:3E:63:95:XX/HWADDR=00:16:3E:63:00:F1/g' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i 's/ONBOOT=no/ONBOOT=yes/g' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i 's/HOSTNAME=standard.hoge.com/HOSTNAME=yjnews01.hoge.com/g' /etc/sysconfig/network
rm -rf /etc/ssh/ssh_host*
rm -rf /root/.bash_history
reboot
ln -s /etc/xen/yjnews01 /etc/xen/auto/yjnews01
ここらでyum updateする
「全Dom0にPostfixを入れる」をやる
「DomU www01の設定」をやる
/usr/share/pear/pearcmd.php に追記
> @ini_set('track_errors', true);
> @ini_set('html_errors', false);
> @ini_set('magic_quotes_runtime', false);
> @ini_set('memory_limit','16M'); // ここに追加
# yum install gcc-c++
# pear install HTTP_Request
# yum -y install php-devel
# pecl install perl
php.iniに追記
> extension=perl.so
# service httpd restart
# wget http://downloads.sourceforge.net/mecab/mecab-0.97.tar.gz?use_mirror=jaist
# wget http://downloads.sourceforge.net/mecab/mecab-ipadic-2.7.0-20070801.tar.gz?use_mirror=jaist
# wget http://downloads.sourceforge.net/mecab/mecab-perl-0.97.tar.gz?use_mirror=jaist
# wget http://gensen.dl.itc.u-tokyo.ac.jp/soft/TermExtract-4_08.tar.gz
# tar xvzf mecab-0.97.tar.gz
# cd mecab-0.97
# ./configure --with-charset=utf8 --prefix=/usr/local/mecab
# make
# make install
# cd ..
# tar xvzf mecab-ipadic-2.7.0-20070801.tar.gz
# cd mecab-ipadic-2.7.0-20070801
# ./configure --with-charset=utf8 --prefix=/usr/local/mecab --with-mecab-config=/usr/local/mecab/bin/mecab-config
# make
# make install
# cd ..
# tar xvzf mecab-perl-0.97.tar.gz
# cd mecab-perl-0.97
# sed -i s/mecab-config/\\/usr\\/local\\/mecab\\/bin\\/mecab-config/ Makefile.PL
# perl Makefile.PL
# make
# make install
# cd ..
# tar xvzf TermExtract-4_08.tar.gz
# cd TermExtract-4_08
# perl Makefile.PL
# make
# make install
# cd ..
# cd /usr/lib/perl5/site_perl/5.8.8/TermExtract/
# nkf --utf8 MeCab.pm > MeCab-utf8.pm
# mv MeCab-utf8.pm MeCab.pm
# perl -MCPAN -e shell
## install DB_File
いじょう。
0 件のコメント:
コメントを投稿