nginx+tomcat自动化安装方法
来源:互联网 发布:软件开发工作量估算 编辑:程序博客网 时间:2024/06/01 07:18
nginx+tomcat自动化安装方法
今天在研究nginx+tomcat的部署方法,写了个脚本,测试自动部署。
!#/bin/bash#脚本执行环境初始化yum install -y mlocateyum update gccyum -y install pcre-develyum -y install openssl openssl-develcd /home/soft/#安装nginx wget http://nginx.org/download/nginx-1.11.3.tar.gztar -xzvf nginx-1.11.3.tar.gzcd nginx-1.11.3./configure --prefix=/usr/local/nginx-1.11.3make && make installmake testmake clean && make distclean;cd ../#安装tomcatwget http://apache.fayea.com/tomcat/tomcat-9/v9.0.0.M9/src/apache-tomcat-9.0.0.M9-src.tar.gztar -xzvf apache-tomcat-9.0.0.M9-src.tar.gzcd apache-tomcat-9.0.0.M9-src./configure --prefix=/usr/local/apache-tomcat-9.0.0.M9-srcmake && make installmake testmake clean && make distcleancd ../#安装mysqlwget http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.32.tar.gztar -xzvf mysql-5.6.32.tar.gzcd mysql-5.6.32./configure --prefx=/usr/local/mysql-5.6.32make && make installmake testmake clean && make distcleancd ../#设定nignx服务自启动cp /usr/nginx-1.11.3/sbin/nginx /etc/init.d/nginxchmod --add /etc/init.d/nginxchmod nginx onchmod nginx statusservice nginx restart#设置tomcat服务自启动cp /usr/apache-tomcat-9.0.0.M9-src/bin/tomcat /etc/init.d/tomcatchmod --add /etc/init.d/tomcatchmod tomcat onchmod tomcat statusservice tomcat restart#设定mysql服务自启动
1 0
- nginx+tomcat自动化安装方法
- nginx tomcat集群安装
- nginx安装&tomcat集群
- Saltstack自动化源码编译安装Nginx
- nginx安装和nginx、tomcat集群配置
- Nginx+tomcat整合安装配置
- Nginx+tomcat整合安装配置
- linux 安装java tomcat nginx
- Nginx安装,及集群tomcat
- Nginx和Tomcat安装记录
- Centos安装配置nginx+tomcat
- nginx+tomcat集群安装配置
- tomcat、nginx压力测试方法
- nginx安装方法
- 【1】Nginx安装方法
- Nginx编译安装方法
- centos下nginx+tomcat安装配置 nginx结合tomcat
- centos下nginx+tomcat安装配置 nginx结合tomcat
- Android Studio使用心得与技巧
- LeetCode | Reverse Integer
- GetAsyncKeyState异步获取键盘输入
- windows下搭建tomcat运行环境
- 对左移和右移的理解
- nginx+tomcat自动化安装方法
- 核函数的运用
- 自定义注解之编译时注解(RetentionPolicy.CLASS)(二)——JavaPoet
- Android中的架构
- [HTML/CSS]盒子模型,块级元素和行内元素
- eclipse c/c++自动代码提示
- windows环境变量
- Android listview与adapter用法
- React Native-FlexBox布局