This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a44691ba-c0cf-4220-9b8a-6f68bebccf06 zvol_write | |
| value ------------- Distribution ------------- count | |
| 8192 | 0 | |
| 16384 | 3 | |
| 32768 | 21 | |
| 65536 | 26 | |
| 131072 |@@@@@@@@ 571 | |
| 262144 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 1982 | |
| 524288 | 1 | |
| 1048576 | 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import socket | |
| import sys | |
| import os | |
| if len(sys.argv) != 2: | |
| print "Usage: %s <domain>" % sys.argv[0] | |
| sys.exit(1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xe vm-list params | grep nova_uuid | sed 's/.* nova_uuid: \(.*\)\;.*/\1/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -7,7 +7,7 @@ | |
| location / { | |
| root /usr/share/nginx/html; | |
| - index index.html index.htm; | |
| + index index.html index.htm index.php; | |
| } | |
| #error_page 404 /404.html; | |
| @@ -27,13 +27,13 @@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /usr/share/nginx/html/ | |
| curl http://wordpress.org/latest.tar.gz | tar xvz | |
| chown -R nginx:nginx wordpress | |
| mysqladmin -p"$SQL_PW" create wordpress | |
| WP_PW=$(mkpasswd -l 32) | |
| mysql -p"$SQL_PW" -e "GRANT USAGE ON *.* TO wordpress@localhost IDENTIFIED BY '$WP_PW'" | |
| mysql -p"$SQL_PW" -e "GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost" | |
| echo "Your WordPress database user password: $WP_PW" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| phpinfo(); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service nginx start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
| # | |
| location ~ \.php$ { | |
| root html; | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name; | |
| include fastcgi_params; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
| # | |
| #location ~ \.php$ { | |
| # root html; | |
| # fastcgi_pass 127.0.0.1:9000; | |
| # fastcgi_index index.php; | |
| # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; | |
| # include fastcgi_params; | |
| #} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum -y install nginx | |
| chkconfig nginx on |