delete useless packages

This commit is contained in:
qiaofeng1227 2023-07-01 16:06:32 +08:00
parent d8106cb12b
commit 2bef5ef34e
2682 changed files with 0 additions and 332583 deletions

View file

@ -1,155 +0,0 @@
# RabbitMQ Notes
组件名称RabbitMQ-Server
安装文档https://www.rabbitmq.com/download.html
配置文档https://www.rabbitmq.com/admin-guide.html
支持平台: Debian家族 | RHEL家族 | Windows | Kubernetes |Docker
责任人helin
## 概要
RabbitMQ是一款开源的MQ系统它包含RabbitMQ-Server和RabbitMQ-Client服务器上运行的是RabbitMQ-Server
## 环境要求
* 程序语言Java
* 应用服务器:自带
* 数据库:无
* 依赖组件Erlang
* 服务器配置最低1核2G
* 其他:
## 安装说明
官方建议使用其自身提供的erlang和rabbitmq-server的仓库不建议使用操作系统自带的仓库或其他第三方仓库。同时官方提供了自动安装仓库的自动化脚本。
下面基于不同的安装平台,分别进行安装说明。
### CentOS
```shell
# 分别安装erlang源和rabbitmq-server源
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
# 安装
yum install erlang rabbitmq-server -y
```
### Ubuntu
```shell
# 分别安装erlang源和rabbitmq-server源
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.deb.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash
# 安装
sudo apt-get update -y
apt install erlang rabbitmq-server -y
```
## 配置
安装完成后,需要依次完成如下配置
```shell
# Set RabbitMQ
- name: Restart RabbitMQ
shell: systemctl start rabbitmq-server
- name: Enable the management console of RabbitMQ
shell: rabbitmq-plugins enable rabbitmq_management
- name: Create administrator for RabbitMQ console
shell: |
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
```
## 路径
* 程序路径:/usr/lib/rabbitmq/lib/rabbitmq_server-*
* 日志路径:/var/log/rabbitmq
* 配置文件路径:
* 其他...
## 账号密码
### 数据库密码
如果有数据库
* 数据库安装方式:包管理工具自带 or 自行安装
* 账号密码:
### 后台账号
如果有后台账号
* 登录地址
* 账号密码
* 密码修改方案:最好是有命令行修改密码的方案
## 服务
本项目安装后自动生成rabbitmq-server 服务
备注:如果开机没有服务,程序无法运行的情况下,需要自行编写服务后存放到项目中
服务的模板如下:
```
[Unit]
Description=Redmine
After=nginx.service
[Service]
Environment=RAILS_ENV=production
Type=simple
WorkingDirectory=/data/wwwroot/redmine
ExecStart=/usr/local/bin/puma -b tcp://127.0.0.1:9292 -e production
User=redmine
[Install]
WantedBy=multi-user.target
```
## 环境变量
列出需要增加的环境变量以及增加环境变量的命令:
* 名称 | 路径
## 版本号
通过如下的命令获取主要组件的版本号:
```
# Check RabbitMQ version
sudo rabbitmqctl status | grep RabbitMQ*
# Check Erlang version
ls /usr/lib64/erlang
```
## 常见问题
#### 有没有管理控制台?
*http:// 公网 IP:15672* 即可访问控制台系统默认存在一个无法通过外网访问的guest/guest账号
#### 本项目需要开启哪些端口?
| item | port |
| --------- | ----- |
| lustering | 25672 |
| AMQP | 5672 |
| http | 15672 |
#### 有没有CLI工具
有,通过 `rabbitmqctl` 查看工具的说明
#### 安装后是否需要创建普通用户?
rabbitmq

View file

@ -1,15 +0,0 @@
# APPS
## Install App
```
ansible-playbook -i hosts application.yml -e appname=wordpress
ansible-playbook -i hosts application.yml -c local -e appname=wordpress
```
## DevOps
You can add new app role from template just one command
```
echo "appname" > add
```

View file

@ -1 +0,0 @@

View file

@ -1,14 +0,0 @@
[defaults]
roles_path = ./roles/
inventory = hosts
deprecation_warnings=False
display_skipped_hosts = False
interpreter_python=auto
host_key_checking = False
timeout = 100
connect_timeout = 100
command_timeout = 100
gather_timeout = 100
retries = 5
forks = 10
log_path = /tmp/ansible.log

View file

@ -1,47 +0,0 @@
- name: Deploy Application
hosts: all
become: yes
become_method: sudo
vars_files:
- vars/main.yml
pre_tasks:
- name: Get applist
block:
- name: Multiply apps execute on second time
shell : |
rm -f /tmp/port.txt
- name: Get appname and dependencies, combine to a applist
shell : |
echo "{{appname}}" > applist
cat ./roles/{{appname}}/meta/main.yml | sed -n '/dependencies/,/galaxy_info/{//!p}'|grep -|awk -F'- ' '{print $2}' >> applist
cat applist
register: applist
delegate_to: 127.0.0.1
- name: Check if nginx is necessary
shell : |
wget -N https://raw.githubusercontent.com/Websoft9/docker-library/main/apps/{{appname}}/.env
cat .env
register: env_content
failed_when: False
delegate_to: 127.0.0.1
- name: Create credentials Folder for put get_ip.sh
file:
path: /credentials
state: directory
- name: Copy get_ip.sh
copy: src=../scripts/get_ip.sh dest=/credentials/get_ip.sh
roles:
- { role: role_common, tags: "role_common" }
- { role: role_cloud, tags: "role_cloud" }
- { role: "{{appname}}", tags: "{{appname}}" }
- { role: role_nginx, tags: "role_nginx", when: env_content.stdout.find('APP_HTTP_PORT') != -1 }
- { role: role_init, tags: "role_init" }
- { role: role_preend, tags: "preend" }
- { role: role_end, tags: "role_end" }

View file

@ -1 +0,0 @@

View file

@ -1,28 +0,0 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
#coding: utf-8
import os, io, sys, platform, shutil, urllib3, time, json
def ReadLists(filename):
if os.path.getsize(filename) == 0:
print("\n清单中没有项目!")
sys.exit()
else:
with open("./"+filename,mode='r',newline='') as f:
templists=list(f)
rlist=[]
for templist in templists:
rlist.append(templist.replace('\n',''))
return rlist
mylists=ReadLists("add")
# 批量处理创建项目文件夹issue
for mylist in mylists:
print("处理 "+mylist+" ...\n")
os.system("cp -R roles/Template roles/" + mylist)
os.system("echo '' > add")
print("\n执行完成,并清空列表")

View file

@ -1 +0,0 @@
# Stackhub

View file

@ -1,62 +0,0 @@
### REQUIRED
# The namespace of the collection. This can be a company/brand/organization or product namespace under which all
# content lives. May only contain alphanumeric lowercase characters and underscores. Namespaces cannot start with
# underscores or numbers and cannot contain consecutive underscores
namespace: websoft9
# The name of the collection. Has the same character restrictions as 'namespace'
name: appname
# The version of the collection. Must be compatible with semantic versioning
version: 1.0.0
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)
# @nicks:irc/im.site#channel'
authors:
- your name <example@domain.com>
### OPTIONAL but strongly recommended
# A short summary description of the collection
description: your collection description
# Either a single license or a list of licenses for content inside of a collection. Ansible Galaxy currently only
# accepts L(SPDX,https://spdx.org/licenses/) licenses. This key is mutually exclusive with 'license_file'
license:
- GPL-2.0-or-later
# The path to the license file for the collection. This path is relative to the root of the collection. This key is
# mutually exclusive with 'license'
license_file: ''
# A list of tags you want to associate with the collection for indexing/searching. A tag name has the same character
# requirements as 'namespace' and 'name'
tags: []
# Collections that this collection requires to be installed for it to be usable. The key of the dict is the
# collection label 'namespace.name'. The value is a version range
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies: {}
# The URL of the originating SCM repository
repository: http://example.com/repository
# The URL to any online docs
documentation: http://docs.example.com
# The URL to the homepage of the collection/project
homepage: http://example.com
# The URL to the collection issue tracker
issues: http://example.com/issue/tracker
# A list of file glob-like patterns used to filter any files or directories that should not be included in the build
# artifact. A pattern is matched from the relative path of the file or directory of the collection directory. This
# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry',
# and '.git' are always filtered
build_ignore: []

View file

@ -1,2 +0,0 @@
[local]
localhost

View file

@ -1,31 +0,0 @@
# Collections Plugins Directory
This directory can be used to ship various plugins inside an Ansible collection. Each plugin is placed in a folder that
is named after the type of plugin it is in. It can also include the `module_utils` and `modules` directory that
would contain module utils and modules respectively.
Here is an example directory of the majority of plugins currently supported by Ansible:
```
└── plugins
├── action
├── become
├── cache
├── callback
├── cliconf
├── connection
├── filter
├── httpapi
├── inventory
├── lookup
├── module_utils
├── modules
├── netconf
├── shell
├── strategy
├── terminal
├── test
└── vars
```
A full list of plugin types can be found at [Working With Plugins](https://docs.ansible.com/ansible-core/2.12/plugins/plugins.html).

View file

@ -1 +0,0 @@

View file

@ -1,6 +0,0 @@
#### About
you can run the command in your root directory of Ansible project to pull all roles defined in requirements.yml
```
ansible-galaxy install -r requirements.yml -f
```

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1,3 +0,0 @@
- name: check_rabbitmq_service
debug:
var: check_rabbitmq_service.stdout

View file

@ -1,21 +0,0 @@
---
dependencies: []
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "Template"

View file

@ -1 +0,0 @@

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "9001"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,21 +0,0 @@
---
dependencies: []
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "activemq"

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "8161"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,22 +0,0 @@
---
dependencies:
- phpmyadmin
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "akeneo"

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "9001"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,22 +0,0 @@
---
dependencies:
- pgadmin
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "alfresco"

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "8080"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,21 +0,0 @@
---
dependencies: []
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,16 +0,0 @@
- name: Unnstall ansible on host
shell: rpm -e ansible
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "ansible"
- name: Unnstall ansible on host
shell: |
alias ansible='docker exec -it ansible ansible'
alias ansible-playbook='docker exec -it ansible ansible-playbook'
echo "alias ansible='docker exec -it ansible ansible'" >> /etc/profile.d/ansible.sh
echo "alias ansible-playbook='docker exec -it ansible ansible-playbook'" >> /etc/profile.d/ansible.sh
source /etc/profile.d/ansible.sh

View file

@ -1 +0,0 @@

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,21 +0,0 @@
---
dependencies: []
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "apex"

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "9001"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

View file

@ -1 +0,0 @@
# Template for create application

View file

@ -1 +0,0 @@

View file

@ -1,21 +0,0 @@
---
dependencies: []
allow_duplicates: true
galaxy_info:
author:
description:
company:
license:
min_ansible_version:
platforms:
- name: EL
versions:
- 7
- name: Ubuntu
versions:
- 18.04
galaxy_tags:

View file

@ -1,4 +0,0 @@
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "apitable"

View file

@ -1 +0,0 @@
nginx_reverse_proxy_port: "9001"

View file

@ -1,18 +0,0 @@
# CHANGELOG
## To do
1. 可视化管理工具
2. AmazonLinux支持
## Logs
### Bug Fixes
* 2020-02-14 redis-version版本输出
* 2020-02-13 redis-version版本输出
### Features
* 2020-02-14 增加GUI工具
* 2020-02-13 增加2.8版本

Some files were not shown because too many files have changed in this diff Show more