install 64bits intelligent-dns

 

#!/bin/bash

cd /root

lftp 'root':'passwd'@中电华通<<EOF

cd /squid/fgn/soft

pget -n 40 bind-9.4.3_leo_intelligence.tar.bz2

pget -n 40 mysql-5.0.67.tar.gz

bye

EOF

tar -C /usr/local/src -jxvf bind-9.4.3_leo_intelligence.tar.bz2

tar -C /usr/local/src -zxvf mysql-5.0.67.tar.gz

cd /usr/local/src/mysql-5.0.67

userdel mysql

groupadd mysql

useradd mysql -d /fgn/services/mysql -g mysql

mkdir -p /fgn/services/mysql/data

mkdir -p /fgn/services/mysql/tmp

chown -R mysql:mysql /fgn/services/mysql

CFLAGS="-O6 -funroll-loops -Wall -W -mtune=nocona -mcpu=nocona -march=nocona -mfpmath=sse -pipe -fomit-frame-pointer -msse2 -mmmx -m64 -march=x86-64" CXXFLAGS="-O6 -funroll-loops -Wall -W -mtune=nocona -mcpu=nocona -march=nocona -mfpmath=sse -pipe -fomit-frame-pointer -msse2 -mmmx -m64 -march=x86-64" CXX=gcc CFLAGS="-DDBUG_OFF -O6 -funroll-loops -Wall -W -mtune=nocona -mcpu=nocona -march=nocona -mfpmath=sse -pipe -fomit-frame-pointer -msse2 -mmmx -m64 -march=x86-64" CXXFLAGS="-DDBUG_OFF -O6 -funroll-loops -Wall -W -mtune=nocona -mcpu=nocona -march=nocona -mfpmath=sse -pipe -fomit-frame-pointer -msse2 -mmmx -m64 -march=x86-64 -fno-implicit-templates -fno-exceptions -fno-rtti"

./configure '--prefix=/fgn/services/mysql' '--with-unix-socket-path=/tmp/mysql.sock' '--localstatedir=/fgn/services/mysql/data' '--with-mysqld-user=mysql' '--without-debug' '--with-big-tables' '--with-charset=utf8' '--with-extra-charsets=all' '--with-pthread' '--enable-thread-safe-client' '--enable-assembler' '--without-ndb-debug--with-innodb' '--with-archive-storage-engine' '--with-client-ldflags=-all-static' '--with-readline' '--enable-local-infile'

make&&make install

./scripts/mysql_install_db --datadir=/fgn/services/mysql/data --user=mysql

mv  /etc/my.cnf /etc/my.cnf.bak

mv /usr/bin/mysql /usr/bin/mysql.bak

ln -s /fgn/services/mysql/bin/mysql /usr/bin/mysql

chown -R mysql:mysql /fgn/services/mysql

cd /usr/local/src/bind-9.4.3_leo_intelligence

./configure '--enable-epoll' '--with-dlz-mysql=/fgn/services/mysql' '--enable-threads=no' '--prefix=/fgn/services/mydns1212'

make&&make install

echo "All done!"

exit 0

 

nohup sh install.sh &

 

你可能感兴趣的:(install 64bits intelligent-dns)