Skip to content

Commit 54c22a1

Browse files
committed
整理项目
1 parent 0e296c6 commit 54c22a1

25 files changed

Lines changed: 51 additions & 134 deletions

README.md

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -47,52 +47,33 @@
4747

4848
> :bulb: **说明**
4949
>
50-
> 这里总结了多种常用研发软件的安装、配置、使用指南。并提供基本安装、运行的脚本
50+
> 这里总结了一些常用开发软件的安装、配置、使用指南。
5151
>
52-
> [环境部署工具](https://github.com/dunwu/os-tutorial/tree/master/codes/deploy) :适合开发、运维人员,在 [CentOS](https://www.centos.org/) 机器上安装常用命令工具或开发软件
52+
> 此外,提供了一键安装、配置脚本,:point_right: [**软件安装配置脚本**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/soft)
5353
>
54-
> - _`Scripts`:安装配置脚本,按照说明安装使用即可。_
55-
> - _`Docs`: 安装配置文档,说明安装的方法以及一些注意事项。_
56-
> - _`Tutorial`: 教程文档。_
54+
> [环境部署工具](https://github.com/dunwu/os-tutorial/tree/master/codes/deploy) :适合开发、运维人员,在 [CentOS](https://www.centos.org/) 机器上安装常用命令工具或开发软件。
5755
5856
- 研发环境
59-
- JDK
60-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/jdk) | [**`Docs`**](docs/linux/ops/service/jdk.md) |
61-
- Maven
62-
- | [**`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) |
63-
- Nginx
64-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/nginx) | [**`Docs`**](https://github.com/dunwu/nginx-tutorial) |
65-
- Nodejs
66-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/nodejs) | [**`Docs`**](docs/linux/ops/service/nodejs.md) |
67-
- Tomcat
68-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/tomcat) | [**`Docs`**](docs/linux/ops/service/tomcat.md) |
69-
- Zookeeper
70-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/zookeeper) | [**`Docs`**](docs/linux/ops/service/zookeeper.md) |
57+
- [JDK](docs/linux/ops/soft/jdk.md)
58+
- [Maven、Nexus](https://github.com/dunwu/javastack/tree/master/docs/javatool/build/maven)
59+
- [Nginx](https://github.com/dunwu/nginx-tutorial)
60+
- [Nodejs](docs/linux/ops/soft/nodejs.md)
61+
- [Tomcat](docs/linux/ops/soft/tomcat.md)
62+
- [Zookeeper](docs/linux/ops/soft/zookeeper.md)
7163
- 研发工具
72-
- Nexus - Maven 私服。
73-
- | [**`Docs`**](docs/linux/ops/service/nexus.md) |
74-
- Jenkins - 持续集成和持续交付平台。
75-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/jenkins) | [**`Docs`**](docs/linux/ops/service/jenkins.md) |
76-
- 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) 的首字母组合。
77-
- | [**`Docs`**](docs/linux/ops/service/elastic) |
64+
- [Jenkins](docs/linux/ops/soft/jenkins.md) - 持续集成和持续交付平台。
65+
- [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) 的首字母组合。
7866
- 版本控制
7967
- Gitlab - Git 代码管理平台
80-
- Svn - Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。
81-
- | [**`Docs`**](docs/linux/ops/service/svn.md) |
68+
- [Svn](docs/linux/ops/soft/svn.md) - Svn 是 Subversion 的简称,是一个开放源代码的版本控制系统,它采用了分支管理系统。
8269
- 消息中间件
83-
- Kafka - 应该是 Java 世界最流行的消息中间件了吧。
84-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/kafka) | [**`Docs`**](docs/linux/ops/service/kafka.md) |
85-
- RocketMQ - 阿里巴巴开源的消息中间件。
86-
- | [**`Scripts`**](https://github.com/dunwu/os-tutorial/tree/master/codes/linux/ops/service/rocketmq) | [**`Docs`**](docs/linux/ops/service/rocketmq.md) |
70+
- [Kafka](docs/linux/ops/soft/kafka.md) - 应该是 Java 世界最流行的消息中间件了吧。
71+
- [RocketMQ](docs/linux/ops/soft/rocketmq.md) - 阿里巴巴开源的消息中间件。
8772
- 数据库
88-
- Mysql - 关系型数据库
89-
- | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/mysql/install-mysql.md) |
90-
- PostgreSQL - 关系型数据库
91-
- | [**`Docs`**](https://github.com/dunwu/database/blob/master/docs/postgresql.md#安装) |
92-
- Mongodb - Nosql
93-
- | [**`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) |
94-
- Redis - Nosql
95-
- | [**`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) |
73+
- [Mysql](https://github.com/dunwu/database/blob/master/docs/mysql/install-mysql.md) - 关系型数据库
74+
- [PostgreSQL](https://github.com/dunwu/database/blob/master/docs/postgresql.md#安装) - 关系型数据库
75+
- [Mongodb](https://github.com/dunwu/database/blob/master/docs/mongodb/install-mongodb.md) - Nosql
76+
- [Redis](https://github.com/dunwu/database/blob/master/docs/redis/install-redis.md) - Nosql
9677

9778
### [Windows](docs/windows)
9879

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
###################################################################################
4+
# 安装 nginx 脚本
5+
# 仅适用于 CentOS 发行版本。
6+
# @author: Zhang Peng
7+
###################################################################################
8+
9+
echo -e "\n>>>>>>>>> install nginx"
10+
11+
# Centos7 rpm 地址:http://nginx.org/packages/rhel/7/x86_64/RPMS/
12+
# CentOS6 rpm 地址:http://nginx.org/packages/rhel/6/x86_64/RPMS/
13+
14+
mkdir -p /opt/nginx
15+
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
16+
rpm -ivh /opt/nginx/nginx.rpm
17+
nginx -v
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
###################################################################################
4+
# 安装 nginx 脚本
5+
# 仅适用于 CentOS 发行版本。
6+
# @author: Zhang Peng
7+
###################################################################################
8+
9+
echo -e "\n>>>>>>>>> install nginx"
10+
11+
yum -y install make nginx.x86_64

codes/linux/ops/soft/nginx-install.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ cat << EOF
55
###################################################################################
66
# 安装 nginx 脚本
77
# nginx 会被安装到 /opt/nginx 路径。
8-
# 注意:安装 nginx 需要依赖以下库,需预先安装:
9-
# zlib zlib-devel gcc-c++ libtool openssl openssl-devel
108
# @system: 适用于所有 linux 发行版本。
119
# @author: Zhang Peng
1210
###################################################################################
1311
1412
EOF
1513

16-
version=1.12.2
14+
version=1.16.0
1715
if [[ -n $1 ]]; then
1816
version=$1
1917
fi
@@ -24,10 +22,7 @@ if [[ -n $2 ]]; then
2422
fi
2523

2624
echo -e "\n>>>>>>>>> install libs"
27-
yum install -y zlib zlib-devel gcc-c++ libtool openssl openssl-devel
28-
29-
# 首先要安装 PCRE,PCRE 作用是让 nginx 支持 Rewrite 功能
30-
curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/pcre-install.sh | bash
25+
yum install -y zlib zlib-devel gcc-c++ libtool openssl openssl-devel pcre
3126

3227
echo -e "\n>>>>>>>>> download nginx"
3328
mkdir -p ${root}
@@ -36,6 +31,7 @@ wget -O ${root}/nginx-${version}.tar.gz http://nginx.org/download/nginx-${versio
3631
# 编译
3732
tar zxf ${root}/nginx-${version}.tar.gz -C ${root}
3833
cd ${root}/nginx-${version}
39-
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=${pcreRoot}/pcre-${pcreVersion}
40-
nginx -v
34+
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre
35+
make && make install
36+
/usr/local/nginx/sbin/nginx -v
4137
cd -

codes/linux/ops/soft/nginx/install-nginx.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

codes/linux/ops/soft/nginx/install-pcre.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

codes/linux/ops/soft/pcre-install.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)