rpm -qa|grep -i mysql
rpm -ev mysql-server-5.1.73-5.el6_6.x86_64
如果报:
error: Failed dependencies: libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64 libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6
使用 rpm -e --nodeps mysql-libs-5.1.73-5.el6_6.x86_64
~/.bash_profile
ps -ef|grep java/tomcat ....
解压war包 jar xvf temp.war
由跳板机转到远程机器
ssh root@172.17.15.161
ssh root@172.17.15.183
上传文件:
scp /home/hadoop1/* hadoop1@192.168.197.202:/home/hadoop1/
mysql相关命令
su - mysql
mysql -uroot -p
show databases;
drop database ***;
quit;
exit:退出myql用户,进入root用户
mysql创建表
create database aiomnidb DEFAULT CHARSET=utf8;
创建用户和密码
CREATE USER 'suite'@'localhost' IDENTIFIED BY 'suite123';
赋权限
grant all privileges on ciqasuite.* to suite@'%' identified by 'suite123';
FLUSH PRIVILEGES;
grant all privileges on coc.* to coc@'%' identified by 'coc123';
FLUSH PRIVILEGES;
mysql中往表中导入测试脚本
source /wrok/coc3.4_mysql.sql
mysql停掉服务
service mysqld stop;
service mysqld start;
解压war包时,如果不成功,加上jdk
jdk路径/./jar xvf /work/coc/aibi-ci-3.0.1Beta.war
xvf /work/coc/aibi-ci-3.0.1Beta.war
mysql中表名区分大小写,修改配置项:
/etc/my.cnf
lower_case_table_names=1 #(1为不区分,0为区分大小写。windows默认为1,Unix默认为0)
查看ip ifconfig
查看SSH服务是否开启
/etc/init.d/sshd status
打包
tar czvf tomcat6_coc_18087.tar tomcat6_coc_18087 (第一个参数是打包后的名称,第二个参数是打包前的参数)