欢迎来到天天文库
浏览记录
ID:44315640
大小:244.66 KB
页数:23页
时间:2019-10-20
《综合项目实施文档》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、综合项目实施文档cttjpgpngbmpflrfjt...务A第8tNGSMX监桧岚务flfMySQLS吹GNBDServer(Clvm+GFS)MySQL>Maste2、nuxServerrelease5.4。、MySQL服务器的安装MySQL的安装,本次使用MySQL的安装版本为5.5.8的源码包,在安装之前,先对三台MySQL的服器的IP以及主机名进行划分。MySQL主服务器IP:192.168.2.131/24,主机名:master.mysql.comMySQLSlave服务器IP:192.168.2.13^4主机名:slave.mysql.comMySQL备用服务器IP:192.168.2.13^24主机名:back.mysql.com1、MySQL主服器的安装a)定义静态IP#vim/etc/sysconfig/network-script3、s/ifcfg-ethO#AdvancedMicroDevices[AMD]79c970[PCnet32LANCE]DEVICE=ethOBOOTPROTO=staticIPADDR=192.168.2.131NETMASK=255.255.255.0GATEWAY=192.168.2.1ONBOOT=yesb)定义主机名#vim/etc/sysconfig/networkNETWORKING=yesNETW0RKINGJPV6二noHOSTNAME=master.mysql.comc)在本地/etc/hosts文件中绑定三台MySQL服务器的主机名#vim/etc/hosts1274、.0.0.1localhost.localdomainlocalhost::1Iocalhost6.localdomain6Iocalhost6192.168.2.131master.mysql.com192.168.2.132slave.mysql.com192.168.2.133back.mysql.comd)安装MySQL5・5・8.源码包i.建立mysql帐户#useradd・u27・s/sbin/nologinmysqlii.安装cmake编辑工具cmake-2.8.3#tar・xvfcmake-2.8.3.tar.gz・C/usr/src&&cd/usr/src/cmak5、e-2.8.3#./configure&&make&&makeinstalliii・使用cmake配置MySQL,并编辑安装MsqSQL1.#tar・xvf/mnt/mysql/mysql・5・5.&cmake・2・8・3・tar.gz-C/usr/src&&cd/usr/src/mysql-5.5.^2.#cmake.-LAH〃查看所有的配置参数,也可参考官档3.#cmake・DCMAKE」NSTALL_PREFIX=/usr/local/mysql・DDEFAULT_CHARSET=utf8・DENABLED_LOCAl__INFILE二ON-DENABLED_PROFILING6、二ON-DWITH_INNOBASE_STORAGE_ENGINE=1・DWITH_ARCHIVE_STORAGE_ENGINE=1-DWITHEXTRACHARSETS=all编辑选项说明・DCMAKE」NSTALL_PREFIX=/usr/local/mysql〃指定MySQL的安装目录-DDEFAULT_CHARSET〃指定MySQL默认的字符集・DENABLED_LOCAL_INFILE〃允许从本地文件导入数据・DWITHJNNOBASE_STORAGE_ENGINE〃安装innobase引擎-DWITH_EXTRA_CHARSETS〃安装扩展字符集1.#make-j2&&m7、akeinstall〃・j指定几个CPU核心去编译2.更改/usr/local/mysql目录及子目的拥有者#chown・Rmysqkmysql/usr/local/mysql/3.建立mysql配置文件〃用下面命令可以获得配置文件的相关参数#/usr/local/mysql/bin/mysqld・-verbose・-help#vim/etc/my.cnfdatadir=/datauser=mysqlsocket=/data/mysqld.sockport
2、nuxServerrelease5.4。、MySQL服务器的安装MySQL的安装,本次使用MySQL的安装版本为5.5.8的源码包,在安装之前,先对三台MySQL的服器的IP以及主机名进行划分。MySQL主服务器IP:192.168.2.131/24,主机名:master.mysql.comMySQLSlave服务器IP:192.168.2.13^4主机名:slave.mysql.comMySQL备用服务器IP:192.168.2.13^24主机名:back.mysql.com1、MySQL主服器的安装a)定义静态IP#vim/etc/sysconfig/network-script
3、s/ifcfg-ethO#AdvancedMicroDevices[AMD]79c970[PCnet32LANCE]DEVICE=ethOBOOTPROTO=staticIPADDR=192.168.2.131NETMASK=255.255.255.0GATEWAY=192.168.2.1ONBOOT=yesb)定义主机名#vim/etc/sysconfig/networkNETWORKING=yesNETW0RKINGJPV6二noHOSTNAME=master.mysql.comc)在本地/etc/hosts文件中绑定三台MySQL服务器的主机名#vim/etc/hosts127
4、.0.0.1localhost.localdomainlocalhost::1Iocalhost6.localdomain6Iocalhost6192.168.2.131master.mysql.com192.168.2.132slave.mysql.com192.168.2.133back.mysql.comd)安装MySQL5・5・8.源码包i.建立mysql帐户#useradd・u27・s/sbin/nologinmysqlii.安装cmake编辑工具cmake-2.8.3#tar・xvfcmake-2.8.3.tar.gz・C/usr/src&&cd/usr/src/cmak
5、e-2.8.3#./configure&&make&&makeinstalliii・使用cmake配置MySQL,并编辑安装MsqSQL1.#tar・xvf/mnt/mysql/mysql・5・5.&cmake・2・8・3・tar.gz-C/usr/src&&cd/usr/src/mysql-5.5.^2.#cmake.-LAH〃查看所有的配置参数,也可参考官档3.#cmake・DCMAKE」NSTALL_PREFIX=/usr/local/mysql・DDEFAULT_CHARSET=utf8・DENABLED_LOCAl__INFILE二ON-DENABLED_PROFILING
6、二ON-DWITH_INNOBASE_STORAGE_ENGINE=1・DWITH_ARCHIVE_STORAGE_ENGINE=1-DWITHEXTRACHARSETS=all编辑选项说明・DCMAKE」NSTALL_PREFIX=/usr/local/mysql〃指定MySQL的安装目录-DDEFAULT_CHARSET〃指定MySQL默认的字符集・DENABLED_LOCAL_INFILE〃允许从本地文件导入数据・DWITHJNNOBASE_STORAGE_ENGINE〃安装innobase引擎-DWITH_EXTRA_CHARSETS〃安装扩展字符集1.#make-j2&&m
7、akeinstall〃・j指定几个CPU核心去编译2.更改/usr/local/mysql目录及子目的拥有者#chown・Rmysqkmysql/usr/local/mysql/3.建立mysql配置文件〃用下面命令可以获得配置文件的相关参数#/usr/local/mysql/bin/mysqld・-verbose・-help#vim/etc/my.cnfdatadir=/datauser=mysqlsocket=/data/mysqld.sockport
此文档下载收益归作者所有