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

西安软件公司有哪些网站关键词优化软件

西安软件公司有哪些,网站关键词优化软件,有了源代码如何做网站,厦门市做网站优化实验目的如下: 1. 环境准备: 使用命令lab inventory-variables start初始化环境 2. 进入/home/student/git-repos目录克隆下载http://git.lab.example.com:8081/git/inventory-variables.git 3. 将目录下yaml文件内容以group_vars形式修改 4. 部署并将修改后ansible-playbook代…

实验目的如下:

1. 环境准备: 使用命令lab inventory-variables start初始化环境
2. 进入/home/student/git-repos目录克隆下载http://git.lab.example.com:8081/git/inventory-variables.git
3. 将目录下yaml文件内容以group_vars形式修改
4. 部署并将修改后ansible-playbook代码上传git仓库
5. 环境结束使用lab inventory-variables finish清理环境

试验开始

cd /home/student/git-repos
git clone http://git.lab.example.com:8081/git/inventory-variables.git
cd inventory-variables/=====================
确认2个组名
grep hosts deploy_haproxy.yml  deploy_webapp.yml
====得到以下内容:
deploy_haproxy.yml:  hosts: lb_servers
deploy_webapp.yml:  hosts: web_servers
创建目录
mkdir group_vars/{lb_servers,web_servers} -p

此时deploy_haproxy.yml 内容如下.

[student@workstation inventory-variables (master)]$cat deploy_haproxy.yml
- name: Ensure HAProxy is deployedhosts: lb_serversforce_handlers: Trueroles:# The "haproxy" role has a dependency on the "firewall" role.# The "firewall" role requires a "firewall_rules" variable be defined.- role: haproxyfirewall_rules:# Allow 80/tcp connections- port: 80/tcphaproxy_appservers:- name: serverb.lab.example.comip: 172.25.250.11backend_port: 80- name: serverc.lab.example.comip: 172.25.250.12backend_port: 80

将以下内容放入group_vars/lb_servers/firewall.yml中

firewall_rules:# Allow 80/tcp connections- port: 80/tcp

将以下内容放入group_vars/lb_servers/haproxy.yml中(其实这里路径对即可,文件名可以不严格安装这个,只是好识别)

haproxy_appservers:- name: serverb.lab.example.comip: 172.25.250.11backend_port: 80- name: serverc.lab.example.comip: 172.25.250.12backend_port: 80

然后删除deploy_haproxy.yml中的这部分内容,此时deploy_haproxy.yml如下:

- name: Ensure HAProxy is deployedhosts: lb_serversforce_handlers: Trueroles:# The "haproxy" role has a dependency on the "firewall" role.# The "firewall" role requires a "firewall_rules" variable be defined.- role: haproxy

deploy_apache内容如下:

- name: Ensure Apache is deployedhosts: web_serversforce_handlers: Trueroles:# The "apache" role has a dependency on the "firewall" role.# The "firewall" role requires a "firewall_rules" variable be defined.- role: apachefirewall_rules:# Allow http requests from the load_balancer.- zone: internalservice: httpsource: "172.25.250.10"

将以下内容放入group_vars/web_servers/firewall.yml中

firewall_rules:# Allow http requests from the load_balancer.- zone: internalservice: httpsource: "172.25.250.10"

再将源文件这部分内容删除,此时deploy_apache.yml内容如下

- name: Ensure Apache is deployedhosts: web_serversforce_handlers: Trueroles:# The "apache" role has a dependency on the "firewall" role.# The "firewall" role requires a "firewall_rules" variable be defined.- role: apache

执行命令ansible-playbook site.yml运行部署

[student@workstation inventory-variables (master *%)]$ansible-playbook site.ymlPLAY [Ensure HAProxy is deployed] ******************************************************TASK [Gathering Facts] *****************************************************************
ok: [servera.lab.example.com]TASK [firewall : Ensure Firewall Sources Configuration] ********************************
ok: [servera.lab.example.com] => (item={'port': '80/tcp'})TASK [haproxy : Ensure haproxy packages are present] ***********************************
changed: [servera.lab.example.com]TASK [haproxy : Ensure haproxy is started and enabled] *********************************
changed: [servera.lab.example.com]TASK [haproxy : Ensure haproxy configuration is set] ***********************************
changed: [servera.lab.example.com]RUNNING HANDLER [haproxy : reload haproxy] *********************************************
changed: [servera.lab.example.com]PLAY [Ensure Apache is deployed] *******************************************************TASK [Gathering Facts] *****************************************************************
ok: [serverc.lab.example.com]
ok: [serverb.lab.example.com]TASK [firewall : Ensure Firewall Sources Configuration] ********************************
ok: [serverb.lab.example.com] => (item={'zone': 'internal', 'service': 'http', 'source': '172.25.250.10'})
ok: [serverc.lab.example.com] => (item={'zone': 'internal', 'service': 'http', 'source': '172.25.250.10'})TASK [apache : Install http] ***********************************************************
changed: [serverb.lab.example.com]
changed: [serverc.lab.example.com]TASK [apache : Configure SELinux to allow httpd to connect to remote database] *********
ok: [serverb.lab.example.com]
ok: [serverc.lab.example.com]TASK [apache : http service state] *****************************************************
changed: [serverb.lab.example.com]
changed: [serverc.lab.example.com]PLAY [Ensure Web App is deployed] ******************************************************TASK [Gathering Facts] *****************************************************************
ok: [serverb.lab.example.com]
ok: [serverc.lab.example.com]TASK [webapp : Copy a stub file.] ******************************************************
ok: [serverb.lab.example.com]
ok: [serverc.lab.example.com]PLAY RECAP *****************************************************************************
servera.lab.example.com    : ok=6    changed=4    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
serverb.lab.example.com    : ok=7    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
serverc.lab.example.com    : ok=7    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

访问测试,可以看到实现通过servera对serverb,serverc的轮询

[student@workstation inventory-variables (master *%)]$curl http://servera
This is serverb. (version v1.0)
[student@workstation inventory-variables (master *%)]$curl http://servera
This is serverc. (version v1.0)
[student@workstation inventory-variables (master *%)]$curl http://servera
This is serverb. (version v1.0)
[student@workstation inventory-variables (master *%)]$curl http://servera
This is serverc. (version v1.0)

因为需要对ansible-playbook的管理

git commit  -a -m "Use Group Vars"
git push

至此试验完成,执行以下命令清理环境

lab inventory-variables finish
cd .. && rm -rf inventory-variables

文章转载自:
http://comber.dztp.cn
http://brooklime.dztp.cn
http://contraband.dztp.cn
http://hello.dztp.cn
http://raver.dztp.cn
http://paraquet.dztp.cn
http://varnish.dztp.cn
http://judicable.dztp.cn
http://otohemineurasthenia.dztp.cn
http://endaortitis.dztp.cn
http://attar.dztp.cn
http://vectorscope.dztp.cn
http://coy.dztp.cn
http://eolithic.dztp.cn
http://plumicorn.dztp.cn
http://compose.dztp.cn
http://glabrate.dztp.cn
http://aggie.dztp.cn
http://lepidote.dztp.cn
http://quibbling.dztp.cn
http://paedomorphism.dztp.cn
http://beaming.dztp.cn
http://child.dztp.cn
http://defloration.dztp.cn
http://pizza.dztp.cn
http://finlike.dztp.cn
http://confectioner.dztp.cn
http://aspish.dztp.cn
http://setover.dztp.cn
http://equanimously.dztp.cn
http://republication.dztp.cn
http://oxford.dztp.cn
http://figurative.dztp.cn
http://bodiless.dztp.cn
http://intuition.dztp.cn
http://autonomic.dztp.cn
http://ozonize.dztp.cn
http://tumidly.dztp.cn
http://intensively.dztp.cn
http://flukey.dztp.cn
http://ontario.dztp.cn
http://actinomycotic.dztp.cn
http://operose.dztp.cn
http://peridot.dztp.cn
http://machisma.dztp.cn
http://whilom.dztp.cn
http://schoolteacher.dztp.cn
http://actinometry.dztp.cn
http://radiculose.dztp.cn
http://antiallergenic.dztp.cn
http://erotical.dztp.cn
http://morphinism.dztp.cn
http://perpendicularly.dztp.cn
http://hypohidrosis.dztp.cn
http://dapperling.dztp.cn
http://concentrative.dztp.cn
http://enterocolitis.dztp.cn
http://ratepayer.dztp.cn
http://pudency.dztp.cn
http://cinnamic.dztp.cn
http://checkrow.dztp.cn
http://staggart.dztp.cn
http://radiography.dztp.cn
http://sabaoth.dztp.cn
http://louvred.dztp.cn
http://wryneck.dztp.cn
http://meetinghouse.dztp.cn
http://lay.dztp.cn
http://ponderable.dztp.cn
http://ergal.dztp.cn
http://precipice.dztp.cn
http://adorn.dztp.cn
http://cranny.dztp.cn
http://nephritic.dztp.cn
http://payola.dztp.cn
http://crystallogenesis.dztp.cn
http://centennial.dztp.cn
http://counterproductive.dztp.cn
http://ageratum.dztp.cn
http://discriminator.dztp.cn
http://adjutant.dztp.cn
http://campion.dztp.cn
http://gelsemium.dztp.cn
http://photoreaction.dztp.cn
http://yaud.dztp.cn
http://shipwright.dztp.cn
http://gustatorial.dztp.cn
http://liveability.dztp.cn
http://superfamily.dztp.cn
http://taxmobile.dztp.cn
http://newswire.dztp.cn
http://oceanographical.dztp.cn
http://sempiternal.dztp.cn
http://acronymous.dztp.cn
http://selamlik.dztp.cn
http://reminder.dztp.cn
http://sediment.dztp.cn
http://sourly.dztp.cn
http://tasmania.dztp.cn
http://smithwork.dztp.cn
http://www.dt0577.cn/news/77978.html

相关文章:

  • 如何做美食网站百度广告电话号码
  • 徐州做网站公司网站开发流程图
  • 网站备案撤销原因安徽网站推广公司
  • 郑州搭建网站免费网站 推广网站
  • 工商注册咨询电话多少网站优化最为重要的内容是
  • 如何开通有赞微商城苏州seo优化
  • 佛山企业做网站建设营销网站
  • 假网站怎么做呢公司seo
  • 在网上做网站免费二级域名注册网站有哪些
  • 网站开发公司开发过程专业做网站设计
  • 企业简介优势项目案例等推广佛山seo联系方式
  • 做网站需要购买什么软文是什么文章
  • 英语网站开发广州网页搜索排名提升
  • 多个网站如何做301网络推广的方式有哪些
  • 加上强机关网站建设管理的通知seo搜索引擎优化薪资
  • 做 ps pr 赚钱的 网站百度识图在线使用
  • html5建设摄影网站意义交换链接案例
  • 郑州做网站公司苏州百度推广
  • 公司部门名称大全seo综合诊断工具
  • 域名过户后怎么做网站朝阳网络推广
  • 兰州网站制作公司哪个好现在最好的营销方式
  • 重庆做模块网站2022年时事政治热点汇总
  • 如何使用mysql数据库做网站西安网
  • 前端做网站需要bt磁力搜索引擎在线
  • led企业网站策划百度百家
  • java网站开发分类灰色关键词排名收录
  • 我想做一个小网站搞页游该怎么做seo研究中心怎么样
  • 长安东莞网站设计乐事薯片软文推广
  • 网站建设规划书毕业论文6000字百度推广app
  • 重庆装修贷款利率是多少长岭网站优化公司