《Linux系统MAS安装步骤.doc》由会员分享,可在线阅读,更多相关《Linux系统MAS安装步骤.doc(3页珍藏版)》请在金锄头文库上搜索。
1、连接成功后的提示信息SSH Secure Shell 3.2.9 (Build 283)Copyright (c) 2000-2003 SSH Communications Security Corp - http:/ copy of SSH Secure Shell is a non-commercial version.This version does not include PKI and PKCS #11 functionality.Last login: Thu Apr 12 10:24:24 2012rootlocalhost # rootlocalhost # rootloca
2、lhost # 连接成功后,首先要把安装文件,传送到 /usr/local文件夹下传送完毕之后:rootlocalhost # cd /usr/local 进入/usr/local文件夹下rootlocalhost local# ls 查看当前文件夹下的文件目录bin games jakarta-tomcat-4.1.30.tar.gz lib mas1.2+p09r004.zip MySQL-server-4.0.20-0.i386.rpm sbin srcetc include jdk-1_5_0_06-linux-i586.bin libexec MySQL-client-4.0.20-
3、0.i386.rpm new12mas.tar.gz sharerootlocalhost local#rootlocalhost local# rpm -qa|grep -i mysql 查看当前MYSQL的版本信息,因为木有提示信息,所以表示本机没有安装。rootlocalhost local# rpm -ivh MySQL-server-4.0.20-0.i386.rpm 安装MYSQL服务器端Preparing. # 100% 1:MySQL-server # 100%rootlocalhost local# rpm -ivh MySQL-client-4.0.20-0.i386.rp
4、m 安装MYSQL客户端Preparing. # 100% 1:MySQL-client # 100%rootlocalhost local# rootlocalhost local# mysql 使用此命令进入 mysql配置模式ERROR 2002: Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)此处发现错误。我们重新卸载安装一下rootlocalhost local# rpm -qa|grep -i mysql 查看版本信息MySQL-server-4.0.20-0MySQL-
5、client-4.0.20-0rootlocalhost local# rpm -e -nodeps MySQL-server-4.0.20-0 卸载rootlocalhost local# rpm -e -nodeps MySQL-client-4.0.20-0 卸载rootlocalhost local# rpm -qa|grep -i mysql 查看版本信息,没有提示。卸载完成。我们还需要手动删除MYSQL的 数据文件rootlocalhost local# cd /var/lib 进入 MYSQL存放的文件夹rootlocalhost lib# ls 查看当前所有目录alternat
6、ives dav dhcpv6 hsqldb logrotate.status multipath ntp scrollkeeper statelessbluetooth dbus games htdig misc mysql random-seed sepolgen xkbcs dhclient hal ibmasm mlocate nfs rpm setroubleshoot yumrootlocalhost lib# rm -rf mysql 强制删除MYSQL文件夹rootlocalhost lib# 重新安装步骤省略rootlocalhost lib#my sql进入Mysql命令模
7、式运行下列命令use mysql;update user set host = % where host = MASServer;grant all on *.* to maslocalhost identified by jx56781234 with grant option;grant all on *.* to mas% identified by jx56781234 with grant option;grant all on *.* to root% identified by jassonsoft_mas08db with grant option;delete from us
8、er where user = ;flush privileges;rootMasSever local# unzip mas1.2+p09r004.zip 安装MASrootMasSever local# cd mas 进入MAS安装目录拷贝下列文件到系统文件夹rootMasSever mas# cp -r iptables /etc/sysconfig cp:是否覆盖“/etc/sysconfig/iptables”? yesrootMasSever mas# cp -r profile /etc/cp:是否覆盖“/etc/profile”? yesrootMasSever mas# rp
9、 -r rc.lcoal /etc/-bash: rp: command not foundrootMasSever mas# lsapp common file id jasson.license login.jsp onestop.mid profile wapbak css icon images js mas onlinehelp rc.local wapappbillback error-page icon_s iptables logback mas1.2p09r004.sql patch tmp WEB-INFrootMasSever mas# cp -r rc.local /e
10、tc/cp:是否覆盖“/etc/rc.local”? yrootMasSever mas# cp -r jasson.license /etc/rc.d/cp:是否覆盖“/etc/rc.d/jasson.license”? yrootMasSever mas# mysqladmin create mas rootMasSever mas# mysql masmas1.2p09r004.sql rootMasSever mas# service mysql restartKilling mysqld with pid 2793Wait for mysqld to exit. donerootMasSever mas#