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