裸机RedHat as5.3
30人机器上,裸机上暗许安装有boost1.33,gcc version 4.1.2 二零零六0704 (Red
Hat
4.1.2-44),java1.4,boost和gcc(前段时间晓得的是gcc4.1.2版本以上,boost1.33上述KFS0.5版能够编译通过)符合KFS的版本须求,只必要下载并编写翻译使用cmake来编译KFS,下载安装git来下载xfs,KFS正视xfs的多少个头文件,java1.4升任到java1.6就能够。

环境:

1.
Android的有的灵光的官方网站:
   android源码网址
      

Linux版本:
LSB
Version:   :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:
RedHatEnterpriseServer
Description:    Red
Hat Enterprise
LinuxServer release 5.5 (Tikanga)
Release:        5.5
Codename:       Tikang

裸机RedHat as4.3 32个人机器上,裸机上暗许安装有boost1.32,gcc version
3.4.5 二〇〇六1201 (Red Hat
3.4.5-2),java1.4,KFS供给依赖boost1.33上述的库,帮衬c++0x的新特色的gcc版本,gcc须要升高,因为KFS0.5使用了c++0x的新特征,将java1.4进级到java1.6就可以。

操作系统:Red Hat Enterprise Linux Server release 5.4 (Tikanga)   (cat
/etc/redhat-release)

  1. 设置git源码管理工科具

Linux version 2.6.18-194.el5(mockbuild@x86-007.build.bos.redhat.com)
(gcc version 4.1.2 20080704 (Red Hat4.1.2-48)) #1 SMP Tue Mar 16
21:52:43 EDT 2010

以下是在裸机RedHat as4.3 三10位机器上编写翻译KFS的全经过:

系统音信:#1 SMP Tue Aug 18 15:51:48 EDT  2009 x86_64 x86_64 x86_64
GNU/Linux   (uname -a)

# cd ~
# mkdir bin
# echo $PATH
# curl > ~/bin/repo
# chmod a+x ~/bin/repo

 本文相关配套软件下载地址在Linux公社的1号FTP服务器里,下载地址:

富有重视程序都以当前开源社区里流行的源码编写翻译而来!

gcc/g++: gcc /g++版本 4.1.2 20080704 (Red Hat 4.1.2-46),   (gcc -v / g++
-v)

git下载源码方法:
下载一个tree(至前段时间路径):
# git clone git://git路线 (git路径参看网址公布tree路线)
下载整个platform至当下路径:
# repo init -u git://git路径/platform/manifest.git
# repo sync

FTP地址:ftp://www.linuxidc.com

cd /data/jrckkyy/

python: Python 2.4.3    (python -V)

  1. 收获Android平台源码(具体可参看
    # mkdir myandroid
    # cd myandroid
    # repo init -u
    # repo sync

用户名:www.linuxidc.com

//java最新版1.6

 

按暗许设置完结即可

密码:www.muu.cc

wget

参考:

  1. 赢得S3C6410平台Android底层Linux内核源码

在 2011年LinuxIDC.com\7月\LAMP+汤姆cat+Discuz+WordPress
【汤姆cat的设置整合】

chmod +x jdk-6u22-linux-i586-rpm.bin

  1. hypertable HowToBuild:

    ,这里运用CentOS_5.2_64-bit

  2. hypertable安装:
     

# git clone git://github.com/leemgs/samsung-s3c6410-android.1.0.git

在 2011年LinuxIDC.com\7月\LAMP+Tomcat+Discuz+WordPress 【PHP的安装】

./jdk-6u22-linux-i586-rpm.bin

 

  1. 赢得并安装Android编写翻译工具(Toolchain)
    # wget
    # ./configure –prefix=/usr/local
    # make
    # make install
    # vi /etc/ld.so.conf
    include ld.so.conf.d/*.conf
    /usr/local/lib
    # ldconfig

在 2011年LinuxIDC.com\7月\LAMP+Tomcat+Discuz+WordPress【MySQL的安装】

//cmake最新版2.8.3

安装:

# cd /opt
# wget

# tar xvzf kandroid-arm-toolchain-20080530.tgz
# cd ./kandroid-arm-toolchain-20080522/bin
# ls
               arm-android-linux-gnueabi-addr2line
arm-android-linux-gnueabi-gprof
               arm-android-linux-gnueabi-ar        
arm-android-linux-gnueabi-jcf-dump
               arm-android-linux-gnueabi-as        
arm-android-linux-gnueabi-jv-scan
               arm-android-linux-gnueabi-c++       
arm-android-linux-gnueabi-ld
               arm-android-linux-gnueabi-c++filt   
arm-android-linux-gnueabi-nm
               arm-android-linux-gnueabi-cc        
arm-android-linux-gnueabi-objcopy
               arm-android-linux-gnueabi-cpp       
arm-android-linux-gnueabi-objdump
               arm-android-linux-gnueabi-g++       
arm-android-linux-gnueabi-populate
               arm-android-linux-gnueabi-gcc       
arm-android-linux-gnueabi-ranlib
               arm-android-linux-gnueabi-gcc-4.2.3
arm-android-linux-gnueabi-readelf
               arm-android-linux-gnueabi-gccbug    
arm-android-linux-gnueabi-run
               arm-android-linux-gnueabi-gcj       
arm-android-linux-gnueabi-size
               arm-android-linux-gnueabi-gcjh      
arm-android-linux-gnueabi-sstrip
               arm-android-linux-gnueabi-gcov      
arm-android-linux-gnueabi-strings
               arm-android-linux-gnueabi-gdb       
arm-android-linux-gnueabi-strip
               arm-android-linux-gnueabi-gjnih

在 2011年LinuxIDC.com\7月\LAMP+Tomcat+Discuz+WordPress【Apache的安装】

wget

  1. hypertable源码下载

#

下载方式见这里

tar xvpfz cmake-2.8.3.tar.gz

参考:

# ./arm-android-linux-gnueabi-gcc -v

Using built-in specs.
Target: arm-android-linux-gnueabi
Configured with:
/opt/androidtoolchain110/bin/targets/src/gcc-4.2.3/configure
–build=i686-pc-linux-gnu –target=arm-android-linux-gnueabi
–host=i686-pc-linux-gnu
–prefix=/root/x-tools/arm-android-linux-gnueabi
–with-sysroot=/root/x-tools/arm-android-linux-gnueabi/arm-android-linux-gnueabi/sys-root
–enable-languages=c,c++,java –with-arch=armv6j –with-cpu=arm1136jf-s
–with-tune=arm1136jf-s –with-float=soft –enable-__cxa_atexit
–disable-multilib –with-gmp=/root/x-tools/arm-android-linux-gnueabi
–with-mpfr=/root/x-tools/arm-android-linux-gnueabi
–with-local-prefix=/root/x-tools/arm-android-linux-gnueabi/arm-android-linux-gnueabi/sys-root
–disable-nls –enable-threads=posix –enable-symvers=gnu –enable-c99
–enable-long-long –with-bugurl=
–with-pkgversion=kandroid-invain-arm_v6_nfp_le-ver.1.1.2.1
Thread model: posix

连锁阅读:
LAMP+汤姆cat+Discuz+WordPress【安装前的备选】
http://www.linuxidc.com/Linux/2011-07/38651.htm
LAMP+Tomcat+Discuz+WordPress【JDK的安装】
http://www.linuxidc.com/Linux/2011-07/38650.htm
LAMP+Tomcat+Discuz+WordPress【Apache的安装】
http://www.linuxidc.com/Linux/2011-07/38649.htm
LAMP+Tomcat+Discuz+WordPress【MySQL的安装】
http://www.linuxidc.com/Linux/2011-07/38648.htm
LAMP+Tomcat+Discuz+WordPress 【PHP的安装】
http://www.linuxidc.com/Linux/2011-07/38647.htm
LAMP+汤姆cat+Discuz+WordPress 【汤姆cat的装置整合】
http://www.linuxidc.com/Linux/2011-07/38646.htm

cd cmake-2.8.3;./configure;make;

$ git clone git://github.com/hypertable/hypertable.git

gcc version 4.2.3

# vi autotoolpath.sh
#!/bin/bash
export PATH=/opt/kandroid-1.1.2.1-20080530.glibc/bin:$PATH

  1. Android编译
    1) 至sun网站下载JDK1.5(jdk-1_5_0_21-linux-i586-rpm.bin)
       # ./jdk-1_5_0_21-linux-i586-rpm.bin
       解压成:jdk-1_5_0_21-linux-i586-rpm.rpm

2) 安装JDK 1.5
   # rpm -ivh jdk-1_5_0_21-linux-i586-rpm.rpm

3) 下载gperf-3.0.4.tar.gz, 然后安装
    ./configure
    make
    make install

4) 在/etc/profile末尾增加
JAVA_HOME=/usr/java/jdk1.5.0_21
export ANDROID_JAVA_HOME=$JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CLASSPATH=.:$JAVA_HOEM/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH

5) 编译Android
在Android目录执行make.
# make

6) 编译Android SDK
# ./build/envsetup.sh
# ./make sdk
只要出现JAVA链接难题,推行:
# JAVA_HOME=/usr/java/jdk1.5.0_21
# export ANDROID_JAVA_HOME=$JAVA_HOME

  1. S3C6410 Linux内核编写翻译
    # cd samsung-s3c6410-linux
    # cp ./arch/arm/configs/smdk6410mtd.android_defconfig .config
    # make menuconfig
    # make

澳门金沙国际 1

Apache版本:Server version: Apache/2.2.19 (Unix)

make install

 

                               安装包名称:httpd-2.2.19.tar.gz

//log4cpp最新版1.0

  1. 遵照readme安装注重

Mysql版本:  mysql Ver 14.14 Distrib 5.5.13, for Linux (i686) using 
EditLine wrapper

wget

参考:

                               安装包名称:mysql-5.5.13.tar.gz

./configure;make;make install

(#  yum install gcc-c++ make cmake python-devel bzip2-devel zlib-devel
expat-devel rrdtool rrdtool-devel ruby ruby-devel ruby-ext)

Php版本:   PHP Version 5.3.6

//boost最新版1.44

安装cmake:

                            安装包名称:php-5.3.6.tar.gz

wget

# yum install cmake

Tomcat版本:Apache Tomcat/5.5.9

tar xvpfz boost_1_44_0.tar.gz

 

                               安装包名称:jakarta-tomcat-5.5.9.tar.gz

cd boost_1_44_0

安装boost:

Discuz版本:Discuz! X2 正式版[20110629]

./bootstrap.sh //同目录下生成bjam可奉行文件www.linuxidc.com

wget

安装包名称:Discuz_X2_SC_UTF8.zip

./bjam -a “-sTOOLS=gcc” “–includedir=/usr/include”
“–libdir=/usr/lib/boost” “–build-type=complete” threading=multi
“–layout=tagged” install

tar xjvf boost_1_44_0.tar.bz2

WordPress版本:WordPress 3.2

or

cd boost_1_44_0

安装包名称:wordpress-3.2.tar.gz

./bjam -a “-sTOOLS=gcc” stage “–build-type=complete” threading=multi
“–layout=tagged” //编出库放在当前目录下的stage/lib中,方便管理

./bootstrap.sh
–with-libraries=filesystem,iostreams,program_options,system,thread,graph,regex

JDK版本:  java version “1.6.0_25”
                安装包名称: jdk-6u26-linux-i586-rpm.bin

echo “/usr/lib/boost” >> /etc/ld.so.conf

./bjam install

其余下载: 1.Zlib2.Freetype3.Libpng4.Jpeg-6b5.GD Library6.cmake7.libmcrypt8.
jakarta-tomcat-connectors9. apr10.apruti11.libtool等

export LD_LIBRARY_PATH=/usr/lib/boost

 

设置确定保障以下系统相关库文件
gcc|gcc-c++|autoconf|automake|zlib*|libxml*|ncurses-devel|libmcrypt*hypertable编写翻译安装,WordPress整合安装。|libtool*(libtool-ltdl-devel*)
rpm –qa |grep name【查询】
享有软件安装目录:/usr/local/         源代码目录:/LAMP/
Mysql安装目录:  /software/mysql/  数据库目录: /storage/db/mysql_data

澳门金沙国际 2

安装log4cpp :

JDK安装

JDK版本:   java version”1.6.0_25″
              安装包名称: jdk-6u26-linux-i586-rpm.bin
[root@localhost LAMP]# ls

#tar zxvf log4cpp-1.1.tar.gz

jdk-6u25-linux-i586-rpm.bin

#cd log4cpp

[root@localhost LAMP]# chmod 755 jdk-6u26-linux-i586-rpm.bin

# ./configure && make -j16 && make check && make install

[root@localhost LAMP]#澳门金沙国际 , ./jdk-6u26-linux-i586-rpm.bin

 

Unpacking…

安装hyperic-sigar:

Checksumming…

下载

Extracting…

$unzip hyperic-sigar-1.6.4.zip

……

#cp hyperic-sigar-1.6.4/sigar-bin/include/*.h /usr/local/include

Press Enter tocontinue…..

#cp hyperic-sigar-1.6.4/sigar-bin/lib/libsigar-amd64-linux.so
/usr/local/lib

Done

 

[root@localhost LAMP]# ls

安装BerkeleyDB:

jdk-6u25-linux-i586.rpm             jdk-6u25-linux-i586-rpm.bin
sun-javadb-client-10.6.2-1.1.i386.rpm 
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
  sun-javadb-common-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
  sun-javadb-demo-10.6.2-1.1.i386.rpm

$ wget

 [root@localhostLAMP]# rpm -ivh jdk-6u26-linux-i586.rpm

tar -xzvf db-4.8.26.tar.gz

Preparing…               ###########################################
[100%]

cd db-4.8.26/build_unix/

 

../dist/configure –enable-cxx

        package jdk-1.6.0_25-fcs.i586 isalready installed

#make -j 32 && make install

查阅/usr/local/目录下是不是有java目录

 

接下去编辑/etc/profile文件插手JDK景况变量,在文件末尾处加入以下内容:

安装re2

[root@localhostLAMP]#vim /etc/profile

下载:

exportJAVA_HOME=/usr/java/jdk1.6.0_25

tar -zxvf re2.tgz

exportPATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin

cd re2

exportCLASSPATH=:/usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0_25/jre/lib:$CLASSPATH

make -16 && make test -j16 && make install && make testinstall

[root@localhost LAMP]# source /etc/profile
那样能够使配置文件的剧情及时见效;

 

假如JDK配置不错的话,运维方面包车型客车一声令下将会油然则生JDK的附和版本。

安装snappy:

[root@localhost~]# java -version

wget
http://snappy.googlecode.com/files/snappy-1.0.4.tar.gz

java version “1.6.0_25”

tar -zxvf snappy-1.0.4.tar.gz

Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

cd snappy-1.0.4

Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)

./configure  && make -j16 && make install

 

 

 

安装cronolog :

参考:

wget

 

tar xzvf cronolog-1.6.2.tar.gz

Apache安装

cd cronolog-1.6.2/

Apache版本:Server version: Apache/2.2.19 (Unix)

#./configure && make -j16 && make install

                               安装包名称:httpd-2.2.19.tar.gz

 

[root@localhostLAMP]#tar -zxvfhttpd-2.2.19.tar.gz

安装libedit-devel:

[root@localhost LAMP]#cd httpd-2.2.19

下载: 

[root@localhostLAMP]#./configure
–prefix=/usr/local/apache–enable-shared=max –enable-module=rewrite
–enable-module=so

wget

[root@localhost LAMP]#make

tar zxvf libedit-20121213-3.0.tar.gz

[root@localhost LAMP]#make install

cd libedit-20121213-3.0

 

./configure –enable-widec

修改配置文件

# make -j16&& make check&&make install

[root@localhost LAMP]#vim /usr/local/apache/conf/httpd.conf

 

ServerName127.0.0.1:80

安装ceph:

<IfModuledir_module>

wget

DirectoryIndexindex.html index.html.var index.htm index.php

tar xzvf ceph-0.22.2.tar.gz

</IfModule>

cd ceph-0.22.2

# If the AddEncodingdirectives above are commented-out, then you

# ./configure  &&make -j16  && make install

# probably shoulddefine those extensions to indicate media types:

 

AddTypeapplication/x-compress .Z

安装libevent:

AddTypeapplication/x-gzip .gz .tgz

#yum install libevent libevent-devel

AddTypeapplication/x-httpd-php .php

 

AddTypeapplication/x-httpd-php-source .phps

安装libunwind:

 

下载:

到此甘休,运转参数

wget

/usr/local/apache/bin/apachectlstart

tar zxvf libunwind-1.1.tar.gz

/usr/local/apache/bin/apachectlstop

cd libunwind-1.1

/usr/local/apache/bin/apachectlrestart

./configure && make -j16&& make
install

 

 

前面参照他事他说加以考察[唯恐有不当]:

安装tcmalloc :

[root@localhost LAMP]# cp /usr/local/apache/bin/apachectl
/etc/init.d/apachectl

下载:

[root@localhost LAMP]# ln -s /usr/local/apache/bin/apachectl
/usr/bin/apachectl

wget

 

tar zxvf
gperftools-2.0.tar.gz

步向/etc目录下的rc2.d rc3.d rc4.d rc5.d
目录创设开机自运行服务的软链接文件;

cd gperftools-2.0

[root@localhost etc]# ln -s ../init.d/apachectlS20apache

./configure && make -j16&& make install

进去/etc目录下的rc0.d rc1.d rc6.d 目录创立关机自结束服务的软链接文件;

 

[root@localhost etc]# ln -s ../init.d/apachectlK20apache

安装thrift Broker :

 

wget

 

tar zxvf thrift-0.8.0.tar.gz

 

./configure && make -j16 && make install && /sbin/ldconfig

Mysql安装

 

Mysql版本:  mysql  Ver 14.14 Distrib 5.5.13, for Linux (i686)using  EditLine
wrapper 安装包名称:mysql-5.5.13.tar.gz

安装kfs:

率先安装Cmake与Libmcrypt

下载:

Cmake

wget

tar -zxvf cmake-2.8.5.tar.gz

tar zxvf kfs-0.5.tar.gz

cd cmake-2.8.5

 

./bootstrap

设置库链接:

make

#sh -c “echo ‘/usr/local/lib’ > /etc/ld.so.conf.d/local.conf”

make install

#sh -c “echo ‘/usr/local/BerkeleyDB.4.8/lib’ >
/etc/ld.so.conf.d/BerkeleyDB.4.8.conf”

 

#/sbin/ldconfig

 

 

Libmcrypt

cd /usr/lib64/

tar -zxvf libmcrypt-2.5.8.tar.gz

ln -s libpangocairo-1.0.so.0.2800.1 libpangocairo.so

cd libmcrypt-2.5.8

ln -s libpango-1.0.so.0.2800.1 libpango.so

./configure –prefix=/usr/local/libmcrypt

ln -s libpangoft2-1.0.so.0.2800.1 libpangoft2.so

make

 

make install

cd /lib64

 

ln -s libgobject-2.0.so.0.2200.5 libgobject.so

安装Mysql

ln -s libglib-2.0.so.0.2200.5 libglib.so

[root@mail ~]# groupadd mysql

ln -s libgmodule-2.0.so.0.2200.5 libgmodule.so

[root@mail ~]# useradd -g mysql -s /sbin/nologin mysql

 

[root@mail ~]# mkdir -p /storage/db/mysql_data

  1. 编写翻译安装

[root@mail ~]# mkdir -p /software/mysql

安装编写翻译目录:

[root@mail ~]# mkdir -p /etc/mysql

mkdir -p ~/build/hypertable

[root@mail opt]# tar zxvf mysql-5.5.13.tar.gz

cd ~/build/hypertable

[root@mail opt]# cd mysql-5.5.13

 

[root@mailmysql-5.5.13]# cmake
.-DCMAKE_INSTALL_PREFIX=/software/mysql/ -DMYSQL_DATADIR=/storage/db/mysql_data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=all  -DWITH_SSL=system
-DWITH_ZLIB=system-DWITH_EMBEDDED_SERVER=1
-DENABLED_LOCAL_INFILE=1-DWITH_MYISAM_STORAGE_ENGINE=1 -DSYSCONFDIR=/etc/mysql -DMYSQL_TCP_PORT=7454 -DWITH_DEBUG=0
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock
-DWITH_INNOBASE_STORAGE_ENGINE=1  
-DWITH_ARCHIVE_STORAGE_ENGINE=1-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1 
-DWITH_PARTITION_STORAGE_ENGINE=1

配备命令:

【openssl未安装成功】

cmake ~/src/hypertable

[root@mailmysql-5.5.13]# make &&make install

 

[root@mailmysql-5.5.13]# cp./support-files/my-innodb-heavy-4G.cnf
/etc/mysql/my.cnf

编译:

[root@mailmysql-5.5.13]# chown -R mysql/storage/db/mysql_data/

# make

[root@mailmysql-5.5.13]# chgrp -R mysql/storage/db/mysql_data/

 

[root@mailmysql-5.5.13]#/software/mysql/scripts/mysql_install_db
–basedir=/software/mysql/–user=mysql
–datadir=/storage/db/mysql_data/

安装:

[root@mailmysql-5.5.13]# cp./support-files/mysql.server
/etc/init.d/mysqld【注意路线】

# make install

[root@mailmysql-5.5.13]# chmod 755/etc/init.d/mysqld

 

[root@mailmysql-5.5.13]# vim/etc/init.d/mysqld

注:

basedir=/software/mysql

  1. boost库的去除:

datadir=/storage/db/mysql_data

# rm -rvf /usr/local/include/boost/

[root@mailmysql_data]# /etc/init.d/mysqldstart

# cd /usr/local/lib

StartingMySQL[  OK  ]

# ls | grep boost | xargs rm -vf

[root@mail bin]# vim /etc/profile

 

exportPATH=$PATH:/software/mysql/bin

2.设置python的暗中同意版本

[root@mail bin]# source /etc/profile

#which python        (了解python的路径)

[root@mail bin]# mysql

小编们的系统提交的是/usr/local/bin/python,同不常候设置了python2.4, python2.7

Welcome to theMySQL monitor.  Commands end with ; or\g.

#ln -f /usr/bin/python2.4 /usr/local/bin/python

Your MySQLconnection id is 2

 

Server version:5.5.13-log Source distribution

3.更换cmake查找正视包格局和顺序

 

如这里的python。

Copyright (c)2000, 2010,
Oracle and/or its
affiliates. All rights reserved.

源码中hypertable/cmake/下是这几个文件

 

修改hypertable/cmake/FindPython.cmake

Oracle is aregistered trademark of Oracle Corporation and/or its

    find_path(PYTHON_INCLUDE_DIR Python.h NO_DEFAULT_PATH PATHS

affiliates. Othernames may be trademarks of their respective

            ${HT_DEPENDENCY_INCLUDE_DIR}

owners.

            /usr/include/python${PYTHON_VERSION}

 

            /usr/include/python

Type ‘help;’ or’\h’ for help. Type ‘\c’ to clear the current input
statement.

            /opt/local/include/python${PYTHON_VERSION}

 

            /opt/local/include/python

mysql>

            /usr/local/include/python${PYTHON_VERSION}

[root@mail ~]# chkconfig mysqld on

            /usr/local/include/python

[root@mail ~]# chkconfig –level 24 mysqld off

            )

[root@mail ~]# chkconfig –list mysqld

 

mysqld          0:off   1:off  2:off   3:on    4:off  5:on    6:off

  find_library(PYTHON_LIBRARY python${PYTHON_VERSION}
NO_DEFAULT_PATH PATHS               ${HT_DEPENDENCY_LIB_DIR}

[root@mail lib]# vim /etc/ld.so.conf

               /usr/lib

/software/mysql/lib

               /opt/local/lib

[root@mail ~]# ldconfig -v |grep mysql

               /usr/local/lib

/software/mysql/lib:

               )

        libmysqlclient.so.18 ->libmysqlclient_r.so.18.0.0

 

 

4.

 

 

参考:

 

 

源于为知笔记(Wiz)

 

 


Php安装   

Php版本:

PHP Version 5.3.6
安装包名称:php-5.3.6.tar.gz

 

 

编写翻译PHP前设置GD库相关套件【点此下载】

[root@localhost LAMP]# tar zxvf zlib-1.2.5.tar.gz 
[root@localhost zlib-1.2.5]#cd zlib-1.2.5
[root@localhost zlib-1.2.5]#./configure –prefix=/usr/local/zlib/
[root@localhost zlib-1.2.5]#make
[root@localhost zlib-1.2.5]#make install

[root@localhost LAMP]#tar zxvf freetype-2.4.3.tar.gz 
[root@localhost freetype-2.4.3]#cd freetype-2.4.3
[root@localhost freetype-2.4.3]#./configure
–prefix=/usr/local/freetype
[root@localhost freetype-2.4.3]#make
[root@localhost freetype-2.4.3]#make install

 

 

[root@localhost LAMP]#tar zxvf libpng-1.5.2.tar.gz 
[root@localhost LAMP]#cd libpng-1.5.2
[root@localhost
 libpng-1.5.2]#./configure –prefix=/usr/local/libpng
[root@localhost libpng-1.5.2]#make
[root@localhost libpng-1.5.2]#make install

 

[root@localhost LAMP]#tar -zxvf jpegsrc.v8c.tar.gz 
[root@localhost LAMP]#cd jpeg-8c/
[root@localhost  jpeg-8c]#mkdir -p /usr/local/jpeg/bin
[root@localhost  jpeg-8c]#mkdir -p /usr/local/jpeg/lib
[root@localhost  jpeg-8c]#mkdir -p /usr/local/jpeg/include
[root@localhost  jpeg-8c]#mkdir -p /usr/local/jpeg/man/man1
[root@localhost jpeg-8c]#./configure
–prefix=/usr/local/jpeg–enable-shared –enable-static
[root@localhost  jpeg-8c]#make
[root@localhost  jpeg-8c]#make install

 

[root@localhost LAMP]#tar zxvf gd-2.0.33.tar.gz 
[root@localhost LAMP]#cd gd-2.0.33

[root@localhostgd-2.0.33]    修改当前目录下的gd_png.c

vigd_png.c
跻身该文件,找到“png.h”改成“/usr/local/libpng/include/png.h”)

[root@localhost gd-2.0.33]#./configure
–prefix=/usr/local/gd–with-jpeg=/usr/local/jpeg
–with-freetype=/usr/local/freetype –with-png=/usr/local/libpng

[root@localhost gd-2.0.33]#make
[root@localhost gd-2.0.33]#make install

 

安装libxml2

[root@localhost LAMP]# tar –zxvf libxml2-2.7.2.tar.gz

[root@localhost LAMP]#cd libxml2-2.7.2

[root@localhost libxml2-2.7.2]# ./configure –prefix=/usr/local/libxml

[root@localhost libxml2-2.7.2]# make

[root@localhost libxml2-2.7.2]# make install

 

安装PHP

[root@localhost LAMP]#tar zxvfphp-5.3.6.tar.gz 
[root@localhost LAMP]#cd php-5.3.6

[root@localhost php-5.3.6]#cd /root/LAMP/php-5.3.6/ext/gd/libgd

[root@localhost libgd]#vi gd_compat.c

[root@localhost libgd]# cd /root/LAMP/php-5.3.6
[root@localhost php-5.3.6]# ./configure–prefix=/usr/local/php
–with-apxs2=/usr/local/apache/bin/apxs–with-gd=/usr/local/gd –enable-gd-native-ttf
–with-jpeg-dir=/usr/local/jpeg   –with-zlib
–with-freetype-dir=/usr/local/freetype–enable-magic-quotes
–with-mysql=/software/mysql–with-mysql-sock=/tmp/mysql.sock
–with-iconv –enable-mbstring
–enable-ftp–with-config-file-path=/usr/local/php/etc
–with-pear=/usr/local/php/pear–enable-sockets
–with-libxml-dir=/usr/local/libxml/

 [root@localhost php-5.3.6]#cd/LAMP/php-5.3.6/

[root@localhost php-5.3.6]#make

[root@localhost php-5.3.6]#make install

[root@localhost php-5.3.6]#cpphp.ini-development
 /usr/local/php/etc/php.ini 【cp php-x.x.x/php.ini-dist
/opt/php/etc/php.ini   新版的
php.ini-development约等于旧版本的php.ini-dist】
[root@localhost LAMP]#vimphp.ini 

修改配置文件vim /usr/local/php/etc/php.ini:
register_globals = On

然后编写php测验页info.php:内容如下:

<?php
phpinfo();
?>

查阅/usr/local/apache/conf/httpd.conf文件,看是或不是留存语句(如若设置的Php5):
LoadModule php5_module       modules/libphp5.so
假定期存款在,即表达apache已经成功加载了php模块;

【重启apache服务】
# apachectl restart
将info.php放置到/usr/local/apache/htdocs 目录下;
# chmod 755 info.php
在浏览器中能在该页面中看出php的音讯则表明安装成功!
注:启用了SELinux的FC或RedHat会提醒权限难题并导致Php不能不荒谬职业,禁止使用SELinux后重启系统就能够缓和难点。

 

Tomcat安装   

tomcat版本:

ApacheTomcat/5.5.9
安装包名称:jakarta-tomcat-5.5.9.tar.gz

 

点此下载:【apr、aprutil、libtool、jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz】

安装tomcat
[root@localhost LAMP]#tar zxvf  jakarta-tomcat-5.5.9.tar.gz
[root@localhost LAMP]#cd jakarta-tomcat-5.5.9
[root@localhost LAMP]#mkdir -p/usr/local/tomcat/
[root@localhost LAMP]#cp -rf   *  
/usr/local/tomcat/【拷贝全体解压出来的文书到/usr/local/tomcat/】
[root@localhost LAMP]#cd  /usr/local/tomcat/bin
[root@localhost bin]#./startup.sh 【启动tomcat】
[root@localhost bin]#./shutdown.sh 【停止tomcat】

 

 

安装apr、aprutil、libtool

 

         安装apr

       [root@localhost LAMP]#tar  zxvf apr-1.4.5.tar.gz
        [root@localhost LAMP]#cd apr-1.4.5
        [root@localhost apr-1.4.5]#./configure
–prefix=/usr/local/apr【最佳指虞诩装目录】
        [root@localhost apr-1.4.5]#make
        [root@localhost apr-1.4.5]#make install

         安装aprutil

       [root@localhost LAMP]# tar  zxvf apr-util-1.3.12.tar.gz 
        [root@localhost LAMP]#cd  apr-util-1.3.12
        [root@localhost apr-util-1.3.12]# ./configure
–prefix=/usr/local/aprutil–with-apr=/usr/local/apr【最佳指定安装目录】
        [root@localhost apr-util-1.3.12]# make
        [root@localhost apr-util-1.3.12]#  make install

 

        安装完apr和aprutil后

   
  [root@localhost apr-util-1.3.12]# ln-s/usr/local/apr/lib/libapr-1.so.0.4.5
/usr/local/apache/lib/libapr-1.so
     
 [root@localhost apr-util-1.3.12]# ln-s/usr/local/apr/lib/libapr-1.so.0.4.5
/usr/local/apache/lib/libapr-1.so.0
     
 [root@localhost apr-util-1.3.12]# ln-s/usr/local/aprutil/lib/libaprutil-1.so.0.3.12/usr/local/apache/lib/libaprutil-1.so
       [root@localhost apr-util-1.3.12]# 
ln-s/usr/local/aprutil/lib/libaprutil-1.so.0.3.12/usr/local/apache/lib/libaprutil-1.so.0

 

 

 

安装libtool

 

 [root@localhost LAMP]#tar   zxvf libtool-2.4.tar.gz

 [root@localhost LAMP]#cd  libtool-2.4

 [root@localhost libtool-2.4]#./configure –prefix=/usr/local/libtool

 [root@localhost libtool-2.4]#make

 [root@localhost libtool-2.4]#make install

 [root@localhost libtool-2.4]#cd   /usr/local/apache/build/

 [root@localhost build]#  rm   -rf   libtool【删除旧版本的libtool】

 [root@localhost build]# ln-s   /usr/local/libtool/bin/libtool
  /usr/local/apache/build/libtool

 

 

安装jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz

 

 [root@localhost LAMP]#tar
zxvfjakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
 [root@localhost
LAMP]#cd jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/
 [root@localhost
native2]#./configure–with-apxs2=/usr/local/apache/bin/apxs 【注意apxs的路径】
 [root@localhost
 native2]# make【一定记得make,不然找不到build/jk2/mod_jk2.so囧
自笔者立刻就忘了。】
 [root@localhost  native2]cd../build/jk2/apache2/
 [root@localhost  native2]/usr/local/apache/bin/apxs-n jk2 -i
mod_jk2.so 【将mod_jk2.so添加到apache2的modules中】
 [root@localhost  native2]cd /usr/local/apache/modules/ 
 [root@localhost  modules]chmod755 mod_jk2.so

上边就实现了汤姆cat和Connectors的安装.

 

 

 

 

接下去实行与Apache的三结合

 

[root@localhost LAMP]#cd  /usr/local/apache/conf/
[root@localhost conf]#vimhttpd.conf 

 

加入LoadModulejk2_modulemodules/mod_jk2.so

 

 

 

接下来在那么些目录新建一文本workers2.properties
[root@localhost conf]#vim workers2.properties

 

[channel.socket:localhost:8009]
port=8009
host=localhost
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/examples/*jsp]
worker=ajp13:localhost:8009

 

[root@localhost conf]#cd /usr/local/tomcat/conf/
[root@localhost conf]#vim server.xml

 

找到当中的<Host>中的<Contest>项,修改相关参数如下,保存退出;
<Contextpath=””docBase=”/opt/apache/htdocs”debug=”0″reloadable=”true”crossContext=”true”/>

 

  

 [root@localhost conf]# /usr/local/tomcat/bin/startup.sh             
 【启动tomcat】
 [root@localhost conf]# /usr/local/apache/bin/apachectl
  restart【重启apache】
 [root@localhost conf]# /etc/init.d/mysqld start                     
         【启动mysql】

结缘实现

  

 

 

 

 

以下内容参照他事他说加以考察:

Mysql 设置数据库密码

 [root@localhost conf]#/etc/init.d/mysqld start
 [root@localhost conf]#mysqladmin -u rootpassword”7710405″
 [root@localhost conf]#mysql –u root –p

 

输入密码回车步向mysql

 

mysql 新建数据库

CREATE DATABASE databasename;

Mysql 承继权限

GRANT ALL PRIVILEGES ON databasename.* TO
wordpresSUSErname@hostnameIDENTIFIED
BY password;

剔除数据库

Drop  database  databasename

 

 

遇到了 SQLException:accessdenied for  @’localhost’ (using password:no)

 

grant all privileges on *.* tojoe@localhost identified by ‘1’;

grant all privileges on databasename.* to beimingluntan@identified by
‘1’;

GRANT ALL PRIVILEGES ON beimingluntan.*
TO ‘beimingluntan’@’localhost’  IDENTIFIED BY
‘beiminglunadmin##’WITH GRANT OPTION

 

flush privileges;【刷新数据库】

附:

    mysql> grant 权限1,权限2,…权限n on 数据库名称.表名称 to
用户名@用户地址 identified by ‘连接口令’; 
     权限1,权限2,…权限n对应
 
 select,insert,update,delete,create,drop,index,alter,grant,references,reload,shutdown,process,file等14个权限。
    当权限1,权限2,…权限n被all
privileges也许all取代,表示给予用户全体权力。
   
当数据库名称.表名称被*.*替代,表示给予用户操作服务器上有着数据库全体表的权位。
   
用户地址能够是localhost,也得以是ip地址、机��名字、域名。也足以用’%’表示从另各州点连接。
    连接口令’不可能为空,不然创造失利。

 

 

 

mysql>grantselect,insert,update,delete,create,drop onvtdc.employee to
joe@10.163.225.87identified by ‘123′;

给来自10.163.225.87的用户joe分配可对数据库vtdc的employee表进行select,insert,update,delete,create,drop等操作的权杖,并设定口令为123。

 

mysql>grant all privilegeson vtdc.* to joe@10.163.225.87identified
by ‘123′;

给来自10.163.225.87的用户joe分配可对数据库vtdc全部表实行富有操作的权位,并设定口令为123。

 

mysql>grant allprivileges on *.* to joe@10.163.225.87identified by
‘123′;

给来自10.163.225.87的用户joe分配可对具有数据库的全部表举办具备操作的权能,并设定口令为123。

 

mysql>grant allprivileges on *.* to joe@localhost identified
by‘123′;

给本机用户joe分配可对具备数据库的全体表举办具备操作的权柄,并设定口令为123。

设置discuz【安装进度可参照discuz论坛】

 

   把安装包上传上去【upload文件夹然后改权限chmod 777
使文件能够访谈,访谈install目录开头安装】

   [root@localhost conf]#cd /usr/local/apache/htdocs/luntan/upload
   [root@localhost upload]#chmod  –R  777  *
   [root@localhost upload]#cp  config_global_default.php
 config_global.php【提醒找不到config_global.php和config_ucenter.php】
  [root@localhost upload]#cp config_ucenter_default.php
 config_ucenter.php

设置WordPress【安装进度可参照WP论坛】

只顾须求手动建设构造数据库【参谋mysql命令】

澳门金沙国际 3

相关文章