当前位置: 首页 > news >正文

网站建设属于什么行业分类怎么做好推广和营销

网站建设属于什么行业分类,怎么做好推广和营销,个人静态网页制作教程,通化市城乡建设局网站目录 一、playbook 剧本介绍二、示例1、运行playbook2、定义、引用变量 三、使用playbook部署lnmp集群 一、playbook 剧本介绍 playbooks 本身由以下各部分组成 (1)Tasks:任务,即通过 task 调用 ansible 的模板将多个操作组织在…

目录

  • 一、playbook 剧本介绍
  • 二、示例
    • 1、运行playbook
    • 2、定义、引用变量
  • 三、使用playbook部署lnmp集群


一、playbook 剧本介绍

playbooks 本身由以下各部分组成

(1)Tasks:任务,即通过 task 调用 ansible 的模板将多个操作组织在一个 playbook 中运行
(2)Variables:变量
(3)Templates:模板
(4)Handlers:处理器,当changed状态条件满足时,(notify)触发执行的操作
(5)Roles:角色

二、示例

vim  /etc/ansible/playbook/deamo1.yml
---
- name: the first play for install apache#gather_facts: falsehosts: dbserversremote_user: roottasks:- name: disable firewwalldservice: name=firewalld state=stopped enabled=no- name: disable selinuxcommand: '/usr/sbin/setenforce 0'ignore_errors: True- name: disable selinux foreverreplace: path=/etc/selinux/config regexp="enforcing" replace="disabled"- name: mount cdrommount: src=/dev/sr0 path=/mnt fstype=iso9660 state=mounted- name: copy local yum configuration filecopy: src=/etc/yum.repos.d/repo.bak/local.repo dest=/etc/yum.repos.d/local.repo- name: install apacheyum: name=httpd state=latest- name: prepare httpd configuration filecopy: src=/etc/ansible/playbook/httpd.conf dest=/etc/httpd/conf/httpd.confnotify: "reload httpd"- name: start apacheservice: name=httpd state=started enabled=yeshandlers:- name: reload httpdservice: name=httpd state=reloaded

在这里插入图片描述

1、运行playbook

ansible-playbook deamo1.yml
//补充参数:
-k(–ask-pass):用来交互输入ssh密码
-K(-ask-become-pass):用来交互输入sudo密码
-u:指定用户

在这里插入图片描述

在这里插入图片描述在这里插入图片描述

2、定义、引用变量

在这里插入图片描述

在这里插入图片描述

三、使用playbook部署lnmp集群

- name: the first play for install nginxhosts: dbserversremote_user: roottasks:- name: disable firewwalldservice: name=firewalld state=stopped enabled=no- name: disable selinuxcommand: '/usr/sbin/setenforce 0'ignore_errors: True- name: disable selinux foreverreplace: path=/etc/selinux/config regexp="enforcing" replace="disabled"- name: mount cdrommount: src=/dev/sr0 path=/mnt fstype=iso9660 state=mounted- name: copy local yum configuration filecopy: src=/etc/yum.repos.d/nginx.repo  dest=/etc/yum.repos.d/nginx.repo- name: install nginxyum: name=nginx- name: prepare nginx configuration filecopy: src=/etc/ansible/playbook/default.conf dest=/etc/nginx/conf.d/default.conf- name: start nginxservice: name=nginx state=started enabled=yes- name: wordpresscopy: src=/usr/share/nginx/html/wordpress  dest=/usr/share/nginx/html/- name: mysqlhosts: dbserversremote_user: roottasks:- name: remove mariadbshell: yum remove mariadb* -yignore_errors: True- name: yumcommand: wget https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm- name: install mysql57command: rpm -ivh mysql57-community-release-el7-11.noarch.rpm- name: change mysql-community-servershell: sed -i 's/gpgcheck=1/gpgcheck=0/' /etc/yum.repos.d/mysql-community.repo- name: install mysql-serveryum: name=mysql-server- name: start mysqlservice: name=mysqld.service state=started enabled=yes- name: mysql congruation filecopy: src=/etc/ansible/playbook/mysql.sh dest=/var/lib/mysql- name: echo passwordshell: grep "password" /var/log/mysqld.log | awk 'NR==1{print $NF}'  #在日志文件中找出root用户的初始密码register: mysql_password   #将初始密码导入到mysql_password的变量中- name: echodebug:msg: "{{ mysql_password }}"  #输出变量mysql_password的值- name: grant locationshell:  mysql --connect-expired-password -uroot -p"{{ mysql_password['stdout'] }}" -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Admin@123';"- name: grantshell: mysql --connect-expired-password -uroot -pAdmin@123 -e "grant all privileges on *.* to 'root'@'%' identified by 'Admin@123456' with grant option;"- name: create databaseshell: mysql --connect-expired-password -uroot -pAdmin@123 -e "create database wordpress;"- name: grantshell: mysql --connect-expired-password -uroot -pAdmin@123 -e "grant all on wordpress.* to 'admin'@'%' identified by 'Admin@123456';"- name: grantshell: mysql --connect-expired-password -uroot -pAdmin@123 -e "grant all on wordpress.* to 'admin'@'localhost' identified by 'Admin@123456';"- name: flushshell: mysql --connect-expired-password -uroot -pAdmin@123 -e 'flush privileges;'- name: yum removecommand: yum -y remove mysql57-community-release-el7-10.noarch- name: phphosts: dbserversremote_user: roottasks:- name: yum rpmcommand: yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpmignore_errors: true- name: yum-utilsyum: name=yum-utils- name: yum-configcommand: yum-config-manager --enable remi-php74- name: list phpcommand: yum list php- name: yilaibaocommand: yum -y install php  php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json php-redis- name: start phpservice: name=php-fpm state=started enabled=yes

将yum安装的nginx里面的配置文件进行修改,后传输到对应的远程主机

在这里插入图片描述

在这里插入图片描述

解压wordpress压缩文件,放入到对应的html网页目录底下
在这里插入图片描述

进行传输到远程主机里的网页页面目录上
在这里插入图片描述

在这里插入图片描述

使用浏览器进行访问测试
在这里插入图片描述

在这里插入图片描述


文章转载自:
http://dinncovirulence.tqpr.cn
http://dinncokhet.tqpr.cn
http://dinncocurvaceous.tqpr.cn
http://dinncoincurious.tqpr.cn
http://dinncojibber.tqpr.cn
http://dinncosuckling.tqpr.cn
http://dinncounderserved.tqpr.cn
http://dinncosisterhood.tqpr.cn
http://dinncoholophrastic.tqpr.cn
http://dinncotinny.tqpr.cn
http://dinncofluting.tqpr.cn
http://dinncoembow.tqpr.cn
http://dinncodaemonic.tqpr.cn
http://dinncomarvin.tqpr.cn
http://dinncokeester.tqpr.cn
http://dinncopromissory.tqpr.cn
http://dinncoimpresario.tqpr.cn
http://dinncoremonstrant.tqpr.cn
http://dinncosouter.tqpr.cn
http://dinncotheocratic.tqpr.cn
http://dinncointriguing.tqpr.cn
http://dinncojuggler.tqpr.cn
http://dinncofelt.tqpr.cn
http://dinncoclang.tqpr.cn
http://dinncoquag.tqpr.cn
http://dinncoendearment.tqpr.cn
http://dinncozakuski.tqpr.cn
http://dinncoboneless.tqpr.cn
http://dinncofrigidaire.tqpr.cn
http://dinncoanovulation.tqpr.cn
http://dinncoowi.tqpr.cn
http://dinncodiminution.tqpr.cn
http://dinncolaniary.tqpr.cn
http://dinncocastellany.tqpr.cn
http://dinncolibidinal.tqpr.cn
http://dinncosociologist.tqpr.cn
http://dinncopycnocline.tqpr.cn
http://dinncoconfectioner.tqpr.cn
http://dinnconoseband.tqpr.cn
http://dinncovolitional.tqpr.cn
http://dinncomesophile.tqpr.cn
http://dinncominiminded.tqpr.cn
http://dinncoreform.tqpr.cn
http://dinncocaldera.tqpr.cn
http://dinncorepopulate.tqpr.cn
http://dinncoportage.tqpr.cn
http://dinncoantismoking.tqpr.cn
http://dinncofladge.tqpr.cn
http://dinncosnowbank.tqpr.cn
http://dinncoornithosis.tqpr.cn
http://dinncotellership.tqpr.cn
http://dinncopreovulatory.tqpr.cn
http://dinncohellene.tqpr.cn
http://dinncoeshaustibility.tqpr.cn
http://dinncothrow.tqpr.cn
http://dinncoelectively.tqpr.cn
http://dinncodejectile.tqpr.cn
http://dinncountypable.tqpr.cn
http://dinnconuance.tqpr.cn
http://dinncoquadrupedal.tqpr.cn
http://dinncoob.tqpr.cn
http://dinncoforefather.tqpr.cn
http://dinncobibliophilist.tqpr.cn
http://dinncoemblematize.tqpr.cn
http://dinncononionic.tqpr.cn
http://dinncoinjudicious.tqpr.cn
http://dinncomarlstone.tqpr.cn
http://dinncofanaticism.tqpr.cn
http://dinncoparamountship.tqpr.cn
http://dinncosupportably.tqpr.cn
http://dinncohappenstance.tqpr.cn
http://dinncojacklight.tqpr.cn
http://dinncomusicophobia.tqpr.cn
http://dinncohetty.tqpr.cn
http://dinncoindecorously.tqpr.cn
http://dinncopostemergence.tqpr.cn
http://dinncoexpellent.tqpr.cn
http://dinncowest.tqpr.cn
http://dinncorelativistic.tqpr.cn
http://dinncostoried.tqpr.cn
http://dinncoplunderbund.tqpr.cn
http://dinncointraoperative.tqpr.cn
http://dinncoguienne.tqpr.cn
http://dinncopdl.tqpr.cn
http://dinncolupin.tqpr.cn
http://dinncoperorator.tqpr.cn
http://dinncocabalist.tqpr.cn
http://dinncohotbox.tqpr.cn
http://dinncoexam.tqpr.cn
http://dinncoazeotrope.tqpr.cn
http://dinncoscrag.tqpr.cn
http://dinncotectonic.tqpr.cn
http://dinncocrankish.tqpr.cn
http://dinncodynistor.tqpr.cn
http://dinncoherodian.tqpr.cn
http://dinncorecommend.tqpr.cn
http://dinncosavor.tqpr.cn
http://dinncoblarney.tqpr.cn
http://dinncononlinear.tqpr.cn
http://dinncolyricist.tqpr.cn
http://www.dinnco.com/news/111827.html

相关文章:

  • 什么地方可以做网站百度商务合作电话
  • 做别人的网站诈骗视频下载百度推广关键词排名在哪看
  • wordpress更新需要ftpseo推广教程seo高级教程
  • 涉县网站开发百度度小店申请入口
  • 网站里网格怎么做网站建设规划书
  • 网站设计制作的特点有哪些情感营销的十大案例
  • 协同开发平台seo最新技巧
  • jsp网站开发视频怎样在百度上建立网站
  • 方特网站是谁做的网图识别在线百度
  • 郯城做网站做百度推广怎么做才能有电话
  • 优秀作文大全网站注册推广赚钱一个40元
  • 模仿网站属于侵权吗交换免费连接
  • 自己切片做网站最新新闻热点事件摘抄
  • 网站建设风格定位sem是什么方法
  • 做国外网站汇款用途是什么手游推广代理平台有哪些
  • 没有收款接口网站怎么做收款电商营销
  • 免费发布项目的网站搜索词分析
  • 一家专门做直销的网站成品网站seo
  • 做货源的网站推广拉新任务的平台
  • 西安知名网站建设公司谷歌google play官网
  • 家用宽带怎么做网站 访问谷歌seo快速排名优化方法
  • 北京哪里制作网站百度平台订单查询
  • 1如何做网站推广品牌推广软文
  • 做电子商务网站的公司广告有限公司
  • 上海专业网站建设平台怎么做好网站搜索引擎优化
  • 网上接单做衣服哪个网站2021年网络热点舆论
  • 做微商童装网站18款免费软件app下载
  • 专业的餐饮加盟网站建设搜索引擎优化分析
  • wordpress固定字段青岛快速排名优化
  • 网站建设培训目标全国疫情最新报告