随笔分类 - Linux
Linux
摘要:Linux 7 Ansible 初学 一个简单的 playbook 学习 yum 模块 编写一个简单的 playbook 要求被控制服务器[dev]组,安装 PHP 和 MariaDB Development tools 并更新服务器的所有包到最新版本 [student@workstation an
阅读全文
摘要:Linux 7 Ansible初学之配置被控制机器的 YUM 源 新建一个shell脚本,通过 ansible 的 yum_repository 模块,给每台被控制机器配置 YUM 源 [student@workstation ansible]$ cat yum_repo.sh #!/bin/bas
阅读全文
摘要:安装前提条件:控制服务器可以通过 ssh 免密登录被控制服务器。 一、安装 Ansible [root@xiejiaohui ~]# yum install -y ansible Loaded plugins: langpacks, search-disabled-repos ansible | 2
阅读全文
摘要:Linux 7 安装开发工具包 Development Tools 1、查看开发工具包 [root@xiejiaohui ~]# yum groups list Loaded plugins: langpacks, search-disabled-repos Available Environmen
阅读全文
摘要:[root@foundation0 ~]# yum install mariadb-server.x86_64 -yLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-managerThis syste
阅读全文
摘要:#!/bin/bash if [ $# -eq 1 ] ; then if [ -f "$1" ] ; then while read username ; do user add -s /bin/false $username &>/dev/null done < $1 else echo "In...
阅读全文
摘要:编写一个简单的bash脚本hello.sh,提供如下特性: 1. 当运行./hello.sh student , 输出为 teacher 2. 当运行./hello.sh teacher, 输出为 student 3. 当没有任何参数,或参数不是teache 或者 student 时,在控制台打印输
阅读全文

浙公网安备 33010602011771号