1、打开 sshd
2、添加自己的秘钥
3、禁止密码登录
4、yum update -y (更新系统,需要控制台重启)
5、安装nginx yum install -y nginx chkconfig nginx on
6、安装redis yum install -y redis chkconfig redis on
7、安装mysql,mysql不能这么安装,要更新yum源
yum list installed | grep mysql
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
yum repolist all | grep mysql
yum install mysql-community-server
service mysqld start
chkconfig mysqld on
添加账号打开远程访问
mysql -u root
use mysql;
update user set password=PASSWORD('123123') where User='root';
grant all privileges on *.* to root @’%’ identified by '12345678' with grant option;
flush privileges;
8、安装JDK
wget http://softlib.oss-cn-shenzhen.aliyuncs.com/jdk/1.8/jdk-8u74-linux-x64.gz
tar -xvf jdk-8u74-linux-x64.gz
mv jdk1.8.0_74/ /usr/local/jdk1.8
cd /usr/local/
chown -R root:root jdk1.8/
vi /etc/profile
export JAVA_HOME=/usr/local/jdk1.8
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
. /etc/profile