[리눅스] parallel compression

pbzip2 : Parallel implementation of bzip2

 

https://zlib.net/pigz/

: A parallel implementation of gzip for modern multi-processor, multi-core machines

 

 

$ yum install -y pbzip2

 

$ tar --use-compress-prog=pbzip2 -cf file10g-pbzip2.tar.gz file_10GB

 

$ tar --use-compress-prog=pbzip2 -xf file10g-pbzip2.tar.gz

 

 

 

pigz : Parallel implementation of gzip

 

https://launchpad.net/pbzip2

: PBZIP2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 or newer (ie: anything compressed with pbzip2 can be decompressed with bzip2). PBZIP2 should work on any system that has a pthreads compatible C++ compiler (such as gcc).

 

 

$ yum install -y pigz

 

$ tar --use-compress-prog=pigz -cf file10g-pigz.tar.gz file_10GB

 

$ tar --use-compress-prog=pigz -xf file10g-pigz.tar.gz

Let's Encrypt(certbot)

$ cat certbot.sh

docker run -it --rm --name certbot \

  -v '/etc/letsencrypt:/etc/letsencrypt' \

  -v '/var/lib/letsencrypt:/var/lib/letsencrypt' \

  certbot/certbot certonly -d '*.4wxyz.com' \

  --manual --preferred-challenges dns.

  --server https://acme-v02.api.letsencrypt.org/directory

 

$ chmod +x certbot.sh

 

$ sh certbot.sh

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator manual, Installer None

Obtaining a new certificate

Performing the following challenges:

dns-01 challenge for 4wxyz.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

NOTE: The IP of this machine will be publicly logged as having requested this

certificate. If you're running certbot in manual mode on a machine that is not

your server, please ensure you're okay with that.

 

Are you OK with your IP being logged?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

(Y)es/(N)o: y

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Please deploy a DNS TXT record under the name

_acme-challenge.4wxyz.com with the following value:

 

UTECS7sGUjtKAMICmqn9t9owcxFgRgjy6Wwx64SAPBk

 

Before continuing, verify the record is deployed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Press Enter to Continue

 

<=== Register txt record on dns server(/etc/resolv.conf Authoritative DNS server) ===>

 

Waiting for verification...

Cleaning up challenges

 

IMPORTANT NOTES:

 - Congratulations! Your certificate and chain have been saved at:

   /etc/letsencrypt/live/4wxyz.com/fullchain.pem

   Your key file has been saved at:

   /etc/letsencrypt/live/4wxyz.com/privkey.pem

   Your cert will expire on 2019-09-09. To obtain a new or tweaked

   version of this certificate in the future, simply run certbot

   again. To non-interactively renew *all* of your certificates, run

   "certbot renew"

 - If you like Certbot, please consider supporting our work by:

 

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate

   Donating to EFF:                    https://eff.org/donate-le

 

$ ls -l /etc/letsencrypt/live/4wxyz.com/*

lrwxrwxrwx 1 root root  33 Jun 11 14:14 /etc/letsencrypt/live/4wxyz.com/cert.pem -> ../../archive/4wxyz.com/cert1.pem

lrwxrwxrwx 1 root root  34 Jun 11 14:14 /etc/letsencrypt/live/4wxyz.com/chain.pem -> ../../archive/4wxyz.com/chain1.pem

lrwxrwxrwx 1 root root  38 Jun 11 14:14 /etc/letsencrypt/live/4wxyz.com/fullchain.pem -> ../../archive/4wxyz.com/fullchain1.pem

lrwxrwxrwx 1 root root  36 Jun 11 14:14 /etc/letsencrypt/live/4wxyz.com/privkey.pem -> ../../archive/4wxyz.com/privkey1.pem

-rw-r--r-- 1 root root 692 Jun 11 14:14 /etc/letsencrypt/live/4wxyz.com/README

 

 

$ sh certbot_renew.sh

docker run -it --rm --name certbot \

  -v '/etc/letsencrypt:/etc/letsencrypt' \

  -v '/var/lib/letsencrypt:/var/lib/letsencrypt' \

  certbot/certbot --renew-by-default certonly -d '*.4wxyz.com' \

  --manual --preferred-challenges dns \

  --server https://acme-v02.api.letsencrypt.org/directory

 

$ chmod +x certbot_renew.sh

 

$ sh certbot_renew.sh

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator manual, Installer None

Renewing an existing certificate

 

IMPORTANT NOTES:

 - Congratulations! Your certificate and chain have been saved at:

   /etc/letsencrypt/live/4wxyz.com/fullchain.pem

   Your key file has been saved at:

   /etc/letsencrypt/live/4wxyz.com/privkey.pem

   Your cert will expire on 2019-09-09. To obtain a new or tweaked

   version of this certificate in the future, simply run certbot

   again. To non-interactively renew *all* of your certificates, run

   "certbot renew"

 - If you like Certbot, please consider supporting our work by:

 

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate

   Donating to EFF:                    https://eff.org/donate-le

 

$ crontab -l

### domain renew

00 10 1-7 * *   [ "`date '+\%a'`" == Mon ] && /bin/bash /app/letsencrypt/certbot_renew.sh > /dev/null 2>&1

'___기타' 카테고리의 다른 글

Let's Encrypt(certbot)  (0) 2019.06.11
[MAC] geoiplookup 명령어 설치  (0) 2018.09.07
[URL] Rackmonkey  (0) 2017.06.07
[ANSIBLE] 계정 생성 및 삭제  (0) 2017.04.25
[ANSIBLE] 일반 계정 생성  (0) 2017.04.25
[오픈소스] Ansible 일반 계정으로 배포하기  (0) 2017.04.16

[사이트 URL] io 드로잉

draw.io


https://www.draw.io/

'___사이트URL' 카테고리의 다른 글

[사이트 URL] io 드로잉  (0) 2018.11.15
[사이트 URL] 조회 사이트  (0) 2018.11.12
[URL] patorjk.com  (0) 2018.10.23
[URL] Text to ASCII Art Generator  (0) 2018.10.23
[URL] Easy Bash PS1 Generator  (0) 2018.10.23
[URL] HeidiSQL  (0) 2018.08.13

[사이트 URL] 조회 사이트

wintelguy.com


https://wintelguy.com

'___사이트URL' 카테고리의 다른 글

[사이트 URL] io 드로잉  (0) 2018.11.15
[사이트 URL] 조회 사이트  (0) 2018.11.12
[URL] patorjk.com  (0) 2018.10.23
[URL] Text to ASCII Art Generator  (0) 2018.10.23
[URL] Easy Bash PS1 Generator  (0) 2018.10.23
[URL] HeidiSQL  (0) 2018.08.13

[apache] apache(http) ab

apache(http) ab


Usage: ab [options] [http[s]://]hostname[:port]/path

Options are:

    -n requests     Number of requests to perform

    -c concurrency  Number of multiple requests to make at a time

    -t timelimit    Seconds to max. to spend on benchmarking

                    This implies -n 50000

    -s timeout      Seconds to max. wait for each response

                    Default is 30 seconds

    -b windowsize   Size of TCP send/receive buffer, in bytes

    -B address      Address to bind to when making outgoing connections

    -p postfile     File containing data to POST. Remember also to set -T

    -u putfile      File containing data to PUT. Remember also to set -T

    -T content-type Content-type header to use for POST/PUT data, eg.

                    'application/x-www-form-urlencoded'

                    Default is 'text/plain'

    -v verbosity    How much troubleshooting info to print

    -w              Print out results in HTML tables

    -i              Use HEAD instead of GET

    -x attributes   String to insert as table attributes

    -y attributes   String to insert as tr attributes

    -z attributes   String to insert as td or th attributes

    -C attribute    Add cookie, eg. 'Apache=1234'. (repeatable)

    -H attribute    Add Arbitrary header line, eg. 'Accept-Encoding: gzip'

                    Inserted after all normal header lines. (repeatable)

    -A attribute    Add Basic WWW Authentication, the attributes

                    are a colon separated username and password.

    -P attribute    Add Basic Proxy Authentication, the attributes

                    are a colon separated username and password.

    -X proxy:port   Proxyserver and port number to use

    -V              Print version number and exit

    -k              Use HTTP KeepAlive feature

    -d              Do not show percentiles served table.

    -S              Do not show confidence estimators and warnings.

    -q              Do not show progress when doing more than 150 requests

    -g filename     Output collected data to gnuplot format file.

    -e filename     Output CSV file with percentages served

    -r              Don't exit on socket receive errors.

    -h              Display usage information (this message)

    -Z ciphersuite  Specify SSL/TLS cipher suite (See openssl ciphers)

    -f protocol     Specify SSL/TLS protocol

                    (SSL3, TLS1, TLS1.1, TLS1.2 or ALL)

'___APM' 카테고리의 다른 글

[apache] apache(http) ab  (0) 2018.11.09
PHP 7.2 설치(업그레이드) [CentOS 7 / remi RPM repository]  (0) 2018.06.19
[nginx] nginx upstream 옵션  (0) 2016.03.16
[HTTP] HTTP Status Code  (0) 2015.08.12
[MariaDB] MariaDB 소스 설치  (0) 2015.08.04
[APM] APM 설치_20150209  (0) 2015.02.09
◀ PREV 1234···131 NEXT ▶