centos 下安装:nginx
centos rz sz 命令不能用:
安装maven
mysql 安装,赋权
yum info nginx
yum install nginx
service nginx start
centos rz sz 命令不能用:
yum -y install lrzsz
安装maven
wget "http://apache.fayea.com/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz"
tar -xvf apache-maven-3.0.5-bin.tar.gz
export JAVA_HOME=/soft/jdk1.7.0_79
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export M2_HOME=/soft/apache-maven-3.0.5/
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
mysql 安装,赋权
查看有没有安装过:
yum list installed mysql*
rpm -qa | grep mysql*
查看有没有安装包:
yum list mysql*
安装mysql客户端:
yum install mysql
安装mysql 服务器端:
yum install mysql-server
yum install mysql-devel
mysql配置文件/etc/my.cnf中加入default-character-set=utf8
service mysqld start
grant select,insert,update,delete,drop,create on *.* to lanren@"localhost" Identified by "×××";
grant all privileges on *.* to lanren@"localhost" Identified by "×××××";