#安装mariadb-server
yum install mariadb-server
#启动mariadb
systemctl start mariadb
#查看mariadb状态,如果是running,说明安装完成了
systemctl status mariadb
#查看mariadb版本,默认yum直接安装是5.5
mysql -V
mysql Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.# mysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
#默认安装完没有密码,直接按enter即可
Enter current password for root (enter for none):
OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
#输入y,设置root密码
Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
#输入y,删除anonymous users
Remove anonymous users? [Y/n] y
... Success!Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
#输入y,因为本次测试,应用和数据库在一台机器上,所以可以关闭root远程登录权限
Disallow root login remotely? [Y/n] y
... Success!By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
#输入y,删除test数据库
Remove test database and access to it? [Y/n] y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
#输入y,刷新数据库权限
Reload privilege tables now? [Y/n] y
... Success!Cleaning up...All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.Thanks for using MariaDB!
#完成mariadb初始化yum install git
#git version,查看git版本
git version 1.8.3.1
#安装ansible
sudo yum -y install epel-release
sudo yum -y install ansible
# ansible --version
ansible 2.9.10
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]wget https://github.com/ansible-semaphore/semaphore/releases/download/v2.5.1/semaphore_2.5.1_linux_amd64.rpm
# rpm -ivh semaphore_2.5.1_linux_amd64.rpm
准备中...                          ################################# [100%]
正在升级/安装...1:semaphore-2.5.1-1                ################################# [100%]
# semaphore -version
v2.5.1Hello! You will now be guided through a setup to:1. Set up configuration for a MySQL/MariaDB database
2. Set up a path for your playbooks (auto-created)
3. Run database Migrations
4. Set up initial semaphore user & password> DB Hostname (default 127.0.0.1:3306):127.0.0.1:3306
> DB User (default root):root
> DB Password: password
> DB Name (default semaphore):semaphore
> Playbook path (default /tmp/semaphore):
> Web root URL (optional, example http://localhost:8010/): http://10.20.3.152:8081
> Enable email alerts (y/n, default n):n
> Enable telegram alerts (y/n, default n):n
> Enable LDAP authentication (y/n, default n):n
Generated configuration:
{"mysql": {"host": "127.0.0.1:3306","user": "root","pass": "password","name": "semaphore"},"port": "","tmp_path": "/tmp/semaphore","cookie_hash": "nsXTGAjAwG0oU6pkqVmPT/KpURAki3UiMOoO2RBzvhk=","cookie_encryption": "aKac+rNKJU1kf0IcjC8FDFrGGQZgWkVE+R8d7YH9OLE=","email_sender": "","email_host": "","email_port": "","web_host": "http://10.20.3.152:8081","ldap_binddn": "","ldap_bindpassword": "","ldap_server": "","ldap_searchdn": "","ldap_searchfilter": "","ldap_mappings": {"dn": "","mail": "","uid": "","cn": ""},"telegram_chat": "","telegram_token": "","concurrency_mode": "","max_parallel_tasks": 0,"email_alert": false,"telegram_alert": false,"ldap_enable": false,"ldap_needtls": false
}
#配置确认,没问题按y即可
> Is this correct? (yes/no): y
> Config output directory (default /root):/root
Configuration written to /root/config.json..
Pinging db..Running DB Migrations..
Checking DB migrations
Creating migrations table
Executing migration v0.0.0 (at 2020-09-02 10:11:26.686649426 +0800 CST m=+63.197184158)...
[11/11]
Executing migration v1.0.0 (at 2020-09-02 10:11:26.723548351 +0800 CST m=+63.234083061)...
[7/7]
Executing migration v1.1.0 (at 2020-09-02 10:11:26.75702072 +0800 CST m=+63.267555438)...
[1/1]
Executing migration v1.2.0 (at 2020-09-02 10:11:26.762418051 +0800 CST m=+63.272952743)...
[1/1]
Executing migration v1.3.0 (at 2020-09-02 10:11:26.765752117 +0800 CST m=+63.276286844)...
[3/3]
Executing migration v1.4.0 (at 2020-09-02 10:11:26.779036757 +0800 CST m=+63.289571477)...
[2/2]
Executing migration v1.5.0 (at 2020-09-02 10:11:26.786357184 +0800 CST m=+63.296891945)...
[1/1]
Executing migration v0.1.0 (at 2020-09-02 10:11:26.789554596 +0800 CST m=+63.300089308)...
[6/6]
Executing migration v1.6.0 (at 2020-09-02 10:11:26.805381148 +0800 CST m=+63.315915870)...
[4/4]
Executing migration v1.7.0 (at 2020-09-02 10:11:26.8229443 +0800 CST m=+63.333479005)...
[1/1]
Executing migration v1.8.0 (at 2020-09-02 10:11:26.828252977 +0800 CST m=+63.338787701)...
[2/2]
Executing migration v1.9.0 (at 2020-09-02 10:11:26.833757379 +0800 CST m=+63.344292109)...
[2/2]
Executing migration v2.2.1 (at 2020-09-02 10:11:26.838939884 +0800 CST m=+63.349474603)...
[2/2]
Executing migration v2.3.0 (at 2020-09-02 10:11:26.846996333 +0800 CST m=+63.357531046)...
[3/3]
Executing migration v2.3.1 (at 2020-09-02 10:11:26.859823289 +0800 CST m=+63.370358007)...
[1/1]
Executing migration v2.3.2 (at 2020-09-02 10:11:26.864990001 +0800 CST m=+63.375524716)...
[1/1]
Executing migration v2.4.0 (at 2020-09-02 10:11:26.870065072 +0800 CST m=+63.380599806)...
[1/1]
Executing migration v2.5.0 (at 2020-09-02 10:11:26.873969073 +0800 CST m=+63.384503770)...
[1/1]
Migrations Finished
#看到如上信息,表示配置,下面开始设置第一个账号和密码
> Username: yunwei@tyun.cn
> Email: yunwei@tyun.cn
WARN[0494] sql: no rows in result set                    level=Warn
> Your name: yunwei
> Password: password
You are all setup yunwei!
Re-launch this program pointing to the configuration file./semaphore -config /root/config.jsonTo run as daemon:nohup ./semaphore -config /root/config.json &You can login with yunwei@tyun.cn or yunwei@tyun.cn.
#配置完成

https://blog.csdn.net/NewTyun/article/details/109664826#t3

【网址收藏】主流Ansible Web UI的部署与使用:Tower AWX Semaphore TiOps相关推荐

  1. 在GPU云服务器中部署Stable Diffusion web UI

    在GPU云服务器中部署Stable Diffusion web UI 1. 前言 2. 关于云服务器的选择 3. 关于机器的选择 4. 部署Stable Diffusion Python和CUDA 检 ...

  2. Kubernetes--学习笔记-3-Kubernetes Web UI部署

    一.Kubernetes集群环境 请参考Kubernetes--学习笔记-安装配置和服务部署-2 二,创建kubernetes-dashboard.yaml 在master服务器上创建kubernet ...

  3. 推荐几款精致的前端web UI框架,建议收藏

    如果你在找Web UI框架,不妨看看百度的NoahV框架:https://github.com/baidu/NoahV 主要包含如下特性: 1.上手简单,提供常用的各类组件,快速开始前端开发 2.导航 ...

  4. Ubuntu16.04多主机集群上手动部署Kubernetes,配置docker私有registry,配置Kubernetes-dashboard WEB ui

    Ubuntu16.04多主机集群上手动部署Kubernetes,配置docker私有registry,配置Kubernetes-dashboard WEB ui 2017年03月17日 20:51:4 ...

  5. kubernetes:部署kubeapps应用,为Helm提供web UI界面管理

    kubernetes 部署kubeapps应用,为Helm提供web UI界面管理 部署kubeapps应用,为Helm提供web UI界面管理 [kubeadm@server2 ~]$ helm r ...

  6. kubeadm部署k8s_(Ansible)三分钟部署一套高可用/可扩展的kubeadm集群

    介绍 容器的兴起改变了我们开发,部署和维护软件的方式.容器使我们能够将构成应用程序的不同服务打包到单独的容器中,并在一组虚拟机和物理机上部署这些容器.这就产生了容器编排工具,可以自动执行基于容器的应用 ...

  7. 国际化分布式WEB UI自动化测试平台搭建

    国际化分布式WEB UI自动化平台 一 背景 二 特色功能 三 系统架构设计&框架选型 自动化测试框架 Selenium WebDriver Selenium Grid 四 功能介绍 平台化 ...

  8. Web UI 自动化测试方案(超级干货)

    项目讨论 项目中符合自动化测试的部分有哪些?(目标和范围 scope, 准入准出标准) 稳定的需求点.变动较少的页面 每日构建后的测试验证 daily build 比较频繁的回归测试 需要在多平台上运 ...

  9. 基于Selenium与Pytest框架的Web UI自动化测试系统的设计与实现

    摘要 随着互联网的高速发展,软件技术日新月异,产品更新换代的加快等,始终都离不开一个最核心的要素就是保证产品的质量,测试人员则在其中担任着不可或缺的角色.测试人员的主要工作职责就是通过各种测试手段去发 ...

最新文章

  1. AI领域首个iF用户体验大奖——第四范式斩获2项德国iF设计奖
  2. 全景图像拼接——基本流程
  3. ElasticSearch API实现CRUD
  4. 树的平衡之AVL树——错过文末你会后悔,信我
  5. 30多门免费课程上线,亚马逊“机器学习大学”开学了
  6. 云服务器怎么多人进去编辑文档,一台云服务器多人使用
  7. mysql insert update 同时执行_MySQL进阶三板斧(三)看清“触发器 (Trigger)”的真实面目
  8. navicat安装+链接mysql 8.x
  9. Qt5.2.1 + VS2012 环境配置
  10. WPS国际版添加中文包
  11. 什么是光纤?光纤有哪些优势?
  12. unity xml反序列化为数据类
  13. VLC 21年,重新审视低延迟直播
  14. android+4.4+打印功能,安卓android4.4新增打印支付功能
  15. 图像分割之基于阙值的分割方法
  16. android 获取cpu温度
  17. c++ - 信息学奥赛一本通答案1001
  18. 探索:制药厂系统网络时钟同步(NTP时间同步服务器)
  19. 简明GISer Python学习指南
  20. 认认真真写博客,踏踏实实编代码

热门文章

  1. python调用c优缺点_Python调用C模块以及性能分析
  2. 【机器学习】机器学习中缺失值处理方法大全(附代码)
  3. 如何画出漂亮的深度学习模型图
  4. 【NLP】Transformer大家庭简介!
  5. 【算法基础】漫画:什么是 “跳表” ?
  6. 【深度学习】基于深度学习的数据增广技术一览
  7. 入门之路:“机器学习初学者”公众号2019年的精选原创文章
  8. 阿里巴巴版来了:“有一个程序媛女友/老婆是什么样的体验?”
  9. Pytorch CookBook
  10. 【Flask】快速入门后台写接口【API】