linux下libevent及mysql的编译
来源:互联网 发布:淘宝下拉框关键词提取 编辑:程序博客网 时间:2024/06/05 20:53
=====================================================
Part B: Building LibEvent
--------------------------
1, cd /root/
2, tar -xzvf libevent-1.4.8-stable.tar.gz
3, cd libevent-1.4.8-stable
4, ./configure
5, make && make install
6, ls -a .libs/
Part C: mysql
1. 安装mysql-5.0.22服务端:
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> tar -xvzf mysql-5.0.22.tar.gz
shell> cd mysql-5.0.22
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> make clean //这是清除产生的一些临时文件
shell> cp support-files/my-medium.cnf /etc/my.cnf or
shell> cp/usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root . //设置权限
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &
其它设设置:
# cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //开机自动启动 mysql。
# chmod 755 /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
#添加LIB PATH
echo "/usr/local/mysql/lib" >> /etc/ld.so.conf && ldconfig
vi /etc/my.cnf
修改 MySQL 配置,增加部分优化参数,如下:
[mysqld]
ft_min_word_len=2
运行以下命令即可启动 MySQL 服务器:
# /etc/rc.d/init.d/mysqld start //启动 MySQL
# bin/mysqladmin -u root password "password_for_root" //修改mysql root帐户的密码
# service mysqld stop //关闭 MySQL
- linux下libevent及mysql的编译
- windows下编译及使用libevent
- windows下编译及使用libevent
- windows下编译及使用libevent
- windows下编译及使用libevent
- windows下编译及使用libevent
- VS2013 windows下编译及使用libevent
- windows下编译及使用libevent
- windows下编译及使用libevent
- 【云隐】windows下编译及使用libevent
- LINUX下libevent编译&&demo运行
- linux环境下,mysql UDF的实现编译及安装
- Linux下libevent的安装
- libevent 在windows下的编译过程
- libevent 在windows下的编译过程
- Linux之libevent的编译&测试
- Windows下编译libevent
- Windows下编译libevent
- 转: 嵌入式linux下usb驱动开发方法--看完少走弯路
- 用ACE实现的生产者和消费者模式
- FLEX
- ptlib编译
- div+css简单作品
- linux下libevent及mysql的编译
- 使用 screen 管理你的远程会话
- eclipse,tomcat解决内存问题技术文章
- Infragistics netadvantage UltraGrid (UltraWinGrid) 编程手记
- L
- SQL*PLUS命令的使用大全
- 五种常见的ASP.NET安全缺陷
- DES解密时“Base-64字符数组的无效长度”
- ptlib libevent