整理项目

This commit is contained in:
Zhang Peng 2019-05-07 16:26:06 +08:00
parent 0e296c65d2
commit 54c22a10aa
25 changed files with 51 additions and 134 deletions

View File

@ -47,52 +47,33 @@
> :bulb: **说明**
>
> 这里总结了多种常用研发软件的安装、配置、使用指南。并提供基本安装、运行的脚本。
> 这里总结了一些常用开发软件的安装、配置、使用指南。
>
> 此外,提供了一键安装、配置脚本,:point_right: [**软件安装配置脚本**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/soft)。
>
> [环境部署工具](https://github.com/dunwu/os-tutorial/tree/master/codes/deploy) :适合开发、运维人员,在 [CentOS](https://www.centos.org/) 机器上安装常用命令工具或开发软件。
>
> - _`Scripts`安装配置脚本按照说明安装使用即可。_
> - _`Docs`: 安装配置文档说明安装的方法以及一些注意事项。_
> - _`Tutorial`: 教程文档。_
- 研发环境
- JDK
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/jdk) | [**`Docs`**](docs/linux/ops/service/jdk.md) |
- Maven
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/maven) | [**`Docs`**](https://github.com/dunwu/javastack/tree/master/docs/javatool/build/maven) |
- Nginx
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/nginx) | [**`Docs`**](https://github.com/dunwu/nginx-tutorial) |
- Nodejs
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/nodejs) | [**`Docs`**](docs/linux/ops/service/nodejs.md) |
- Tomcat
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/tomcat) | [**`Docs`**](docs/linux/ops/service/tomcat.md) |
- Zookeeper
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/zookeeper) | [**`Docs`**](docs/linux/ops/service/zookeeper.md) |
- [JDK](docs/linux/ops/soft/jdk.md)
- [Maven、Nexus](https://github.com/dunwu/javastack/tree/master/docs/javatool/build/maven)
- [Nginx](https://github.com/dunwu/nginx-tutorial)
- [Nodejs](docs/linux/ops/soft/nodejs.md)
- [Tomcat](docs/linux/ops/soft/tomcat.md)
- [Zookeeper](docs/linux/ops/soft/zookeeper.md)
- 研发工具
- Nexus - Maven 私服。
- | [**`Docs`**](docs/linux/ops/service/nexus.md) |
- Jenkins - 持续集成和持续交付平台。
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/jenkins) | [**`Docs`**](docs/linux/ops/service/jenkins.md) |
- Elastic - 常被称为 `ELK` ,是 Java 世界最流行的分布式日志解决方案 。 `ELK` 是 Elastic 公司旗下三款产品 [ElasticSearch](https://www.elastic.co/products/elasticsearch) 、[Logstash](https://www.elastic.co/products/logstash) 、[Kibana](https://www.elastic.co/products/kibana) 的首字母组合。
- | [**`Docs`**](docs/linux/ops/service/elastic) |
- [Jenkins](docs/linux/ops/soft/jenkins.md) - 持续集成和持续交付平台。
- [Elastic](docs/linux/ops/soft/elastic) - 常被称为 `ELK` ,是 Java 世界最流行的分布式日志解决方案 。 `ELK` 是 Elastic 公司旗下三款产品 [ElasticSearch](https://www.elastic.co/products/elasticsearch) 、[Logstash](https://www.elastic.co/products/logstash) 、[Kibana](https://www.elastic.co/products/kibana) 的首字母组合。
- 版本控制
- Gitlab - Git 代码管理平台
- Svn - Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。
- | [**`Docs`**](docs/linux/ops/service/svn.md) |
- [Svn](docs/linux/ops/soft/svn.md) - Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。
- 消息中间件
- Kafka - 应该是 Java 世界最流行的消息中间件了吧。
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/kafka) | [**`Docs`**](docs/linux/ops/service/kafka.md) |
- RocketMQ - 阿里巴巴开源的消息中间件。
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/rocketmq) | [**`Docs`**](docs/linux/ops/service/rocketmq.md) |
- [Kafka](docs/linux/ops/soft/kafka.md) - 应该是 Java 世界最流行的消息中间件了吧。
- [RocketMQ](docs/linux/ops/soft/rocketmq.md) - 阿里巴巴开源的消息中间件。
- 数据库
- Mysql - 关系型数据库
- | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/mysql/install-mysql.md) |
- PostgreSQL - 关系型数据库
- | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/postgresql.md#安装) |
- Mongodb - Nosql
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/mongodb) | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/mongodb/install-mongodb.md) |
- Redis - Nosql
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/redis) | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/redis/install-redis.md) |
- [Mysql](https://github.com/dunwu/database/blob/master/docs/mysql/install-mysql.md) - 关系型数据库
- [PostgreSQL](https://github.com/dunwu/database/blob/master/docs/postgresql.md#安装) - 关系型数据库
- [Mongodb](https://github.com/dunwu/database/blob/master/docs/mongodb/install-mongodb.md) - Nosql
- [Redis](https://github.com/dunwu/database/blob/master/docs/redis/install-redis.md) - Nosql
### [Windows](docs/windows)

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
###################################################################################
# 安装 nginx 脚本
# 仅适用于 CentOS 发行版本。
# @author: Zhang Peng
###################################################################################
echo -e "\n>>>>>>>>> install nginx"
# Centos7 rpm 地址http://nginx.org/packages/rhel/7/x86_64/RPMS/
# CentOS6 rpm 地址http://nginx.org/packages/rhel/6/x86_64/RPMS/
mkdir -p /opt/nginx
wget -O /opt/nginx/nginx.rpm http://nginx.org/packages/rhel/7/x86_64/RPMS/nginx-1.14.0-1.el7_4.ngx.x86_64.rpm
rpm -ivh /opt/nginx/nginx.rpm
nginx -v

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
###################################################################################
# 安装 nginx 脚本
# 仅适用于 CentOS 发行版本。
# @author: Zhang Peng
###################################################################################
echo -e "\n>>>>>>>>> install nginx"
yum -y install make nginx.x86_64

View File

@ -5,15 +5,13 @@ cat << EOF
###################################################################################
# 安装 nginx 脚本
# nginx 会被安装到 /opt/nginx 路径。
# 注意:安装 nginx 需要依赖以下库,需预先安装:
# zlib zlib-devel gcc-c++ libtool openssl openssl-devel
# @system: 适用于所有 linux 发行版本。
# @author: Zhang Peng
###################################################################################
EOF
version=1.12.2
version=1.16.0
if [[ -n $1 ]]; then
version=$1
fi
@ -24,10 +22,7 @@ if [[ -n $2 ]]; then
fi
echo -e "\n>>>>>>>>> install libs"
yum install -y zlib zlib-devel gcc-c++ libtool openssl openssl-devel
# 首先要安装 PCREPCRE 作用是让 nginx 支持 Rewrite 功能
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/pcre-install.sh | bash
yum install -y zlib zlib-devel gcc-c++ libtool openssl openssl-devel pcre
echo -e "\n>>>>>>>>> download nginx"
mkdir -p ${root}
@ -36,6 +31,7 @@ wget -O ${root}/nginx-${version}.tar.gz http://nginx.org/download/nginx-${versio
# 编译
tar zxf ${root}/nginx-${version}.tar.gz -C ${root}
cd ${root}/nginx-${version}
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=${pcreRoot}/pcre-${pcreVersion}
nginx -v
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre
make && make install
/usr/local/nginx/sbin/nginx -v
cd -

View File

@ -1,30 +0,0 @@
#!/usr/bin/env bash
###################################################################################
# 安装 nginx 脚本
# 适用于所有 linux 发行版本。
# nginx 会被安装到 /opt/nginx 路径。
# 注意:安装 nginx 需要依赖以下库,需预先安装:
# zlib zlib-devel gcc-c++ libtool openssl openssl-devel
# @author: Zhang Peng
###################################################################################
echo -e "\n>>>>>>>>> install nginx"
# 首先要安装 PCREPCRE 作用是让 nginx 支持 Rewrite 功能
pcreRoot=/opt/pcre
pcreVersion=8.35
install-pcre.sh ${pcreRoot} ${pcreVersion}
# 下载并解压 nginx
ngixnRoot=/opt/nginx
nginxVersion=1.12.2
mkdir -p ${ngixnRoot}
wget -O ${ngixnRoot}/nginx-${nginxVersion}.tar.gz http://nginx.org/download/nginx-${nginxVersion}.tar.gz
cd ${ngixnRoot}
tar zxf nginx-${nginxVersion}.tar.gz
# 编译
cd nginx-${nginxVersion}
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=${pcreRoot}/pcre-${pcreVersion}
nginx -v

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
###################################################################################
# 安装 pcre 脚本
# 适用于所有 linux 发行版本。
# 注意:本脚本需输入根路径和版本号两个参数。
# @author: Zhang Peng
###################################################################################
echo -e "\n>>>>>>>>> install pcre"
root=$1
version=$2
# 下载并解压 pcre
mkdir -p ${root}
wget -O ${root}/pcre-${version}.tar.gz http://downloads.sourceforge.net/project/pcre/pcre/${version}/pcre-${version}.tar.gz
cd ${root}
tar zxf pcre-${version}.tar.gz
cd pcre-${version}
# 编译
./configure
make && make install
pcre-config --version

View File

@ -1,33 +0,0 @@
#!/usr/bin/env bash
cat << EOF
###################################################################################
# 安装 pcre 脚本
# @system: 适用于所有 linux 发行版本。
# @author: Zhang Peng
###################################################################################
EOF
version=8.35
if [[ -n $1 ]]; then
version=$1
fi
root=/opt/pcre
if [[ -n $2 ]]; then
root=$2
fi
echo -e "\n>>>>>>>>> donwload pcre"
mkdir -p ${root}
wget -O ${root}/pcre-${version}.tar.gz http://downloads.sourceforge.net/project/pcre/pcre/${version}/pcre-${version}.tar.gz
echo -e "\n>>>>>>>>> install pcre"
tar zxf ${root}/pcre-${version}.tar.gz -C ${root}
cd ${root}/pcre-${version}
./configure
make && make install
pcre-config --version
cd -