FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


middleware:httpd:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
middleware:httpd:index.html [2018/03/10 01:06]
kurihara [Apache httpd Configuration Examples]
middleware:httpd:index.html [2019/02/11 00:45] (current)
kurihara
Line 15: Line 15:
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
-$ fab  -H $H auth.pro  httpd.install_yum+$ fab  -H $H   httpd.install_yum
 </sxh> </sxh>
  
Line 23: Line 23:
 $ H=test-server-1,test-server-2 $ H=test-server-1,test-server-2
  
-$ fab  -H $H auth.pro  -- "ps aux |grep apahce"+$ fab  -H $H   -- "ps aux |grep apahce"
  
-$ fab  -H $H auth.pro  -- tree -Dpuga  /etc/httpd +$ fab  -H $H   -- tree -Dpuga  /etc/httpd 
-$ fab  -H $H auth.pro  -- tree -Dpuga  /etc/apache2+$ fab  -H $H   -- tree -Dpuga  /etc/apache2
 </sxh> </sxh>
  
Line 73: Line 73:
     '''tree -Dpuga  /etc/apache2  #ubuntu'''     '''tree -Dpuga  /etc/apache2  #ubuntu'''
     run("tree -Dpuga  /etc/apache2")     run("tree -Dpuga  /etc/apache2")
 +
 +#----------------------------------------------------------------------
 +# Check Configuration
 +#----------------------------------------------------------------------
 +#RHEL/CentOS
 +@task
 +def check_configuration_pkg():
 +    '''apachectl configtest'''
 +    run("apachectl configtest")
  
  


middleware/httpd/index.html.1520611585.txt.gz · Last modified: 2018/03/10 01:06 by kurihara