FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
languages:php:index.html [2018/02/26 00:24] kurihara ↷ Page moved from languages:php:index.html to fabric:languages:php:index.html |
languages:php:index.html [2019/02/11 00:48] (current) kurihara |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ===== PHP Operation ===== | ===== PHP Operation ===== | ||
| + | ==== Fabric one-line Task Examples ==== | ||
| + | |||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| - | $ fab -l |grep php | + | $ fab -l |grep -F php. |
| </ | </ | ||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| - | $ fab -H $H auth.pro | + | $ fab -H $H |
| </ | </ | ||
| + | |||
| + | |||
| + | ==== Fabric one-line Task Examples ==== | ||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| $ H=test-server-1, | $ H=test-server-1, | ||
| - | $ fab -H $H auth.pro | + | $ fab -H $H |
| </ | </ | ||
| Line 42: | Line 47: | ||
| @task | @task | ||
| def check_php_rpm(): | def check_php_rpm(): | ||
| - | ''' | + | ''' |
| - | | + | |
| + | run(" | ||
| Line 60: | Line 66: | ||
| def install_phpfpm_yum(): | def install_phpfpm_yum(): | ||
| sudo(" | sudo(" | ||
| + | |||
| + | |||
| + | ## CentOS7 ## | ||
| + | @task | ||
| + | def install_php5.6_centos7(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | |||
| + | @task | ||
| + | def install_php7.0_centos7(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | |||
| + | @task | ||
| + | def install_php7.1_centos7(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | run(" | ||
| + | run(" | ||
| + | |||
| + | |||
| + | ## CentOS6 ## | ||
| + | @task | ||
| + | def install_php5.6_centos6(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | |||
| + | @task | ||
| + | def install_php7.0_centos6(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | |||
| + | @task | ||
| + | def install_php7.1_centos6(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
| + | run(" | ||
| + | run(" | ||
| + | |||
| + | |||
| + | # | ||
| + | # Installing composer | ||
| + | # | ||
| + | @task | ||
| + | def install_composer(): | ||
| + | sudo(" | ||
| + | sudo(" | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.