procedure of intall and setup centos 6.5
- select webserver install option,and select ,uncheck the postgresql option
selected some “… platform” options
selected all virtualization options
- setup network and check ssh service
ok,now install mysql
开始先下载了mysql的二进制包 发现安装过程各种不顺利,放弃
然后下载源码安装,由于是5.6.15版本 需要cmake,
cmake . 报错
发现gcc也没有,原来是安装系统的时候没有选择Development tools,当时以为是ide之类的 原来是些cmake gcc等之类的开发工具,然后
yum groupinstall "Development tools"
ok搞定,再次cmake
发现报错:Could NOT find Threads (missing: Threads_FOUND)
google之,尝试删掉CMakeCache.txt
安装msyql(cellar目录是我自己建的,可任意):
cmake -DMAKE_INSTALL_PREFIX=/usr/local/cellar/mysql-5.6.15 -DMYSQL_DATADIR=/usr/local/cellar/mysql-5.6.15/data -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_UNIX_ADDR=/usr/local/cellar/mysql-5.6.15/var/run/mysql.sock -DMYSQL_TCP_PORT=3306 -DEXTRA_CHARSETS=all
make && make install
./scripts/mysql_install_db --user=mysql --basedir=/usr/local/cellar/mysql-5.6.15/ --datadir=/usr/local/cellar/mysql-5.6.15/data/
注意:utf8 不要写成utf-8 否则会启动时候出错
然后出现了2个警告:
1、WARNING: The host 'host01.funplus' could not be looked up with /usr/local/cellar/mysql-5.6.15//bin/resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
2、Installing MySQL system tables...2014-01-26 21:38:51 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
mysql 安装成功后提示内容:
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/cellar/mysql-5.6.15//bin/mysqladmin -u root password 'new-password'
/usr/local/cellar/mysql-5.6.15//bin/mysqladmin -u root -h host01.funplus password 'new-password'
Alternatively you can run:
/usr/local/cellar/mysql-5.6.15//bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; /usr/local/cellar/mysql-5.6.15//bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
New default config file was created as /usr/local/cellar/mysql-5.6.15//my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings
5.1.3. Server Command Options
When you start the mysqld server, you can specify program options using any of the methods described inSection 4.2.3, “Specifying Program Options”. The most common methods are to provide options in an option file or on the command line. However, in most cases it is desirable to make sure that the server uses the same options each time it runs. The best way to ensure this is to list them in an option file. See Section 4.2.3.3, “Using Option Files”. That section also describes option file format and syntax.
mysqld reads options from the [mysqld] and [server] groups. mysqld_safe reads options from the[mysqld], [server], [mysqld_safe], and [safe_mysqld] groups. mysql.server reads options from the[mysqld] and [mysql.server] groups.
2.9.4. MySQL Source-Configuration Options
The following table shows the available CMake options. In the Default
column, PREFIX
stands for the value of the CMAKE_INSTALL_PREFIX
option, which specifies the installation base directory. This value is used as the parent location for several of the installation subdirectories.
mysql安装总结:
装了N多次,还是经常出问题,不要选择二进制包,用源码安装,如果不需要更方便配置的话可以用yum安装
cmake的参数官网上有详细介绍,网上搜到的很多处理错误的方法可能是针对低版本的,像mysql 5.6这样比较新的版本不一定适用
基本步骤:
- 下载源码包,解压
- 建立mysql用户和组,并分配指定目录的权限
- cmake编译,注意设定合适的参数
- 到安装后的目录中找到执行./script/mysql_install_db,注意指定user basedir datadir参数
- 启动mysql 可按照提示信息处理
# Preconfiguration setup
shell>groupadd mysql
shell>useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell>tar zxvf mysql-
VERSION
.tar.gz
shell>cd mysql-
VERSION
shell>cmake .
shell>make
shell>make install
# End of source-build specific instructions
# Postinstallation setup
shell>cd /usr/local/mysql
shell>chown -R mysql .
shell>chgrp -R mysql .
shell>scripts/mysql_install_db --user=mysql
shell>chown -R root .
shell>chown -R mysql data
shell>bin/mysqld_safe --user=mysql &
# Next command is optional
shell>cp support-files/mysql.server /etc/init.d/mysql.server
mysql_install_db creates a default option file named my.cnf
in the base installation directory. This file is created from a template included in the distribution package named my-default.cnf
. For more information, seeSection 5.1.2.2, “Using a Sample Default Server Configuration File”.
3、前面由于选了虚拟化相关组件,但是发现版本较低
yum remove kvm
yum install kvm
ok 版本提高了
yum remove libvirt libvirt-client
yum install libvirt libirt-client
发现版本没变 还是0.10.2
procedure of intall and setup centos 6.5的更多相关文章
- centos 7.5 最小化安装
参考:https://www.tecmint.com/centos-7-installation/ ================================================== ...
- Guide to make CentOS 7 the perfect desktop
原文地址: http://www.dedoimedo.com/computers/fedora-pimp.html My original review of CentOS 7 was less e ...
- How to setup SLF4J and LOGBack in a web app - fast--转载
原文:https://wiki.base22.com/display/btg/How+to+setup+SLF4J+and+LOGBack+in+a+web+app+-+fast Logback is ...
- GoldenGate单向复制配置示例
一:环境介绍 --source端 ip地址:192.168.123.10 数据库版本:11.2.0.1.0 32 bit 操作系统版本:centos 4.5 32 bit ogg版本:fbo_ggs_ ...
- oracle ogg 单实例双向复制搭建(oracle-oracle)--Oracle GoldenGate
oracle ogg 单实例双向复制搭建(oracle-oracle)--Oracle GoldenGate --继昨天的测试,这一篇实施单实例双向复制(完全重新搭建) --环境不变 db1,db2( ...
- windows ntp安装及调试
Setting up NTP on Windows It's very helpful that Meinberg have provided an installer for the highly- ...
- 搭建一个Oracle到Oracle的Goldengate双向复制环境
目标:搭建一个Oracle到Oracle的Goldengate双向复制环境(支持DDL+DML). 环境: OS:Red Hat Enterprise Linux Server release 5.5 ...
- Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 3
DDL Setup Steps SQL> grant execute on utl_file to ggs; Grant succeeded. Create GLOBALS file [orac ...
- Linux网络属性管理
Linux网络属性管理 局域网:以太网,令牌环网 Ethernet: CSMA/CD 冲突域 广播域 MAC:Media Access Control 48bits: 24bits: 24bits: ...
随机推荐
- 如何快速备份还原Sql Server 数据库
备份数据库 选择你要备份的数据库,鼠标右键单击,选择任务-备份 弹出备份数据库窗口,选择添加 弹出选择备份目标窗口,点击浏览,选择存放备份数据库的目录,输入文件名,后缀名输入.bak,点击确定,确定, ...
- winform从table1获取需要的数据转存储到table2中
小技术一个,记录一下 ,以下记录的是用两种方式来实现,数据表的转移 table转存数据之前首先要明确两个函数: Add():是指在最后一行添加一行 InsertAt():可以插入到表中的指定行 需求: ...
- [linux] C语言Linux系统编程进程基本概念
1.如果说文件是unix系统最重要的抽象概念,那么进程仅次于文件.进程是执行中的目标代码:活动的.生存的.运行的程序. 除了目标代码进程还包含数据.资源.状态以及虚拟化的计算机. 2.进程体系: 每一 ...
- 十九、异步任务编排CompletableFuture
一.简介 并发编程中我们经常创建异步线程来执行任务.但是,当异步任务之间存在依赖关系时,使得我们开发过程变得更加复杂.比如: 1.线程2依赖于线程1的执行结果 2.线程3依赖于线程1和线程2执行结果的 ...
- Spring Boot 打包jar部署服务器
部署方式:打包成jar部署 部署方式有两种,一种是传统的war包,另一种是打包成jar,推荐第二种方式部署 部署准备 1. jar包内置tomcat,无需服务器安装tomcat环境 2.需要JDK,且 ...
- InfluxDB 的用户
InfluxDB 的用户有三种: cluster admin 集群admin database admin 数据库admin database user 数据库用户 cluster admin ...
- linux-ubuntu安装配置uwsgi
参考原文 对于 Python2.x 版本:(测试通过) 第一步:sudo apt-get install python-dev 第二步:sudo apt-get install python-pip ...
- String拾遗
简介: String作为日常最常用的类,还是有必要对其中的细节做一些了解的,这篇就结合源码来看看这个常用的类. 一. 总述 类图如下: 从图中可以看到String是实现了 java.io.Serial ...
- React Native中的远程调试是不可靠的
一.原因 当您发现rn app在关闭远程调试后,一些功能无法正常工作时,这很可能是由于设备上的JavaScript执行环境与远程调试器之间的细微差别造成的. 例如,日期问题,Date构造函数似乎接受C ...
- cf1060D. Social Circles(贪心)
题意 题目链接 Sol 我是这样考虑的:从大到小考虑每个\(l, r\),最大的\(l\)应该和最大的\(r\)匹配(不然就亏了),其次次大的\(r\)应该和次大的\(l\)匹配 然后就过了.. /* ...