预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共12页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

Apache编译安装 解压配置 编译并安装即可 或者直接配置编译安装 安装mysql 创建运行mysql的帐号 解压配置编译安装 ------------------------------------------------------------------------- Error:Nocurses/termcaplibraryfound问题原因没有curses/termcap支持的软件包 解决方法:yum-yinstalllibtermcap-develncurses-5.2.tar.gz -------------------------------------------------------------------------- 建立配置文件 初始化数据库/var [root@localhostmysql-5.0.56]#/usr/local/mysql/bin/mysql_install_db--user=mysql 修改主目录/usr/local/mysql权限,和数据库目录/var权限 [root@localhostmysql]#chown-Rroot:mysql/usr/local/mysql/ [root@localhostmysql]#chown-Rmysql/usr/local/mysql/var/ 调整lib库路径 Mysql安装到非标准路径中,所以还需要将mysql的库文件路径/usr/local/mysql/lib/mysql加入到系统库文件搜索路径中以便在需要的时候能够自动搜索到。 [root@localhostmysql]#echo"/usr/local/mysql/lib/mysql/">>/etc/ld.so.conf [root@localhostmysql]#ldconfig [root@localhostmysql]#cat/etc/ld.so.conf includeld.so.conf.d/*.conf /usr/local/mysql/lib/mysql/ [root@localhostmysql]# 启动mysql服务 使用mysqld_safa脚本启动服务 [root@localhostmysql]#/usr/local/mysql/bin/mysqld_safe--user=mysql& [1]2419 [root@localhostmysql]#Startingmysqlddaemonwithdatabasesfrom/usr/local/mysql/var [root@localhostmysql]#netstat-anpt|grep:3306 tcp000.0.0.0:33060.0.0.0:*LISTEN2445/mysqld [root@localhostmysql]# 2.将mysqld添加为系统服务 把解压目录下的support-files中的mysql.servercp到/etc/init..d中改名为mysqld [root@localhostmysql]#cp/root/mysql-5.0.56/support-files/mysql.server/etc/init.d/mysqld [root@localhostmysql]#chmod+x/etc/init.d/mysqld [root@localhostmysql]#chkconfig--addmysqld [root@localhostmysql]#chkconfigmysqldon [root@localhostmysql]#chkconfig--level35mysqldon [root@localhostmysql]#servicemysqldrestart ShuttingdownMySQLSTOPPINGserverfrompidfile/usr/local/mysql/var/localhost.localdomain.pid 12030422:49:27mysqldended [OK] StartingMySQL[OK] [1]+Done/usr/local/mysql/bin/mysqld_safe--user=mysql [root@localhostmysql]# 为了方便使用mysql命令可以修改环境变量PATH把mysql命令存放路径添加进去 [root@localhostmysql]#exportPATH=$PATH:/usr/local/mysql/bin/ [root@localhostmysql]#echo$PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/loc