亚洲城ca88手机版官网WordPress整合安装,7下源码编写翻翻译并配词置

亚洲城ca88手机版官网

MySQL安装

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

详见陈诉在CentOS
7下源码编写翻译配置 Apache2.4+MySQL5.6+PHP7.1的长河。

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

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

1:安装mysql:

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

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

这边接纳mysql5.6版本,5.7版本编写翻译时间必要多少个钟头。

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

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

编写翻译安装蒙受:

用户名:www.linuxidc.com

用户名:www.linuxidc.com

yum -y installmake gcc-c++ cmake bison-devel  ncurses-devel gcc\
autoconf automake zlib* fiex* libxml* libmcrypt*
libtool-ltdl-devel*

密码:www.muu.cc

密码:www.muu.cc

下载mysql5.6

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

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

wget  
tarxvf mysql-5.6.16.tar.gz 
cd mysql-5.6.16 

下载格局见这里

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

编写翻译源码:

率先安装Cmake与Libmcrypt

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

新建下目录:

Cmake

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

mkdir /usr/local/mysql 
mkdir /data/mysql/data 

tar -zxvf cmake-2.8.4.tar.gz

下载格局见这里

安顿部分信息:

cd cmake-2.8.4

相关阅读:
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 【Tomcat的安装整合】
http://www.linuxidc.com/Linux/2011-07/38646.htm

cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql\
-DMYSQL_DATADIR=/data/mysql/data\
-DSYSCONFDIR=/etc\
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DMYSQL_UNIX_ADDR=/tmp/mysql/mysql.sock \
-DMYSQL_TCP_PORT=3306 \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_PARTITION_STORAGE_ENGINE=1 \
-DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci

./bootstrap

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

来看最终输出:Build files have been written to:xxxxxxx注明编写翻译成功

make

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

编写翻译源码:

make install

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

make && make install(备注:编写翻译时间相当慢,耐心等待…)

Libmcrypt

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

修改文件权限:

tar -zxvf libmcrypt-2.5.8.tar.gz

Php版本:   PHP Version 5.3.6

groupadd mysql
useradd -r -g mysql mysql
cd /usr/local/mysql
chown -R mysql:mysql .
scripts/mysql_install_db –user=mysql –ldata=/data/mysql/data
chown -R root .
chown -R mysql data

cd libmcrypt-2.5.8

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

设置配置文件:

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

Tomcat版本:Apache Tomcat/5.5.9

vim /etc/my.cnf

make

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

配备如下:

make install

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

[client]
port=3306
socket=/tmp/mysql.sock

安装Mysql

安装包名称:Discuz_X2_SC_UTF8.zip

[mysqld]
port=3306
bind-address=127.0.0.1
basedir=/usr/local/mysql
datadir=/data/mysql/data
socket=/tmp/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security
risks
symbolic-links=0

[root@www.linuxidc.com~]# groupadd
mysql

WordPress版本:WordPress 3.2

############# default settings
################
# time zone
default-time-zone = system
character-set-server = utf8
default-storage-engine = InnoDB

[root@www.linuxidc.com~]# useradd -g
mysql -s/sbin/nologin mysql

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

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[root@www.linuxidc.com~]# mkdir
-p/storage/db/mysql_data

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

启动Mysql:

[root@www.linuxidc.com~]# mkdir -p
/software/mysql

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

cd /usr/local/mysql/support-files
./mysql.server start

[root@www.linuxidc.com~]# mkdir -p
/etc/mysql

设置确认保障以下系统相关库文件
gcc|gcc-c++|autoconf|automake|zlib*亚洲城ca88手机版官网,|libxml*|ncurses-devel|libmcrypt*|libtool*(libtool-ltdl-devel*)
rpm –qa |grep name【查询】
持有软件安装目录:/usr/local/         源代码目录:/LAMP/
Mysql安装目录:  /software/mysql/  数据库目录: /storage/db/mysql_data

安装开机运行:

[root@www.linuxidc.comopt]# tar
zxvfmysql-5.5.13.tar.gz

JDK安装

chkconfig –add mysql
##部分系统必要下边包车型地铁
chkconfig –level 345 mysql on

[root@www.linuxidc.comopt]# cd
mysql-5.5.13

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

文件目录

[root@www.linuxidc.commysql-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

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

/data/mysql/data  //存款和储蓄数据表目录

[root@www.linuxidc.commysql-5.5.13]#
make &&make install

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

/etc/my.cnf    //mysql 配置文件

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

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

/usr/local/mysql  //mysql安装目录

[root@www.linuxidc.commysql-5.5.13]#
chown -R mysql/storage/db/mysql_data/

Unpacking…

/usr/local/mysql/bin/mysql -u 账户 -p 密码  //登录到mysql

[root@www.linuxidc.commysql-5.5.13]# chgrp -R mysql/storage/db/mysql_data/

Checksumming…

/usr/local/mysql/support-files/mysql.server start|stop|restart 
//运转暂停重启

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

Extracting…

2:安装Apache:

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

……

此处选择Apache2.4版本。

[root@www.linuxidc.commysql-5.5.13]# chmod 755/etc/init.d/mysqld

Press Enter tocontinue…..

Apache2.4依赖包:

[root@www.linuxidc.commysql-5.5.13]# vim/etc/init.d/mysqld

Done

apr-1.46.tar.gz    下载:wget

basedir=/software/mysql

[root@localhost LAMP]# ls

apr-util-1.5.1.tar.gz  下载:wget

datadir=/storage/db/mysql_data

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

pcre-8.32.tar.gz    下载:wget

[root@www.linuxidc.commysql_data]# /etc/init.d/mysqld  start

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

apache2.4 下载:wget

StartingMySQL[  OK  ]

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

安装apr:

[root@www.linuxidc.combin]# vim
/etc/profile

 

#tar -zxvf apr-1.46.tar.gz
#cd apr-1.46
#./configure –prefix=/usr/local/apr
#make
#make install

exportPATH=$PATH:/software/mysql/bin

        package jdk-1.6.0_25-fcs.i586 isalready installed

安装apr-util:

[root@www.linuxidc.combin]# source
/etc/profile

翻看/usr/local/目录下是还是不是有java目录

#tar -zxvf apr-util-1.5.1.tar.gz
#cd apr-util-1.5.1
#./configure –with-apr=/usr/local/apr
#make
#make install

[root@www.linuxidc.combin]# mysql

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

安装pcre:

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

[root@localhostLAMP]#vim /etc/profile

#tar -zxvf pcre-8.32.tar.gz
#cd  pcre-8.32
#./configure –prefix=/usr/local/pcre(此处出现configure: error: You
need a C++ compiler for C++ support
#sudo apt-get install g++)
#make
#make install

Your MySQLconnection id is 2

exportJAVA_HOME=/usr/java/jdk1.6.0_25

安装apache2.4:

Server version:5.5.13-log Source
distribution

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

#tar -zxvf httpd-2.4.4.tar.gz
#cd httpd-2.4.4
#./configure –prefix=/usr/local/apache –enable-so
–with-apr=/usr/local/apr/ –with-apr-util=/usr/local/apr/
–with-pcre=/usr/local/pcre/
#make
#make install

 

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

布置文件:

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

[root@localhost LAMP]# source /etc/profile
与上述同类可以使配置文件的开始和结果及时见效;

vim /usr/local/apache/conf/httpd.conf
在“#ServerName www.example.com:80”上面加多一行如下:
ServerName localhost:80

 

万一JDK配置不错的话,运营方面包车型大巴指令将会并发JDK的相应版本。

运维服务:

Oracle is aregistered trademark of Oracle
Corporation and/or its

[root@localhost~]# java -version

usr/local/apache/bin/apachectl start

affiliates. Othernames may be trademarks of
their respective

java version “1.6.0_25”

浏览器输入localhost,彰显”It works!”

owners. 

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

(注:实体机不能够访谈设想机web服务器,能够输入 /sbin/iptables -I INPUT -p
tcp –dport 80 -j ACCEPT(将这里的80改为团结的web服务器的端口号))

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

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

3:安装PHP7:

mysql>

 

php-7.1.2.tar.gz:下载:wget

[root@www.linuxidc.com~]# chkconfig
mysqld on

 

安装php:

[root@www.linuxidc.com~]# chkconfig
–level 24 mysqldoff

参考:

#tar zxvf php-7.1.2.tar.gz
#cd php-7.1.2
#./configure –prefix=/usr/local/php7 \
 –with-apxs2=/usr/local/apache2/bin/apxs \
 –with-curl \
 –with-freetype-dir \
 –with-gd \
 –with-gettext \
 –with-iconv-dir \
 –with-kerberos \
 –with-libdir=lib64 \
 –with-libxml-dir \
 –with-mysqli \
 –with-openssl \
 –with-pcre-regex \
 –with-pdo-mysql \
 –with-pdo-sqlite \
 –with-pear \
 –with-png-dir \
 –with-xmlrpc \
 –with-xsl \
 –with-zlib \
 –enable-fpm \
 –enable-bcmath \
 –enable-libxml \
 –enable-inline-optimization \
 –enable-gd-native-ttf \
 –enable-mbregex \
 –enable-mbstring \
 –enable-opcache \
 –enable-pcntl \
 –enable-shmop \
 –enable-soap \
 –enable-sockets \
 –enable-sysvsem \
 –enable-xml \
 –enable-zip
#make
#make install

[root@www.linuxidc.com~]# chkconfig
–list mysqld

 

最后到php的解压目录复制一下php的铺排文件

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

Apache安装

#cp php.ini-development /usr/local/php/lib/php.ini 

[root@www.linuxidc.comlib]# vim
/etc/ld.so.conf

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

重启Apache服务,然后写一个大约的检查实验文件呢。

/software/mysql/lib

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

<?php
    phpinfo();
?>

[root@www.linuxidc.com~]# ldconfig -v
|grep mysql

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

把PHP插足遭逢变量

/software/mysql/lib:

[root@localhost LAMP]#cd httpd-2.2.19

#vim /etc/profile

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

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

在文件末尾加上如下两行代码

相关阅读:
LAMP+Tomcat+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

[root@localhost LAMP]#make

PATH=$PATH:/usr/local/php7/bin 
export PATH

亚洲城ca88手机版官网 1

[root@localhost LAMP]#make install

下一场实践命令 #source /etc/profile 或实践点命令 #./profile
使其修改生效,施行完可因而 #echo $PATH命令查看是还是不是丰裕成功

 

越来越多Apache相关教程见以下内容

修改配置文件

CentOS6.8编写翻译安装Apache2.4.25、MySQL5.7.16、PHP5.6.29 
http://www.linuxidc.com/Linux/2016-12/138993.htm

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

CentOS 6.6下安装Apache 2.2.31
http://www.linuxidc.com/Linux/2017-02/140803.htm

ServerName127.0.0.1:80

Apache 配置多站点访谈及二级域名配置 
http://www.linuxidc.com/Linux/2017-03/141339.htm

<IfModuledir_module>

Ubuntu 16.04
LTS安装Apache2+PHP7.0+MySQL+phpMyAdmin图像和文字详解 
http://www.linuxidc.com/Linux/2017-02/140098.htm

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

CentOS 6下Apache和Tomcat整合 
http://www.linuxidc.com/Linux/2017-04/143021.htm

</IfModule>

Apache启用gzip压缩模块节约网站带宽 
http://www.linuxidc.com/Linux/2017-04/142821.htm

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

Apache 配置 https 
http://www.linuxidc.com/Linux/2017-02/140801.htm

# probably shoulddefine those extensions to indicate media types:

利用Apache搭建Web网址服务器 
http://www.linuxidc.com/Linux/2017-05/143468.htm

AddTypeapplication/x-compress .Z

Linux下Apache安装及实例 
http://www.linuxidc.com/Linux/2017-02/140800.htm

AddTypeapplication/x-gzip .gz .tgz

Apache2.4.6服务器安装及配置 
http://www.linuxidc.com/Linux/2017-01/140006.htm

AddTypeapplication/x-httpd-php .php

Ubuntu 16.04下搭建Web服务器(MySQL+PHP+Apache) 教程 
http://www.linuxidc.com/Linux/2017-01/139570.htm

AddTypeapplication/x-httpd-php-source .phps

Ubuntu/CentOS下Apache多站点配置 
http://www.linuxidc.com/Linux/2017-05/143590.htm

 

CentOS 7下 Apache 2.4.18编写翻译安装详解 
http://www.linuxidc.com/Linux/2017-03/142003.htm

到此结束,运转参数

正文永恒更新链接地址:http://www.linuxidc.com/Linux/2017-10/148100.htm

/usr/local/apache/bin/apachectlstart

亚洲城ca88手机版官网 2

/usr/local/apache/bin/apachectlstop

/usr/local/apache/bin/apachectlrestart

 

末尾参谋[或者有荒唐]:

[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

 

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

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

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

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

 

 

 

Mysql安装

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

率先安装Cmake与Libmcrypt

Cmake

tar -zxvf cmake-2.8.5.tar.gz

cd cmake-2.8.5

./bootstrap

make

make install

 

 

Libmcrypt

tar -zxvf libmcrypt-2.5.8.tar.gz

cd libmcrypt-2.5.8

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

make

make install

 

安装Mysql

[root@mail ~]# groupadd mysql

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

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

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

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

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

[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未设置成功】

[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/

[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【注意路线】

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

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

basedir=/software/mysql

datadir=/storage/db/mysql_data

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

StartingMySQL[  OK  ]

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

exportPATH=$PATH:/software/mysql/bin

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

[root@mail bin]# mysql

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

Your MySQLconnection id is 2

Server version:5.5.13-log Source distribution

 

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

 

Oracle is aregistered trademark of Oracle Corporation and/or its

affiliates. Othernames may be trademarks of their respective

owners.

 

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

 

mysql>

[root@mail ~]# chkconfig mysqld on

[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

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

/software/mysql/lib

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

/software/mysql/lib:

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

 

 

参考:

 

 

 


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

下边就完事了Tomcat和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命令】

亚洲城ca88手机版官网 3

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图