thinkuncle / thinkuncle.github.io

thinkuncle
4 stars 0 forks source link

阿里云ECS 部署环境简易安装 #130

Open thinkuncle opened 6 years ago

thinkuncle commented 6 years ago

公司近期又得重新配置一台ECS服务器,每次整部署环境都没有形成文档,每次都得去网上查,今天弄一个说明文档以供后面参考

服务器配置

ECS linux CPU: 1核 内存: 2 GB 操作系统: Aliyun Linux 17.1 64位

安装环境

检查环境

whereis java whereis mysql whereis redis whereis nginx

安装java

查看阿里云java包 yum list java* 安装

yum install java-1.8.0-openjdk*

ok, 安装完成,查看版本

java -version

安装mysql

参考 #21 rpm -ivh http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm && yum -y install mysql-server mysql

安装tomcat

下载tomcat包

配置开机启动

查看开机启动项

使用chkconfig

chkconfig mysqld on

修改/etc/rc.d/rc.local文件

/etc/rc.d/init.d/mysqld start