Advertisement
Guest User

My vps config ubuntu

a guest
Jan 21st, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.88 KB | None | 0 0
  1. Nginx Configuration:
  2.  
  3. user www-data;
  4. worker_processes 4;
  5. pid /run/nginx.pid;
  6.  
  7. events {
  8. worker_connections 768;
  9. # multi_accept on;
  10. }
  11.  
  12. http {
  13.  
  14. ##
  15. # Basic Settings
  16. ##
  17.  
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 65;
  22. types_hash_max_size 2048;
  23. server_tokens off;
  24.  
  25. # server_names_hash_bucket_size 64;
  26. # server_name_in_redirect off;
  27.  
  28. include /etc/nginx/mime.types;
  29. default_type application/octet-stream;
  30.  
  31. ##
  32. # Logging Settings
  33. ##
  34.  
  35. access_log /var/log/nginx/access.log;
  36. error_log /var/log/nginx/error.log;
  37.  
  38. ##
  39. # Gzip Settings
  40. ##
  41.  
  42. gzip on;
  43. gzip_disable "msie6";
  44.  
  45. # gzip_vary on;
  46. # gzip_proxied any;
  47. # gzip_comp_level 6;
  48. # gzip_buffers 16 8k;
  49. # gzip_http_version 1.1;
  50. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  51.  
  52. ##
  53. # nginx-naxsi config
  54. ##
  55. # Uncomment it if you installed nginx-naxsi
  56. ##
  57.  
  58. #include /etc/nginx/naxsi_core.rules;
  59.  
  60. ##
  61. # nginx-passenger config
  62. ##
  63. # Uncomment it if you installed nginx-passenger
  64. ##
  65.  
  66. #passenger_root /usr;
  67. #passenger_ruby /usr/bin/ruby;
  68.  
  69. ##
  70. # Virtual Host Configs
  71. ##
  72.  
  73. include /etc/nginx/conf.d/*.conf;
  74. include /etc/nginx/sites-enabled/*;
  75. }
  76.  
  77.  
  78. #mail {
  79. # # See sample authentication script at:
  80. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  81. #
  82. # # auth_http localhost/auth.php;
  83. # # pop3_capabilities "TOP" "USER";
  84. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  85. #
  86. # server {
  87. # listen localhost:110;
  88. # protocol pop3;
  89. # proxy on;
  90. # }
  91. #
  92. # server {
  93. # listen localhost:143;
  94. # protocol imap;
  95. # proxy on;
  96. # }
  97. #}
  98.  
  99.  
  100. Php5-fpm conf as stored in /etc/php5/fpm/main.conf
  101. ;;;;;;;;;;;;;;;;;;;;;
  102. ; FPM Configuration ;
  103. ;;;;;;;;;;;;;;;;;;;;;
  104.  
  105. ; All relative paths in this configuration file are relative to PHP's install
  106. ; prefix (/usr). This prefix can be dynamicaly changed by using the
  107. ; '-p' argument from the command line.
  108.  
  109. ; Include one or more files. If glob(3) exists, it is used to include a bunch of
  110. ; files from a glob(3) pattern. This directive can be used everywhere in the
  111. ; file.
  112. ; Relative path can also be used. They will be prefixed by:
  113. ; - the global prefix if it's been set (-p arguement)
  114. ; - /usr otherwise
  115. ;include=/etc/php5/fpm/*.conf
  116.  
  117. ;;;;;;;;;;;;;;;;;;
  118. ; Global Options ;
  119. ;;;;;;;;;;;;;;;;;;
  120.  
  121. [global]
  122. ; Pid file
  123. ; Note: the default prefix is /var
  124. ; Default Value: none
  125. pid = /var/run/php5-fpm.pid
  126.  
  127. ; Error log file
  128. ; Note: the default prefix is /var
  129. ; Default Value: log/php-fpm.log
  130. error_log = /var/log/php5-fpm.log
  131.  
  132. ; Log level
  133. ; Possible Values: alert, error, warning, notice, debug
  134. ; Default Value: notice
  135. ;log_level = notice
  136.  
  137. ; If this number of child processes exit with SIGSEGV or SIGBUS within the time
  138. ; interval set by emergency_restart_interval then FPM will restart. A value
  139. ; of '0' means 'Off'.
  140. ; Default Value: 0
  141. ;emergency_restart_threshold = 0
  142.  
  143. ; Interval of time used by emergency_restart_interval to determine when
  144. ; a graceful restart will be initiated. This can be useful to work around
  145. ; accidental corruptions in an accelerator's shared memory.
  146. ; Available Units: s(econds), m(inutes), h(ours), or d(ays)
  147. ; Default Unit: seconds
  148. ; Default Value: 0
  149. ;emergency_restart_interval = 0
  150.  
  151. ; Time limit for child processes to wait for a reaction on signals from master.
  152. ; Available units: s(econds), m(inutes), h(ours), or d(ays)
  153. ; Default Unit: seconds
  154. ; Default Value: 0
  155. ;process_control_timeout = 0
  156.  
  157. ; Send FPM to background. Set to 'no' to keep FPM in foreground for debugging.
  158. ; Default Value: yes
  159. ;daemonize = yes
  160.  
  161. ;;;;;;;;;;;;;;;;;;;;
  162. ; Pool Definitions ;
  163. ;;;;;;;;;;;;;;;;;;;;
  164.  
  165. ; Multiple pools of child processes may be started with different listening
  166. ; ports and different management options. The name of the pool will be
  167. ; used in logs and stats. There is no limitation on the number of pools which
  168. ; FPM can handle. Your system will tell you anyway :)
  169.  
  170. ; To configure the pools it is recommended to have one .conf file per
  171. ; pool in the following directory:
  172. include=/etc/php5/fpm/pool.d/*.conf
  173.  
  174. Ram Usage at top
  175.  
  176. Private + Shared = RAM used Program
  177.  
  178. 188.0 KiB + 30.0 KiB = 218.0 KiB syslogd
  179. 284.0 KiB + 45.0 KiB = 329.0 KiB cron
  180. 296.0 KiB + 45.0 KiB = 341.0 KiB xinetd
  181. 372.0 KiB + 228.5 KiB = 600.5 KiB pickup
  182. 400.0 KiB + 211.5 KiB = 611.5 KiB master
  183. 472.0 KiB + 232.5 KiB = 704.5 KiB qmgr
  184. 712.0 KiB + 58.5 KiB = 770.5 KiB init
  185. 1.1 MiB + 41.0 KiB = 1.1 MiB bash
  186. 1.4 MiB + 851.0 KiB = 2.2 MiB sshd (2)
  187. 2.4 MiB + 1.1 MiB = 3.4 MiB nginx (5)
  188. 11.5 MiB + 122.5 KiB = 11.6 MiB named
  189. 18.3 MiB + 81.5 KiB = 18.4 MiB mysqld
  190. 244.2 MiB + 83.4 MiB = 327.6 MiB php5-fpm (21)
  191. ---------------------------------
  192. 367.9 MiB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement