249
Views

How To Take Amazing Portraits With Your Google Pixel 2, Iphone X, Samsung S9, Oneplus 6 E.T.C

Prince Meyson posted the article • 0 comments • 249 views • 2019-04-15 12:45 • data from similar tags

 




 
 
In today's video I'll be showing you how i take amazing outdoor portraits with my smartphone. This will work great with any smartphone that has portrait mode which tends to emulate shooting on a dlsr with the blurred out background. Phones like the Google Pixel 2, Samsung Galaxy S9/S8, Iphone X, OnePlus 6 and a host of other new devices can do this. Have Fun Shooting!! view all
 





 
 
In today's video I'll be showing you how i take amazing outdoor portraits with my smartphone. This will work great with any smartphone that has portrait mode which tends to emulate shooting on a dlsr with the blurred out background. Phones like the Google Pixel 2, Samsung Galaxy S9/S8, Iphone X, OnePlus 6 and a host of other new devices can do this. Have Fun Shooting!!
220
Views

Motivational Mondays: 2 Tips That Will Change Your Career Forever

Prince Meyson posted the article • 0 comments • 220 views • 2019-04-15 12:38 • data from similar tags

 

 
 
In today's video I'll be sharing two tips that have helped me grow tremendously since i started photography. view all
 


 
 
In today's video I'll be sharing two tips that have helped me grow tremendously since i started photography.
281
Views

Photoshop CC Tutorial: How To Brighten And Whiten Eyes In Photoshop

Prince Meyson posted the article • 0 comments • 281 views • 2019-04-15 12:35 • data from similar tags

 

 
In todays video I'll be showing you how to brighten and whiten eyes in photoshop with just a few simple steps. view all
 


 
In todays video I'll be showing you how to brighten and whiten eyes in photoshop with just a few simple steps.
283
Views

Editing A Golden Hour Portrait From Start To Finish In Capture One Pro And Photoshop

Prince Meyson posted the article • 0 comments • 283 views • 2019-04-15 12:34 • data from similar tags

 

 
 
 


 
 
260
Views

Photoshop And Capture One Pro Tutorial: Editing Bridal Portraits

Prince Meyson posted the article • 0 comments • 260 views • 2019-04-15 12:25 • data from similar tags

 

 
In today's video I'll be showing you guys how I edited a bridal portrait of a bride i posted on instagram a few days ago.
 
  view all
 


 
In today's video I'll be showing you guys how I edited a bridal portrait of a bride i posted on instagram a few days ago.
 
 
609
Views

how to write the perfect question on Africalocals.com

Reply

atlascopco posted a question • 1 users followed • 0 replies • 609 views • 2019-03-25 18:34 • data from similar tags

340
Views

How to backup your whole website program on centos7 and nginx server as soon as possible?Just follow this step by step tutorial

Luboff posted the article • 1 comments • 340 views • 2019-03-11 22:17 • data from similar tags

Step 1.  Login your server via terminal , I use ssh , so I typed ssh [email protected] your.server.ip.here

Step 2. My website program folder  in /user/local/openresty/ningx/html/. So I typed this command in my terminal .If you use 

nginx and apache , just make sure your folder dirctory is correct.tar -zcvf html.tar.gz /usr/local/openresty/nginx/html/*

step 3.  your server would begin to backup automatically ,keep wait until terminal show hashtag #  again. And then you would find html.tar.gz in your server root directory












step 4. Now ,you can use Transmit or Yummy Ftp server tools to download to your local computer. view all
Step 1.  Login your server via terminal , I use ssh , so I typed 
ssh [email protected]  your.server.ip.here


Step 2. My website program folder  in /user/local/openresty/ningx/html/. So I typed this command in my terminal .If you use 

nginx and apache , just make sure your folder dirctory is correct.
tar -zcvf html.tar.gz /usr/local/openresty/nginx/html/*


step 3.  your server would begin to backup automatically ,keep wait until terminal show hashtag #  again. And then you would find html.tar.gz in your server root directory



屏幕快照_2019-03-11_下午7.25_.04_.png






step 4. Now ,you can use Transmit or Yummy Ftp server tools to download to your local computer.
474
Views

Caddy vs SSLDocker vs Nginx , which is the best suitable web server for your vps ? I tested their performance with step by step tutorial

Eston posted the article • 0 comments • 474 views • 2019-03-08 11:28 • data from similar tags

1. I tested them on RAM 1 GB vps, i use hey 1 send requests 
 # ./hey -n=20000 -c=5 https://mydomain.com/
2. Caddy results:
 
 
 Summary:
Total: 64.9214 secs
Slowest: 0.7156 secs
Fastest: 0.0031 secs
Average: 0.0161 secs
Requests/sec: 308.0650

Response time histogram:
0.003 [1] |
0.074 [19888] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.146 [2] |
0.217 [2] |
0.288 [2] |
0.359 [90] |
0.431 [1] |
0.502 [11] |
0.573 [1] |
0.644 [1] |
0.716 [1] |
 
4. SSLDocker results:
 Summary:
Total: 63.0618 secs
Slowest: 0.4883 secs
Fastest: 0.0030 secs
Average: 0.0156 secs
Requests/sec: 317.1490

Response time histogram:
0.003 [1] |
0.052 [19865] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.100 [1] |
0.149 [2] |
0.197 [1] |
0.246 [0] |
0.294 [15] |
0.343 [95] |
0.391 [0] |
0.440 [2] |
0.488 [18] |
 
5. Nginx (openresty) results:Summary:
Total: 57.8501 secs
Slowest: 0.0523 secs
Fastest: 0.0029 secs
Average: 0.0144 secs
Requests/sec: 345.7212

Response time histogram:
0.003 [1] |
0.008 [539] |∎∎
0.013 [4327] |∎∎∎∎∎∎∎∎∎∎∎∎∎
0.018 [13150] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.023 [1397] |∎∎∎∎
0.028 [404] |∎
0.033 [120] |
0.037 [35] |
0.042 [18] |
0.047 [4] |
0.052 [5] |
 
6. Requests per second (RPS)Caddy 308 < SSLDocker 317 < Nginx 345
Nginx and SSLDocker have better performance
 
Caddy config:mydomain.com {
gzip
proxy / 127.0.0.1:8999
}
mydomain2.com {
proxy / 127.0.0.1:8888
}
SSLDocker config:{
"Email": "[email protected]",
"GzipOn": true,
"Http2https": true,
"MaxHeader": 10,
"Certs": "certs",
"ProxyItems": [
{"Host": "mydomain.com", "Target": "http://localhost:8999"},
{"Host": "mydomain2.com", "Target": "http://localhost:8888"}
]
}
Nginx config:
 server {
listen 443;
server_name mydomain.com;

ssl on;
ssl_certificate /root/ssl/chained.pem;
ssl_certificate_key /root/ssl/domain.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA;
ssl_prefer_server_ciphers on;

location ^~ /.well-known/acme-challenge/ {
alias /var/www/myapp/;
try_files $uri =404;
}

location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8999;
}
}
 
So  When should you use caddy and ssl docker?
 
my answer: if you run multiple websites,and each website use https .if you think it's hard and complex to config https ,you should use caddy and SSLDocker, they  would auto generate ssl . Nginx is stable and mature , you can search lots of solutions when you meet issues.
 
 
 
 
 
 
 
 
  view all
1. I tested them on RAM 1 GB vps, i use hey 1 send requests 
 
# ./hey -n=20000 -c=5 https://mydomain.com/

2. Caddy results:
 
 
 
Summary:
Total: 64.9214 secs
Slowest: 0.7156 secs
Fastest: 0.0031 secs
Average: 0.0161 secs
Requests/sec: 308.0650

Response time histogram:
0.003 [1] |
0.074 [19888] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.146 [2] |
0.217 [2] |
0.288 [2] |
0.359 [90] |
0.431 [1] |
0.502 [11] |
0.573 [1] |
0.644 [1] |
0.716 [1] |

 
4. SSLDocker results:
 
Summary: 
Total: 63.0618 secs
Slowest: 0.4883 secs
Fastest: 0.0030 secs
Average: 0.0156 secs
Requests/sec: 317.1490

Response time histogram:
0.003 [1] |
0.052 [19865] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.100 [1] |
0.149 [2] |
0.197 [1] |
0.246 [0] |
0.294 [15] |
0.343 [95] |
0.391 [0] |
0.440 [2] |
0.488 [18] |

 
5. Nginx (openresty) results:
Summary:
Total: 57.8501 secs
Slowest: 0.0523 secs
Fastest: 0.0029 secs
Average: 0.0144 secs
Requests/sec: 345.7212

Response time histogram:
0.003 [1] |
0.008 [539] |∎∎
0.013 [4327] |∎∎∎∎∎∎∎∎∎∎∎∎∎
0.018 [13150] |∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
0.023 [1397] |∎∎∎∎
0.028 [404] |∎
0.033 [120] |
0.037 [35] |
0.042 [18] |
0.047 [4] |
0.052 [5] |

 
6. Requests per second (RPS)
Caddy 308 < SSLDocker 317 < Nginx 345

Nginx and SSLDocker have better performance
 
Caddy config:
mydomain.com {
gzip
proxy / 127.0.0.1:8999
}
mydomain2.com {
proxy / 127.0.0.1:8888
}

SSLDocker config:
{
"Email": "[email protected]",
"GzipOn": true,
"Http2https": true,
"MaxHeader": 10,
"Certs": "certs",
"ProxyItems": [
{"Host": "mydomain.com", "Target": "http://localhost:8999"},
{"Host": "mydomain2.com", "Target": "http://localhost:8888"}
]
}

Nginx config:
 
server {
listen 443;
server_name mydomain.com;

ssl on;
ssl_certificate /root/ssl/chained.pem;
ssl_certificate_key /root/ssl/domain.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA;
ssl_prefer_server_ciphers on;

location ^~ /.well-known/acme-challenge/ {
alias /var/www/myapp/;
try_files $uri =404;
}

location / {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8999;
}
}

 
So  When should you use caddy and ssl docker?
 
my answer: if you run multiple websites,and each website use https .if you think it's hard and complex to config https ,you should use caddy and SSLDocker, they  would auto generate ssl . Nginx is stable and mature , you can search lots of solutions when you meet issues.
 
 
 
 
 
 
 
 
 
449
Views

How to check and generate an accurate nginx config file

evan posted the article • 0 comments • 449 views • 2019-03-08 10:49 • data from similar tags

1.  go to https://nginxconfig.io and select what stacks your are using . this site support Php,node js ,Django,Magento,etc.
 
2. type your domain name ,e.g .  I typed mydomain.com for test.





 
 
3. click the Generated config blue button and download a zip file,and open it.
 





 
4. these are common config file you can view(Server):# Virtual host: create symbolic links
ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf /etc/nginx/sites-enabled

# HTTPS - certbot (before first run): create ACME-challenge common directory
mkdir -p /var/www/_letsencrypt && chown www-data /var/www/_letsencrypt

# HTTPS - certbot (before first run): disable SSL directives
sed -i -r 's/(listen .*443)/\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g' /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf

# HTTPS - certbot: obtain certificates
certbot certonly --webroot -d example.com -d www.example.com --email [email protected] -w /var/www/_letsencrypt -n --agree-tos --force-renewal
certbot certonly --webroot -d mydomain.com -d www.mydomain.com --email [email protected] -w /var/www/_letsencrypt -n --agree-tos --force-renewal

# HTTPS - certbot (after first run): enable SSL directives
sed -i -r 's/#?;#//g' /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf
 
/etc/nginx/nginx.conf
 # Generated by nginxconfig.io
# https://nginxconfig.io/%3F1.do ... false

user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;

events {
multi_accept on;
worker_connections 65535;
}

http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
log_not_found off;
types_hash_max_size 2048;
client_max_body_size 16M;

# MIME
include mime.types;
default_type application/octet-stream;

# logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;

# SSL
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;

# modern configuration
ssl_protocols TLSv1.2;
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256;
ssl_prefer_server_ciphers on;

# OCSP Stapling
ssl_stapling on;
ssl_stapling_verify on;
resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 valid=60s;
resolver_timeout 2s;

# load configs
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
 
/etc/nginx/sites-available/example.com.confserver {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.example.com;
set $base /var/www/example.com;
root $base/public;

# SSL
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;

# index.php
index index.php;

# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}

# handle .php
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}

include nginxconfig.io/general.conf;
}

# non-www, subdomains redirect
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name .example.com;

# SSL
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;

return 301 https://www.example.com$request_uri;
}

# HTTP redirect
server {
listen 80;
listen [::]:80;

server_name .example.com;

include nginxconfig.io/letsencrypt.conf;

location / {
return 301 https://example.com$request_uri;
}
}
 
 
 
/etc/nginx/sites-available/mydomain.com.conf
 server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.mydomain.com;
set $base /var/www/mydomain.com;
root $base/public;

# SSL
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mydomain.com/chain.pem;

# index.php
index index.php;

# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}

# handle .php
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}

include nginxconfig.io/general.conf;
}

# non-www, subdomains redirect
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name .mydomain.com;

# SSL
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mydomain.com/chain.pem;

return 301 https://www.mydomain.com$request_uri;
}

# HTTP redirect
server {
listen 80;
listen [::]:80;

server_name .mydomain.com;

include nginxconfig.io/letsencrypt.conf;

location / {
return 301 https://www.mydomain.com$request_uri;
}
}
 
/etc/nginx/nginxconfig.io/php_fastcgi.conf
 # 404
try_files $fastcgi_script_name =404;

# default fastcgi_params
include fastcgi_params;

# fastcgi settings
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;

# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";
 
/etc/nginx/nginxconfig.io/general.conf# security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

# . files
location ~ /\.(?!well-known) {
deny all;
}

# assets, media
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
expires 7d;
access_log off;
}

# svg, fonts
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
add_header Access-Control-Allow-Origin "*";
expires 7d;
access_log off;
}

# gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
 
 
 
  view all
1.  go to https://nginxconfig.io and select what stacks your are using . this site support Php,node js ,Django,Magento,etc.
 
2. type your domain name ,e.g .  I typed mydomain.com for test.

屏幕快照_2019-03-08_上午8.36_.04_.png

 
 
3. click the Generated config blue button and download a zip file,and open it.
 
屏幕快照_2019-03-08_上午8.37_.54_.png


 
4. these are common config file you can view(Server):
# Virtual host: create symbolic links
ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf /etc/nginx/sites-enabled

# HTTPS - certbot (before first run): create ACME-challenge common directory
mkdir -p /var/www/_letsencrypt && chown www-data /var/www/_letsencrypt

# HTTPS - certbot (before first run): disable SSL directives
sed -i -r 's/(listen .*443)/\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g' /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf

# HTTPS - certbot: obtain certificates
certbot certonly --webroot -d example.com -d www.example.com --email [email protected] -w /var/www/_letsencrypt -n --agree-tos --force-renewal
certbot certonly --webroot -d mydomain.com -d www.mydomain.com --email [email protected] -w /var/www/_letsencrypt -n --agree-tos --force-renewal

# HTTPS - certbot (after first run): enable SSL directives
sed -i -r 's/#?;#//g' /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-available/mydomain.com.conf

 
/etc/nginx/nginx.conf
 
# Generated by nginxconfig.io
# https://nginxconfig.io/%3F1.do ... false

user www-data;
pid /run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 65535;

events {
multi_accept on;
worker_connections 65535;
}

http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
server_tokens off;
log_not_found off;
types_hash_max_size 2048;
client_max_body_size 16M;

# MIME
include mime.types;
default_type application/octet-stream;

# logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log warn;

# SSL
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;

# modern configuration
ssl_protocols TLSv1.2;
ssl_ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256;
ssl_prefer_server_ciphers on;

# OCSP Stapling
ssl_stapling on;
ssl_stapling_verify on;
resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 valid=60s;
resolver_timeout 2s;

# load configs
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

 
/etc/nginx/sites-available/example.com.conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.example.com;
set $base /var/www/example.com;
root $base/public;

# SSL
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;

# index.php
index index.php;

# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}

# handle .php
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}

include nginxconfig.io/general.conf;
}

# non-www, subdomains redirect
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name .example.com;

# SSL
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;

return 301 https://www.example.com$request_uri;
}

# HTTP redirect
server {
listen 80;
listen [::]:80;

server_name .example.com;

include nginxconfig.io/letsencrypt.conf;

location / {
return 301 https://example.com$request_uri;
}
}

 
 
 
/etc/nginx/sites-available/mydomain.com.conf
 
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name www.mydomain.com;
set $base /var/www/mydomain.com;
root $base/public;

# SSL
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mydomain.com/chain.pem;

# index.php
index index.php;

# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}

# handle .php
location ~ \.php$ {
include nginxconfig.io/php_fastcgi.conf;
}

include nginxconfig.io/general.conf;
}

# non-www, subdomains redirect
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

server_name .mydomain.com;

# SSL
ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/mydomain.com/chain.pem;

return 301 https://www.mydomain.com$request_uri;
}

# HTTP redirect
server {
listen 80;
listen [::]:80;

server_name .mydomain.com;

include nginxconfig.io/letsencrypt.conf;

location / {
return 301 https://www.mydomain.com$request_uri;
}
}

 
/etc/nginx/nginxconfig.io/php_fastcgi.conf
 
# 404
try_files $fastcgi_script_name =404;

# default fastcgi_params
include fastcgi_params;

# fastcgi settings
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;

# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";

 
/etc/nginx/nginxconfig.io/general.conf
# security headers
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;

# . files
location ~ /\.(?!well-known) {
deny all;
}

# assets, media
location ~* \.(?:css(\.map)?|js(\.map)?|jpe?g|png|gif|ico|cur|heic|webp|tiff?|mp3|m4a|aac|ogg|midi?|wav|mp4|mov|webm|mpe?g|avi|ogv|flv|wmv)$ {
expires 7d;
access_log off;
}

# svg, fonts
location ~* \.(?:svgz?|ttf|ttc|otf|eot|woff2?)$ {
add_header Access-Control-Allow-Origin "*";
expires 7d;
access_log off;
}

# gzip
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;

 
 
 
 
331
Views

3 SEO Tips to Kickstart Your Website Ranking in Tanzania

primeware posted the article • 0 comments • 331 views • 2019-01-31 01:34 • data from similar tags

So, you want to improve your website ranking?

Well you have made a good choice, In the world of marketing it’s always best to spend little to nothing but get x times the ROI whether the investment was time or money.

Note

It’s basically like sitting down and making money as times goes by .

90% of all online experiences start with a search engine whether it’s Google,Bing or yahoo most of online users have no idea of their destination website or app but they do have an idea of typing some keywords to get relevant results , 75% of users never scroll to the second page of results, and 70% to 80% of users completely ignore paid search advertisements.

This means that if you get your website ranking organically on search engines, you’ll leverage all of that percentage potential.

Unfortunately, you’re not the only one trying to do it,Yes competition is everywhere in the marketing world. Since SEO offers so much promise, everyone with a website is trying to get their cut of SERP potential.

That means that you’re going to have to compete with a lot of other websites to get to the top.

In fact, 27.88% of marketing dollars go toward SEO.That’s a higher percentage than social media, PPC, and link building combined.

But don’t get disappointed by this please do find some of the tricks that we do apply here at Primeware to our clients hopefully these tricks can help you on your journey to a better ranking.

Tip #1: Use competitive analysis

One of the best way to achieve a better seo is to analyze the successful competition.

Get to know the following

What are they doing?

How are they doing it?

How much are they spending?

And how can you mimic their efforts?

These are all valid questions to ask when trying to determine what your competitors are doing right, what they’re doing wrong, and how you can copy their successful tactics.

As with most marketing practices, it’s best to have an understanding of what other people are doing to win rather than trying to build a strategy from scratch.

After all, why use a strategy that you’re not sure works when you could use one that is tried and tested by a competitor?

Yes it’s not like in class where your teacher can penalize you for copying one another in marketing you pose to compete to it’s a good strategy to copy.

But how do you go about analyzing the competition?

Well, you’re going to need a few tools. The first one is BuzzSumo.

BuzzSumo has a free trial you can use every day if you like. It won’t give you as many results as the paid version, but it’s still worth your time.

If you type a competitor’s URL into the domain text box, BuzzSumo will show you which pieces of content on their website are getting shared the most.

And shares are good for SEO since it increases your social signals for that page.

You can then click on the content and read through it to get an understanding of how they generated all of those shares.

Note

You can also use Moz’s Open Site Explorer to do something similar.

Tip #2: Get active on social media

Think about it this way.

Search engines try to take into account as much information as possible about your website.

They use it to determine the quality of your website and thus where they should place you when someone searches regarding a topic within your niche.

One of the factors that search engines consider is social media. In particular, they consider the following questions:

How active are your social media accounts?
How up-to-date are your social media accounts?
How many shares does your website content get on social media?

On top of all that SEO attention, keep in mind that social media also offers 2.7 billion social media users. That’s a lot of selling potential

In other words, social media sharing and marketing are well worth your time.

It’s not just worth it for the sake of reaching a larger audience on the social media platform itself, but also because all that attention will benefit your SEO strategy.

When it comes to which social media platforms to focus your efforts on, it’s ultimately up to you.

Tip #3: Optimize on-page elements

One of the best ways to kickstart your website’s SEO is by optimizing the on-page elements.

In fact, if you don’t make sure that you have optimized all of the on-page elements, it’s going to be difficult to get very far with all of your other efforts.

For that reason, this should be one of your top priorities.

But what on-page elements matter most, and how can you optimize them?

Well, the lowest-hanging fruit is correct keyword placement.

To research the keywords that you should target with each page on your website, go to Keyword Tool.

Then, at the top of the tool, you can choose the search engine you want to focus on. Most of you will probably want to look at Google, but not necessarily.

Next, type in your niche product or industry that gives a basic idea of the keywords you want to target. Try “content marketing,” for instance.

Click the red search icon on the right.

What you’re going to see on the next page is awesome. Keyword Tool will show you a list of the keywords that people have searched for the most that include the words you typed in.

If you purchase the paid version, you’ll even be able to see the exact amount of searches for each keyword and the competition for each.

But how do you use this list of valuable information?

Simply choose a few of the keywords that you think you could create a blog post from.

In the example above, you might choose “content marketing strategy,” or “content marketing definition.”

Once you choose a topic, write a blog post with those keywords in the title and within the content itself.

You can also include LSI keywords. To find these, simply type the keyword you’re targeting into Google.

Scroll to the bottom of the page and you’ll see the related searches.

If you sprinkle these related keywords — also known as LSI keywords — throughout your content as well, it will give your page a better chance of ranking for the right topic.

You’ll also need to make sure that you include your primary keywords in the title tag of your page.

You’ll want to add a meta description as well.

That will help Google quickly and easily recognize what your page is about and place it in the right category.

Another way to quickly optimize your on-page SEO is to increase the word count of your blog posts.

Generally, longer posts perform better.

Sometimes, writing long content can feel like a drag. But it doesn’t have to be.

Just do plenty of research and put together a thorough outline before you start writing. Then it won’t be difficult to know what you’re going to discuss in the upcoming paragraphs.

Finally, to optimize your on-page SEO, you’ll want to include some internal links in each blog post.

Two or three links on each post that lead to other pages of your website should suffice. Just make sure that they’re in-text citations (rather than image attributions) since those count for more on Google.

All of those elements, from keyword optimization to word count, will prep your site for ranking like you want it to. view all
So, you want to improve your website ranking?

Well you have made a good choice, In the world of marketing it’s always best to spend little to nothing but get x times the ROI whether the investment was time or money.

Note

It’s basically like sitting down and making money as times goes by .

90% of all online experiences start with a search engine whether it’s Google,Bing or yahoo most of online users have no idea of their destination website or app but they do have an idea of typing some keywords to get relevant results , 75% of users never scroll to the second page of results, and 70% to 80% of users completely ignore paid search advertisements.

This means that if you get your website ranking organically on search engines, you’ll leverage all of that percentage potential.

Unfortunately, you’re not the only one trying to do it,Yes competition is everywhere in the marketing world. Since SEO offers so much promise, everyone with a website is trying to get their cut of SERP potential.

That means that you’re going to have to compete with a lot of other websites to get to the top.

In fact, 27.88% of marketing dollars go toward SEO.That’s a higher percentage than social media, PPC, and link building combined.

But don’t get disappointed by this please do find some of the tricks that we do apply here at Primeware to our clients hopefully these tricks can help you on your journey to a better ranking.

Tip #1: Use competitive analysis

One of the best way to achieve a better seo is to analyze the successful competition.

Get to know the following

What are they doing?

How are they doing it?

How much are they spending?

And how can you mimic their efforts?

These are all valid questions to ask when trying to determine what your competitors are doing right, what they’re doing wrong, and how you can copy their successful tactics.

As with most marketing practices, it’s best to have an understanding of what other people are doing to win rather than trying to build a strategy from scratch.

After all, why use a strategy that you’re not sure works when you could use one that is tried and tested by a competitor?

Yes it’s not like in class where your teacher can penalize you for copying one another in marketing you pose to compete to it’s a good strategy to copy.

But how do you go about analyzing the competition?

Well, you’re going to need a few tools. The first one is BuzzSumo.

BuzzSumo has a free trial you can use every day if you like. It won’t give you as many results as the paid version, but it’s still worth your time.

If you type a competitor’s URL into the domain text box, BuzzSumo will show you which pieces of content on their website are getting shared the most.

And shares are good for SEO since it increases your social signals for that page.

You can then click on the content and read through it to get an understanding of how they generated all of those shares.

Note

You can also use Moz’s Open Site Explorer to do something similar.

Tip #2: Get active on social media

Think about it this way.

Search engines try to take into account as much information as possible about your website.

They use it to determine the quality of your website and thus where they should place you when someone searches regarding a topic within your niche.

One of the factors that search engines consider is social media. In particular, they consider the following questions:

How active are your social media accounts?
How up-to-date are your social media accounts?
How many shares does your website content get on social media?

On top of all that SEO attention, keep in mind that social media also offers 2.7 billion social media users. That’s a lot of selling potential

In other words, social media sharing and marketing are well worth your time.

It’s not just worth it for the sake of reaching a larger audience on the social media platform itself, but also because all that attention will benefit your SEO strategy.

When it comes to which social media platforms to focus your efforts on, it’s ultimately up to you.

Tip #3: Optimize on-page elements

One of the best ways to kickstart your website’s SEO is by optimizing the on-page elements.

In fact, if you don’t make sure that you have optimized all of the on-page elements, it’s going to be difficult to get very far with all of your other efforts.

For that reason, this should be one of your top priorities.

But what on-page elements matter most, and how can you optimize them?

Well, the lowest-hanging fruit is correct keyword placement.

To research the keywords that you should target with each page on your website, go to Keyword Tool.

Then, at the top of the tool, you can choose the search engine you want to focus on. Most of you will probably want to look at Google, but not necessarily.

Next, type in your niche product or industry that gives a basic idea of the keywords you want to target. Try “content marketing,” for instance.

Click the red search icon on the right.

What you’re going to see on the next page is awesome. Keyword Tool will show you a list of the keywords that people have searched for the most that include the words you typed in.

If you purchase the paid version, you’ll even be able to see the exact amount of searches for each keyword and the competition for each.

But how do you use this list of valuable information?

Simply choose a few of the keywords that you think you could create a blog post from.

In the example above, you might choose “content marketing strategy,” or “content marketing definition.”

Once you choose a topic, write a blog post with those keywords in the title and within the content itself.

You can also include LSI keywords. To find these, simply type the keyword you’re targeting into Google.

Scroll to the bottom of the page and you’ll see the related searches.

If you sprinkle these related keywords — also known as LSI keywords — throughout your content as well, it will give your page a better chance of ranking for the right topic.

You’ll also need to make sure that you include your primary keywords in the title tag of your page.

You’ll want to add a meta description as well.

That will help Google quickly and easily recognize what your page is about and place it in the right category.

Another way to quickly optimize your on-page SEO is to increase the word count of your blog posts.

Generally, longer posts perform better.

Sometimes, writing long content can feel like a drag. But it doesn’t have to be.

Just do plenty of research and put together a thorough outline before you start writing. Then it won’t be difficult to know what you’re going to discuss in the upcoming paragraphs.

Finally, to optimize your on-page SEO, you’ll want to include some internal links in each blog post.

Two or three links on each post that lead to other pages of your website should suffice. Just make sure that they’re in-text citations (rather than image attributions) since those count for more on Google.

All of those elements, from keyword optimization to word count, will prep your site for ranking like you want it to.
374
Views

how to clear docker unnecessary resources to give more space for memories, like unnecessary containers, unnecessary images, volumes,etc.

Bobby posted the article • 0 comments • 374 views • 2018-12-13 19:10 • data from similar tags

Check the docker used resources.
 
 docker container ls:Default list containers,-a Show all containers (default shows just running)
docker image ls:Show all images (default hides intermediate images)
docker volume ls:Show all volumes.
docker network ls:Show network.
docker info:Display system-wide information.
 
 
$ docker system prune
 
 
 
if you wanna remove specific volumns
 
$ docker system prune --all --force --volumns

 
  view all
  • Check the docker used resources.

 
 docker container ls:Default list containers,-a Show all containers (default shows just running)
docker image ls:Show all images (default hides intermediate images)
docker volume ls:Show all volumes.
docker network ls:Show network.
docker info:Display system-wide information.
 
 
$ docker system prune

 
 
 
if you wanna remove specific volumns
 
$ docker system prune --all --force --volumns


 
 
325
Views

How to clear specific website cache, tutorial with images

dickieson posted the article • 0 comments • 325 views • 2018-12-13 18:35 • data from similar tags

Press F12 key on your computer keyboard,you will enter developer model.Select Network——Disable cache, then it will auto clean this webiste cache. 
 
   view all
Press F12 key on your computer keyboard,you will enter developer model.Select Network——Disable cache, then it will auto clean this webiste cache. 
 
  
490
Views

AdGuard released its open source AdGuard Home DNS server software.

Sulayman posted the article • 0 comments • 490 views • 2018-10-19 00:07 • data from similar tags

They used go language write  it,and parents can control some settings,DNS over TLS,we can run it on macOS, x86 Linux,and Raspberry Pi.

Official instructions: https://adguard.com/en/blog/in ... home/
github:https://github.com/AdguardTeam/AdGuardHome#installationdocker run -d \
-p 53:53 \
-p 53:53/udp \
-p 80:3000 \
-v adguard_data:/data/adguard \
--restart always \
--name adguard-home \
ewrogers/adguard-home-arm:latest
 
  view all
They used go language write  it,and parents can control some settings,DNS over TLS,we can run it on macOS, x86 Linux,and Raspberry Pi.

Official instructions: https://adguard.com/en/blog/in ... home/
github:https://github.com/AdguardTeam/AdGuardHome#installation
docker run -d \
-p 53:53 \
-p 53:53/udp \
-p 80:3000 \
-v adguard_data:/data/adguard \
--restart always \
--name adguard-home \
ewrogers/adguard-home-arm:latest

 
 
387
Views

how to set cloudflare free cdn to accelerate your websites, The step by step tutorial with images for newbies.

Daryl k posted the article • 1 comments • 387 views • 2018-10-17 20:17 • data from similar tags

1. Sign up a new account on cloudflare
 

 
2. add your domain name inside,such as www.amazon.com (www.yourdomainname.com)
 

 
3. choose a appropriate plan,I chose the free plan
 

 
4. Then the cloudflare would scan your dns records,I didn't met any issues here ,so clicked continue button
 

 
5. Go to my domain name registered merchant to change my dns address
 

 
I bought my domain on namecheap ,so I modified them as following 
 

 
 
6. I received a cloudflare email,it told me I already set it .The status will be active status.
 

 
7.  choose your own ssl certificates ,I set it here full mode
 

 
 
8. go to crypto section, set Always use HTTPS to green on status,so that your website would have https .
  view all
1. Sign up a new account on cloudflare
 

 
2. add your domain name inside,such as www.amazon.com (www.yourdomainname.com)
 

 
3. choose a appropriate plan,I chose the free plan
 

 
4. Then the cloudflare would scan your dns records,I didn't met any issues here ,so clicked continue button
 

 
5. Go to my domain name registered merchant to change my dns address
 

 
I bought my domain on namecheap ,so I modified them as following 
 

 
 
6. I received a cloudflare email,it told me I already set it .The status will be active status.
 

 
7.  choose your own ssl certificates ,I set it here full mode
 

 
 
8. go to crypto section, set Always use HTTPS to green on status,so that your website would have https .
 
336
Views

How to be evangelists in the Africalocals.com community

Africalocals team posted the article • 0 comments • 336 views • 2018-10-15 11:48 • data from similar tags

Be a leader in the community that is reshaping the future of the Africa
 
 How you can work with us
 
 
Become an evangelist  
          
         The first step is simply for us to meet you and learn more about you. We'll work with you to understand what you want to do in               your community and how we can support.
 Do good stuff           
       
          We simply want to empower you to do good things in your community. If that means sending you some resources, getting some              time with the technical team, paying for your ticket to an event, we have you covered! 
 Tell us how things went    
      
         We all hope to build the community and part of that will be measuring your impact on it. Not only so we can reward you from time           to time, but so that we can continue to invest more resources in your actions!
 Repeat   
 
        There are so many ways to help spread the word in your community, so we want you to tell us what you'd like to do and just keep            doing it. We're here to help you keep doing the things that are working. 
 
   About Sponsorship
 
        You tell us - we want to work with you how you need it  view all
Be a leader in the community that is reshaping the future of the Africa
 
 How you can work with us
 
 
  • Become an evangelist  

          
         The first step is simply for us to meet you and learn more about you. We'll work with you to understand what you want to do in               your community and how we can support.
  •  Do good stuff           

       
          We simply want to empower you to do good things in your community. If that means sending you some resources, getting some              time with the technical team, paying for your ticket to an event, we have you covered! 
  •  Tell us how things went    

      
         We all hope to build the community and part of that will be measuring your impact on it. Not only so we can reward you from time           to time, but so that we can continue to invest more resources in your actions!
  •  Repeat   

 
        There are so many ways to help spread the word in your community, so we want you to tell us what you'd like to do and just keep            doing it. We're here to help you keep doing the things that are working. 
 
   About Sponsorship
 
        You tell us - we want to work with you how you need it 
651
Views

How to install and start ipmitool on Ubuntu/Debian ,step by step tutorial

CHARLIE posted the article • 0 comments • 651 views • 2018-09-30 18:53 • data from similar tags

1. We need use two core modules
 
modprobe ipmi_si
modprobe ipmi_devintf
echo ipmi_si >> /etc/modprobe
echo ipmi_devintf >> /etc/modprobe2. Install ipmitool via apt-get
 
apt-get install ipmitool3. List ipmi   network infos
 
ipmitool lan print4. List users
 
ipmitool user list 1 view all
1. We need use two core modules
 
modprobe ipmi_si
modprobe ipmi_devintf
echo ipmi_si >> /etc/modprobe
echo ipmi_devintf >> /etc/modprobe
2. Install ipmitool via apt-get
 
apt-get install ipmitool
3. List ipmi   network infos
 
ipmitool lan print
4. List users
 
ipmitool user list 1
476
Views

How to install Python3.6.5 on Debian9

Elias posted the article • 0 comments • 476 views • 2018-09-25 23:48 • data from similar tags

1. check installed python version
 
python
Python 2.7.9 (default, Mar 1 2015, 18:22:53)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
2. update software packages
 
apt-get update
apt-get upgrade
3. install some essential packages
 
aptitude -y install gcc make zlib1g-dev libffi-dev libssl-devif alert -bash: aptitude: command not found ,you need have to install aptitude
 
apt-get install aptitude4. download python3.6.5
 
wget https://www.python.org/ftp/pyt ... 5.tgz
 
 
5. unzip it
 
tar -xvf Python-3.6.5.tgz
 
6.add authority to this file
 
chmod -R +x Python-3.6.57. enter and install it
 
cd Python-3.6.5/
./configure8. move to other file 
 
./configure --prefix=/opt/python3.6.5you would see this infomation
If you want a release build with all optimizations active (LTO, PGO, etc), please run ./configure --enable-optimizations.9. install some other packages
aptitude -y install libffi-dev libssl-devmake && make installif you can see information as follows ,you installed it successfully
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.1 setuptools-28.8.010. clean
 
make clean
make distclean
  view all
1. check installed python version
 
python
Python 2.7.9 (default, Mar 1 2015, 18:22:53)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

2. update software packages
 
apt-get update
apt-get upgrade

3. install some essential packages
 
aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev
if alert -bash: aptitude: command not found ,you need have to install aptitude
 
apt-get install aptitude
4. download python3.6.5
 
wget https://www.python.org/ftp/pyt ... 5.tgz

 
 
5. unzip it
 
tar -xvf Python-3.6.5.tgz

 
6.add authority to this file
 
chmod -R +x Python-3.6.5
7. enter and install it
 
cd Python-3.6.5/
./configure
8. move to other file 
 
./configure --prefix=/opt/python3.6.5
you would see this infomation
If you want a release build with all optimizations active (LTO, PGO, etc), please run ./configure --enable-optimizations.
9. install some other packages
aptitude -y install  libffi-dev libssl-dev
make && make install
if you can see information as follows ,you installed it successfully
Collecting setuptools
Collecting pip
Installing collected packages: setuptools, pip
Successfully installed pip-9.0.1 setuptools-28.8.0
10. clean
 
make clean 
make distclean

 
862
Views

How to use docker start EOSIO enviroment

Reply

debris posted a question • 1 users followed • 0 replies • 862 views • 2018-09-21 22:33 • data from similar tags

461
Views

How to uninstall docker on centos7

gridnic posted the article • 0 comments • 461 views • 2018-09-21 21:28 • data from similar tags

1. search and find out where you installed docker[[email protected] ~]# yum list installed|grep docker 

docker.x86_64 2:1.12.6-16.el7.centos @extras 

docker-client.x86_64 2:1.12.6-16.el7.centos @extras 

docker-common.x86_64 2:1.12.6-16.el7.centos @extra

2. Delete all the listed files[[email protected] ~]#yum –y remove docker.x86_64 

[[email protected] ~]#yum –y remove docker-client.x86_64 

[[email protected] ~]#yum –y remove docker-common.x86_64


 3.Delete docker image[[email protected] ~]# rm -rf /var/lib/docker
 
 4. check out  whether deleted or not[[email protected] ~]# yum list installed|grep docker If you cannot find any lists like step 1, that's mean you successfully uninstall  docker.
  view all
1. search and find out where you installed docker
[[email protected] ~]# yum list installed|grep docker 

docker.x86_64 2:1.12.6-16.el7.centos @extras 

docker-client.x86_64 2:1.12.6-16.el7.centos @extras 

docker-common.x86_64 2:1.12.6-16.el7.centos @extra

2. Delete all the listed files
[[email protected] ~]#yum –y remove docker.x86_64 

[[email protected] ~]#yum –y remove docker-client.x86_64 

[[email protected] ~]#yum –y remove docker-common.x86_64


 3.Delete docker image
[[email protected] ~]# rm -rf /var/lib/docker 

 
 4. check out  whether deleted or not
[[email protected] ~]# yum list installed|grep docker 
If you cannot find any lists like step 1, that's mean you successfully uninstall  docker.
 
386
Views

How to use docker install mysql, redis, activemq and rabbitmq.

Aamir posted the article • 0 comments • 386 views • 2018-09-21 15:35 • data from similar tags

Every time ,after I installed docker , I have to install other files,today I made a record .
 
1. Mysql
 docker pull mysql:5.7
docker volume create v1
docker run -d -it --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -v v1:/var/lib/mysql --privileged mysql:5.7


2. redis
 docker pull redis
docker run -d -it --name=redis -p 3306:3306 redis
3. activemq
 docker run -d -it --name=activemq -p 61616:61616 -p 8161:8161 webcenter/activemq
4. rabbitmq
 docker run -d -it --name=rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7.3-management
  view all
Every time ,after I installed docker , I have to install other files,today I made a record .
 
1. Mysql
 
docker pull mysql:5.7
docker volume create v1
docker run -d -it --name=mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -v v1:/var/lib/mysql --privileged mysql:5.7


2. redis
 
docker pull redis
docker run -d -it --name=redis -p 3306:3306 redis

3. activemq
 
docker run -d -it --name=activemq -p 61616:61616 -p 8161:8161 webcenter/activemq

4. rabbitmq
 
docker run -d -it --name=rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7.3-management

 
424
Views

How to use git to upload your repository to github(tutorial for newbies)

James posted the article • 0 comments • 424 views • 2018-09-06 22:59 • data from similar tags

1. First of all, you need a Github account number
https://github.com/
 
2. To use Git, you need to install the Git tool first. Here is the download address. After downloading, you can install it directly:
https://git-for-windows.github.io/
 
3. Create a new project

 
 
 
 
4. Fill in the project information and click after the completion
 

 
 
5. Copy the project address
 

 
6. The next step is operating in your local computer.  If you have successfully installed Git before, select Git Bash HERE in the right mouse key blank and enter the following interface. Test _ Bluetooth is my directory file name.
 

 
 
7.https://github.com/CKTim/BlueTooth.git is replaced by the address you copied earlier
 

 
 
8.You will find some files in your local computer
 
9.Type command cd Test and enter Test file
 

 
10: type commands
git add

git commit -m "first commit"

git push -u origin master

 
 

 

 
 
 
 
 
  view all
1. First of all, you need a Github account number
https://github.com/
 
2. To use Git, you need to install the Git tool first. Here is the download address. After downloading, you can install it directly:
https://git-for-windows.github.io/
 
3. Create a new project

 
 
 
 
4. Fill in the project information and click after the completion
 

 
 
5. Copy the project address
 

 
6. The next step is operating in your local computer.  If you have successfully installed Git before, select Git Bash HERE in the right mouse key blank and enter the following interface. Test _ Bluetooth is my directory file name.
 

 
 
7.https://github.com/CKTim/BlueTooth.git is replaced by the address you copied earlier
 

 
 
8.You will find some files in your local computer
 
9.Type command cd Test and enter Test file
 

 
10: type commands
git add

git commit -m "first commit"

git push -u origin master


 
 

 

 
 
 
 
 
 
527
Views

How I can fix error nginx: connect() failed (111: Connection refused) while connecting to upstream

George posted the article • 0 comments • 527 views • 2018-09-06 22:19 • data from similar tags

On CentOS 7 this file was at /etc/php-fpm.d/www.conf for me and I had to add listen = 9000 and comment out listen = /var/run/php-fpm/php-fpm.sock. 
 
listen = /var/run/php-fpm/php-fpm.sock
listen = 9000and then ,typed commands
 
systemctl restart php-fpm.service view all
On CentOS 7 this file was at /etc/php-fpm.d/www.conf for me and I had to add listen = 9000 and comment out listen = /var/run/php-fpm/php-fpm.sock. 
 
listen = /var/run/php-fpm/php-fpm.sock
listen = 9000
and then ,typed commands
 
systemctl restart php-fpm.service
4891
Views

How to fix error "Failed to start The PHP FastCGI Process Manager" on Centos7

Reply

Alex posted a question • 0 users followed • 0 replies • 4891 views • 2018-09-06 22:09 • data from similar tags

416
Views

How to fix nginx 403 forbidden step by step

Britt Maree posted the article • 0 comments • 416 views • 2018-09-06 20:23 • data from similar tags

 
      Issue:Recently ,I deloyed my nginx server and found https cannot work and php file cannot work,but http works well.
       1.Check out your nginx.conf file and modify user = apache into user = root
 
      2.Execute these commands in you terminal
          
         [[email protected] ~]# ps ax | grep nginx

653 pts/1 S+ 0:00 grep --color=auto nginx
5974 ? S 0:04 nginx: worker process

[[email protected] ~]# sudo kill -2 5974 (kill the runing nginx process)

[[email protected] ~]# sudo kill -2 5974

kill: sending signal to 5974 failed: No such process

[[email protected] ~]# ps ax | grep nginx

694 pts/1 S+ 0:00 grep --color=auto nginx

[[email protected] ~]# service openresty restart

Restarting openresty (via systemctl): [ OK ]
 
 
3.Restart your server # systemctl status openresty
 
4.Edit your php-fpm file   ,the directory is etc/php-fm.d / www.conf
    
and modify its contents as follows:; Start a new pool named 'www'.
[www]

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1
listen = 9000

; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
;listen.owner = nobody
;listen.group = nobody
;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
;listen.acl_users =
;listen.acl_groups =

; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
listen.allowed_clients = 127.0.0.1

; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
; Note: - It will only work if the FPM master process is launched as root
; - The pool processes will inherit the master process priority
; unless it specified otherwise
; Default Value: no set
; process.priority = -19

; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives. With this process management, there will be
; always at least 1 children.
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is less than this
; number then some children will be created.
; pm.max_spare_servers - the maximum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
; can be alive at the same time.
; pm.process_idle_timeout - The number of seconds after which
; an idle process will be killed.
; Note: This value is mandatory.
pm = dynamic

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 50

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 8

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 6

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 35

; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
;pm.process_idle_timeout = 10s;

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. It shows the following informations:
; pool - the name of the pool;
; process manager - static, dynamic or ondemand;
; start time - the date and time FPM has started;
; start since - number of seconds since FPM has started;
; accepted conn - the number of request accepted by the pool;
; listen queue - the number of request in the queue of pending
; connections (see backlog in listen(2));
; max listen queue - the maximum number of requests in the queue
; of pending connections since FPM has started;
; listen queue len - the size of the socket queue of pending connections;
; idle processes - the number of idle processes;
; active processes - the number of active processes;
; total processes - the number of idle + active processes;
; max active processes - the maximum number of active processes since FPM
; has started;
; max children reached - number of times, the process limit has been reached,
; when pm tries to start more children (works only for
; pm 'dynamic' and 'ondemand');
; Value are updated in real time.
; Example output:
; pool: www
; process manager: static
; start time: 01/Jul/2011:17:53:49 +0200
; start since: 62636
; accepted conn: 190460
; listen queue: 0
; max listen queue: 1
; listen queue len: 42
; idle processes: 4
; active processes: 11
; total processes: 15
; max active processes: 12
; max children reached: 0
;
; By default the status page output is formatted as text/plain. Passing either
; 'html', 'xml' or 'json' in the query string will return the corresponding
; output syntax. Example:
; http://www.foo.bar/status
; http://www.foo.bar/status?json
; http://www.foo.bar/status?html
; http://www.foo.bar/status?xml
;
; By default the status page only outputs short status. Passing 'full' in the
; query string will also return status for each pool process.
; Example:
; http://www.foo.bar/status?full
; http://www.foo.bar/status?json&full
; http://www.foo.bar/status?html&full
; http://www.foo.bar/status?xml&full
; The Full status returns for each process:
; pid - the PID of the process;
; state - the state of the process (Idle, Running, ...);
; start time - the date and time the process has started;
; start since - the number of seconds since the process has started;
; requests - the number of requests the process has served;
; request duration - the duration in µs of the requests;
; request method - the request method (GET, POST, ...);
; request URI - the request URI with the query string;
; content length - the content length of the request (only with POST);
; user - the user (PHP_AUTH_USER) (or '-' if not set);
; script - the main script called (or '-' if not set);
; last request cpu - the %cpu the last request consumed
; it's always 0 if the process is not in Idle state
; because CPU calculation is done when the request
; processing has terminated;
; last request memory - the max amount of memory the last request consumed
; it's always 0 if the process is not in Idle state
; because memory calculation is done when the request
; processing has terminated;
; If the process is in Idle state, then informations are related to the
; last request the process has served. Otherwise informations are related to
; the current request being served.
; Example output:
; ************************
; pid: 31330
; state: Running
; start time: 01/Jul/2011:17:53:49 +0200
; start since: 63087
; requests: 12808
; request duration: 1250261
; request method: GET
; request URI: /test_mem.php?N=10000
; content length: 0
; user: -
; script: /home/fat/web/docs/php/test_mem.php
; last request cpu: 0.00
; last request memory: 0
;
; Note: There is a real-time FPM status monitoring sample web page available
; It's available in: @[email protected]/fpm/status.html
;
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
; may conflict with a real PHP file.
; Default Value: not set
;pm.status_path = /status

; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
; may conflict with a real PHP file.
; Default Value: not set
;ping.path = /ping

; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong

; The access log file
; Default: not set
;access.log = log/$pool.access.log

; The access log format.
; The following syntax is allowed
; %%: the '%' character
; %C: %CPU used by the request
; it can accept the following format:
; - %{user}C for user CPU only
; - %{system}C for system CPU only
; - %{total}C for user + system CPU (default)
; %d: time taken to serve the request
; it can accept the following format:
; - %{seconds}d (default)
; - %{miliseconds}d
; - %{mili}d
; - %{microseconds}d
; - %{micro}d
; %e: an environment variable (same as $_ENV or $_SERVER)
; it must be associated with embraces to specify the name of the env
; variable. Some exemples:
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
; %f: script filename
; %l: content-length of the request (for POST request only)
; %m: request method
; %M: peak of memory allocated by PHP
; it can accept the following format:
; - %{bytes}M (default)
; - %{kilobytes}M
; - %{kilo}M
; - %{megabytes}M
; - %{mega}M
; %n: pool name
; %o: output header
; it must be associated with embraces to specify the name of the header:
; - %{Content-Type}o
; - %{X-Powered-By}o
; - %{Transfert-Encoding}o
; - ....
; %p: PID of the child that serviced the request
; %P: PID of the parent of the child that serviced the request
; %q: the query string
; %Q: the '?' character if query string exists
; %r: the request URI (without the query string, see %q and %Q)
; %R: remote IP address
; %s: status (response code)
; %t: server time the request was received
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %T: time the log has been written (the request has finished)
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %u: remote user
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"

; The log file for slow requests
; Default Value: not set
; Note: slowlog is mandatory if request_slowlog_timeout is set
slowlog = /var/log/php-fpm/www-slow.log

; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_slowlog_timeout = 0

; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_terminate_timeout = 0

; Set open file descriptor rlimit.
; Default Value: system defined value
;rlimit_files = 1024

; Set max core size rlimit.
; Possible Values: 'unlimited' or an integer greater or equal to 0
; Default Value: system defined value
;rlimit_core = 0

; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: chrooting is a great security feature and should be used whenever
; possible. However, all PHP paths will be relative to the chroot
; (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot =

; Chdir to this directory at the start.
; Note: relative path can be used.
; Default Value: current directory or / when chroot
;chdir = /var/www

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environement, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes

; Clear environment in FPM workers
; Prevents arbitrary environment variables from reaching FPM worker processes
; by clearing the environment in workers before env vars specified in this
; pool configuration are added.
; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER.
; Default Value: yes
;clear_env = no

; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit
; FPM to .php extensions to prevent malicious users to use other extensions to
; exectute php code.
; Note: set an empty value to allow all extensions.
; Default Value: .php
;security.limit_extensions = .php .php3 .php4 .php5 .php7

; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:
; php_value/php_flag - you can set classic ini defines which can
; be overwritten from PHP call 'ini_set'.
; php_admin_value/php_admin_flag - these directives won't be overwritten by
; PHP call 'ini_set'
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

; Defining 'extension' will load the corresponding shared extension from
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
; overwrite previously defined php.ini values, but will append the new value
; instead.

; Default Value: nothing is defined by default except the values in php.ini and
; specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
;php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M

; Set session path to a directory owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache
 
6.  Restart your openresty server again
 
   systemctl restart openresty
 
 
 
 
        view all
 
      Issue:Recently ,I deloyed my nginx server and found https cannot work and php file cannot work,but http works well.
       1.Check out your nginx.conf file and modify user = apache into user = root
 
      2.Execute these commands in you terminal
          
         
[[email protected] ~]# ps ax | grep nginx

653 pts/1 S+ 0:00 grep --color=auto nginx
5974 ? S 0:04 nginx: worker process

[[email protected] ~]# sudo kill -2 5974 (kill the runing nginx process)

[[email protected] ~]# sudo kill -2 5974

kill: sending signal to 5974 failed: No such process

[[email protected] ~]# ps ax | grep nginx

694 pts/1 S+ 0:00 grep --color=auto nginx

[[email protected] ~]# service openresty restart

Restarting openresty (via systemctl): [ OK ]

 
 
3.Restart your server 
# systemctl status openresty

 
4.Edit your php-fpm file   ,the directory is etc/php-fm.d / www.conf
    
and modify its contents as follows:
; Start a new pool named 'www'.
[www]

; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
; RPM: apache Choosed to be able to access some dir as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx

; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
; a specific port;
; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1
listen = 9000

; Set listen(2) backlog.
; Default Value: 511 (-1 on FreeBSD and OpenBSD)
;listen.backlog = 511

; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
;listen.owner = nobody
;listen.group = nobody
;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
;listen.acl_users =
;listen.acl_groups =

; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect.
; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
listen.allowed_clients = 127.0.0.1

; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
; Note: - It will only work if the FPM master process is launched as root
; - The pool processes will inherit the master process priority
; unless it specified otherwise
; Default Value: no set
; process.priority = -19

; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives. With this process management, there will be
; always at least 1 children.
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is less than this
; number then some children will be created.
; pm.max_spare_servers - the maximum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
; can be alive at the same time.
; pm.process_idle_timeout - The number of seconds after which
; an idle process will be killed.
; Note: This value is mandatory.
pm = dynamic

; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 50

; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 8

; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 6

; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 35

; The number of seconds after which an idle process will be killed.
; Note: Used only when pm is set to 'ondemand'
; Default Value: 10s
;pm.process_idle_timeout = 10s;

; The number of requests each child process should execute before respawning.
; This can be useful to work around memory leaks in 3rd party libraries. For
; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS.
; Default Value: 0
;pm.max_requests = 500

; The URI to view the FPM status page. If this value is not set, no URI will be
; recognized as a status page. It shows the following informations:
; pool - the name of the pool;
; process manager - static, dynamic or ondemand;
; start time - the date and time FPM has started;
; start since - number of seconds since FPM has started;
; accepted conn - the number of request accepted by the pool;
; listen queue - the number of request in the queue of pending
; connections (see backlog in listen(2));
; max listen queue - the maximum number of requests in the queue
; of pending connections since FPM has started;
; listen queue len - the size of the socket queue of pending connections;
; idle processes - the number of idle processes;
; active processes - the number of active processes;
; total processes - the number of idle + active processes;
; max active processes - the maximum number of active processes since FPM
; has started;
; max children reached - number of times, the process limit has been reached,
; when pm tries to start more children (works only for
; pm 'dynamic' and 'ondemand');
; Value are updated in real time.
; Example output:
; pool: www
; process manager: static
; start time: 01/Jul/2011:17:53:49 +0200
; start since: 62636
; accepted conn: 190460
; listen queue: 0
; max listen queue: 1
; listen queue len: 42
; idle processes: 4
; active processes: 11
; total processes: 15
; max active processes: 12
; max children reached: 0
;
; By default the status page output is formatted as text/plain. Passing either
; 'html', 'xml' or 'json' in the query string will return the corresponding
; output syntax. Example:
; http://www.foo.bar/status
; http://www.foo.bar/status?json
; http://www.foo.bar/status?html
; http://www.foo.bar/status?xml
;
; By default the status page only outputs short status. Passing 'full' in the
; query string will also return status for each pool process.
; Example:
; http://www.foo.bar/status?full
; http://www.foo.bar/status?json&full
; http://www.foo.bar/status?html&full
; http://www.foo.bar/status?xml&full
; The Full status returns for each process:
; pid - the PID of the process;
; state - the state of the process (Idle, Running, ...);
; start time - the date and time the process has started;
; start since - the number of seconds since the process has started;
; requests - the number of requests the process has served;
; request duration - the duration in µs of the requests;
; request method - the request method (GET, POST, ...);
; request URI - the request URI with the query string;
; content length - the content length of the request (only with POST);
; user - the user (PHP_AUTH_USER) (or '-' if not set);
; script - the main script called (or '-' if not set);
; last request cpu - the %cpu the last request consumed
; it's always 0 if the process is not in Idle state
; because CPU calculation is done when the request
; processing has terminated;
; last request memory - the max amount of memory the last request consumed
; it's always 0 if the process is not in Idle state
; because memory calculation is done when the request
; processing has terminated;
; If the process is in Idle state, then informations are related to the
; last request the process has served. Otherwise informations are related to
; the current request being served.
; Example output:
; ************************
; pid: 31330
; state: Running
; start time: 01/Jul/2011:17:53:49 +0200
; start since: 63087
; requests: 12808
; request duration: 1250261
; request method: GET
; request URI: /test_mem.php?N=10000
; content length: 0
; user: -
; script: /home/fat/web/docs/php/test_mem.php
; last request cpu: 0.00
; last request memory: 0
;
; Note: There is a real-time FPM status monitoring sample web page available
; It's available in: @[email protected]/fpm/status.html
;
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
; may conflict with a real PHP file.
; Default Value: not set
;pm.status_path = /status

; The ping URI to call the monitoring page of FPM. If this value is not set, no
; URI will be recognized as a ping page. This could be used to test from outside
; that FPM is alive and responding, or to
; - create a graph of FPM availability (rrd or such);
; - remove a server from a group if it is not responding (load balancing);
; - trigger alerts for the operating team (24/7).
; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it
; may conflict with a real PHP file.
; Default Value: not set
;ping.path = /ping

; This directive may be used to customize the response of a ping request. The
; response is formatted as text/plain with a 200 response code.
; Default Value: pong
;ping.response = pong

; The access log file
; Default: not set
;access.log = log/$pool.access.log

; The access log format.
; The following syntax is allowed
; %%: the '%' character
; %C: %CPU used by the request
; it can accept the following format:
; - %{user}C for user CPU only
; - %{system}C for system CPU only
; - %{total}C for user + system CPU (default)
; %d: time taken to serve the request
; it can accept the following format:
; - %{seconds}d (default)
; - %{miliseconds}d
; - %{mili}d
; - %{microseconds}d
; - %{micro}d
; %e: an environment variable (same as $_ENV or $_SERVER)
; it must be associated with embraces to specify the name of the env
; variable. Some exemples:
; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e
; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e
; %f: script filename
; %l: content-length of the request (for POST request only)
; %m: request method
; %M: peak of memory allocated by PHP
; it can accept the following format:
; - %{bytes}M (default)
; - %{kilobytes}M
; - %{kilo}M
; - %{megabytes}M
; - %{mega}M
; %n: pool name
; %o: output header
; it must be associated with embraces to specify the name of the header:
; - %{Content-Type}o
; - %{X-Powered-By}o
; - %{Transfert-Encoding}o
; - ....
; %p: PID of the child that serviced the request
; %P: PID of the parent of the child that serviced the request
; %q: the query string
; %Q: the '?' character if query string exists
; %r: the request URI (without the query string, see %q and %Q)
; %R: remote IP address
; %s: status (response code)
; %t: server time the request was received
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %T: time the log has been written (the request has finished)
; it can accept a strftime(3) format:
; %d/%b/%Y:%H:%M:%S %z (default)
; The strftime(3) format must be encapsuled in a %{<strftime_format>}t tag
; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t
; %u: remote user
;
; Default: "%R - %u %t \"%m %r\" %s"
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"

; The log file for slow requests
; Default Value: not set
; Note: slowlog is mandatory if request_slowlog_timeout is set
slowlog = /var/log/php-fpm/www-slow.log

; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_slowlog_timeout = 0

; The timeout for serving a single request after which the worker process will
; be killed. This option should be used when the 'max_execution_time' ini option
; does not stop script execution for some reason. A value of '0' means 'off'.
; Available units: s(econds)(default), m(inutes), h(ours), or d(ays)
; Default Value: 0
;request_terminate_timeout = 0

; Set open file descriptor rlimit.
; Default Value: system defined value
;rlimit_files = 1024

; Set max core size rlimit.
; Possible Values: 'unlimited' or an integer greater or equal to 0
; Default Value: system defined value
;rlimit_core = 0

; Chroot to this directory at the start. This value must be defined as an
; absolute path. When this value is not set, chroot is not used.
; Note: chrooting is a great security feature and should be used whenever
; possible. However, all PHP paths will be relative to the chroot
; (error_log, sessions.save_path, ...).
; Default Value: not set
;chroot =

; Chdir to this directory at the start.
; Note: relative path can be used.
; Default Value: current directory or / when chroot
;chdir = /var/www

; Redirect worker stdout and stderr into main error log. If not set, stdout and
; stderr will be redirected to /dev/null according to FastCGI specs.
; Note: on highloaded environement, this can cause some delay in the page
; process time (several ms).
; Default Value: no
;catch_workers_output = yes

; Clear environment in FPM workers
; Prevents arbitrary environment variables from reaching FPM worker processes
; by clearing the environment in workers before env vars specified in this
; pool configuration are added.
; Setting to "no" will make all environment variables available to PHP code
; via getenv(), $_ENV and $_SERVER.
; Default Value: yes
;clear_env = no

; Limits the extensions of the main script FPM will allow to parse. This can
; prevent configuration mistakes on the web server side. You should only limit
; FPM to .php extensions to prevent malicious users to use other extensions to
; exectute php code.
; Note: set an empty value to allow all extensions.
; Default Value: .php
;security.limit_extensions = .php .php3 .php4 .php5 .php7

; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from
; the current environment.
; Default Value: clean env
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

; Additional php.ini defines, specific to this pool of workers. These settings
; overwrite the values previously defined in the php.ini. The directives are the
; same as the PHP SAPI:
; php_value/php_flag - you can set classic ini defines which can
; be overwritten from PHP call 'ini_set'.
; php_admin_value/php_admin_flag - these directives won't be overwritten by
; PHP call 'ini_set'
; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no.

; Defining 'extension' will load the corresponding shared extension from
; extension_dir. Defining 'disable_functions' or 'disable_classes' will not
; overwrite previously defined php.ini values, but will append the new value
; instead.

; Default Value: nothing is defined by default except the values in php.ini and
; specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]
;php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/php-fpm/www-error.log
php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 128M

; Set session path to a directory owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache

 
6.  Restart your openresty server again
 
   
systemctl restart openresty

 
 
 
 
       
436
Views

How to force http into https

peter posted the article • 0 comments • 436 views • 2018-09-06 20:23 • data from similar tags

Edit your nginx.conf and add codes into the http modulerewrite ^(.*) https://$host$1 permanent;
and,you have to ensure that you installed the ssl files in advance. view all
Edit your nginx.conf and add codes into the http module
rewrite ^(.*) https://$host$1 permanent;

and,you have to ensure that you installed the ssl files in advance.
447
Views

This is what my life looked like in Sudan

Britt Maree posted the article • 0 comments • 447 views • 2016-07-16 06:08 • data from similar tags

My old apartment house. Very quiet and beautiful, but there's a tall barbed wire fence.  
 

It was hard for white girls to get their hair done, so the ladies would come over and I'd dress them up in a shopping bag and do their hair in my kitchen.


 
My friend Yusra's birthday party on my back porch
 

 
I told my friend Roberta that I was going to drop off a herd of camels in her garden.  She was terrified.
 

 
My friend Khalid DJing a house party
 

 

In the evening we'd have cocktails on the lawn.
 

 

The neighborhood bowling alley
 

 
Nubian wrestling tournament

 
Nubian wrestling tournament
 
All the schoolkids wear these funny day-glo camo pajama uniforms.  They look like late-90's drum-and-bass enthusiasts.  I heard that Sudan had originally ordered all of this fabric on the cheap from China for its army, but the bright dye job made it unacceptable, so they repurposed it into a few million school uniforms.  
 

 

 
Teams practicing for the Africa Cup
 

 

 
Nile cruise
  view all
My old apartment house. Very quiet and beautiful, but there's a tall barbed wire fence.  
 

It was hard for white girls to get their hair done, so the ladies would come over and I'd dress them up in a shopping bag and do their hair in my kitchen.


 
My friend Yusra's birthday party on my back porch
 

 
I told my friend Roberta that I was going to drop off a herd of camels in her garden.  She was terrified.
 

 
My friend Khalid DJing a house party
 

 

In the evening we'd have cocktails on the lawn.
 

 

The neighborhood bowling alley
 

 
Nubian wrestling tournament

 
Nubian wrestling tournament
 
All the schoolkids wear these funny day-glo camo pajama uniforms.  They look like late-90's drum-and-bass enthusiasts.  I heard that Sudan had originally ordered all of this fabric on the cheap from China for its army, but the bright dye job made it unacceptable, so they repurposed it into a few million school uniforms.  
 

 

 
Teams practicing for the Africa Cup
 

 

 
Nile cruise
 
401
Views

the average salary for a family of 4 to live comfortably in Silicon Valley.

admin posted the article • 0 comments • 401 views • 2016-07-16 00:41 • data from similar tags

I have a few friends who moved from NYC area to the Silicon Valley.

From what I know, it looks like you’ll need approximately 7,000 per month at the minimum. It is an expensive place to call home given the recent tech boom.

In order to determine your salary needs, I’d suggest consider the following:

You’ll want to figure out your anticipated monthly/annual living costs. These costs will include living expenses (rent, food, utilities), debt (loans, car payments, credit cards), insurance (health, life, car), and miscellaneous expenses (eating out, etc.)
You’ll want to figure out how much needs to be set aside for savings. This can include money for emergencies, retirement, or other long-term financial goals.
Don’t forget to factor in taxes, which will be a minimum of 20%. This should give you a fair idea of the baseline salary you’ll need to live in Silicon Valley. But, it’s always best to expect to need more. You always want there to be a decent-sized cushion between what you have and what you need. view all
I have a few friends who moved from NYC area to the Silicon Valley.

From what I know, it looks like you’ll need approximately 7,000 per month at the minimum. It is an expensive place to call home given the recent tech boom.

In order to determine your salary needs, I’d suggest consider the following:

You’ll want to figure out your anticipated monthly/annual living costs. These costs will include living expenses (rent, food, utilities), debt (loans, car payments, credit cards), insurance (health, life, car), and miscellaneous expenses (eating out, etc.)
You’ll want to figure out how much needs to be set aside for savings. This can include money for emergencies, retirement, or other long-term financial goals.
Don’t forget to factor in taxes, which will be a minimum of 20%. This should give you a fair idea of the baseline salary you’ll need to live in Silicon Valley. But, it’s always best to expect to need more. You always want there to be a decent-sized cushion between what you have and what you need.