FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


middleware:nginx: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
Next revision Both sides next revision
middleware:nginx:index.html [2018/01/27 22:47]
kurihara
middleware:nginx:index.html [2018/02/21 23:50]
kurihara
Line 19: Line 19:
 </sxh> </sxh>
  
- +\\ 
-==== Ref. Remote Shell Commands ====+==== Fabric Temporary Run Call Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-1,test-server-2 $ H=test-server-1,test-server-2
Line 26: Line 26:
 $ fab  -H $H auth.pro  -- sudo systemctl status nginx $ fab  -H $H auth.pro  -- sudo systemctl status nginx
 $ fab  -H $H auth.pro  -- sudo systemctl restart nginx $ fab  -H $H auth.pro  -- sudo systemctl restart nginx
 +
 +$ fab  -H $H auth.pro  -- "nginx -t"
 +$ fab  -H $H auth.pro  -- "nginx -t -c /etc/nginx/nginx.conf"
  
 $ fab  -H $H auth.pro  -- "ps aux |grep nginx" $ fab  -H $H auth.pro  -- "ps aux |grep nginx"
Line 60: Line 63:
 # Check Configuration Files # Check Configuration Files
 #---------------------------------------------------------------------- #----------------------------------------------------------------------
 +# nginx.check_files_etc_nginx
 +@task
 +def check_nginx.conf():
 +    '''nginx -t'''
 +    sudo("nginx -t")
 +
 # nginx.check_files_etc_nginx # nginx.check_files_etc_nginx
 @task @task
Line 65: Line 74:
     '''tree -Dpuga  /etc/nginx'''     '''tree -Dpuga  /etc/nginx'''
     run("tree -Dpuga  /etc/nginx")     run("tree -Dpuga  /etc/nginx")
 +
  
  
Line 80: Line 90:
  
 \\ \\
-===== Configuration =====+===== Nginx Configuration Examples=====
   *[[middleware:nginx:nginx.conf.html]]   *[[middleware:nginx:nginx.conf.html]]
   *[[middleware:nginx:dokuwiki.html]]   *[[middleware:nginx:dokuwiki.html]]
Line 89: Line 99:
 \\ \\
 <WRAP box 90%> <WRAP box 90%>
-<catlist ..: -noAddPageButton -smallHead -sortAscending>+<catlist .: -noAddPageButton -smallHead -sortAscending>
 </WRAP> </WRAP>
 \\ \\
 [[:index.html#Middleware Management|Top#Middleware Management]] [[:index.html#Middleware Management|Top#Middleware Management]]


middleware/nginx/index.html.txt · Last modified: 2019/02/11 00:45 by kurihara