Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Timestamp Process: 1461783225.762922 0.001079 0.000015
- - RespProtocol HTTP/1.1
- - RespStatus 304
- - RespReason Not Modified
- - RespReason Not Modified
- - RespUnset Content-Length: 3186
- - Debug "RES_MODE 0"
- - RespHeader Connection: keep-alive
- - Timestamp Resp: 1461783225.762975 0.001131 0.000053
- - ReqAcct 494 0 494 316 0 316
- - End
- * << Session >> 65537
- - Begin sess 0 HTTP/1
- - SessOpen 10.10.10.132 56859 :6081 10.10.10.131 6081 1461783225.759633 18
- - SessClose REM_CLOSE 5.051
- - End
- * << Session >> 32769
- - Begin sess 0 HTTP/1
- - SessOpen 10.10.10.132 56858 :6081 10.10.10.131 6081 1461783225.759615 17
- - SessClose REM_CLOSE 5.051
- - End
- * << Session >> 98305
- - Begin sess 0 HTTP/1
- - SessOpen 10.10.10.132 56860 :6081 10.10.10.131 6081 1461783225.759647 19
- - SessClose REM_CLOSE 5.051
- - End
- * << Session >> 1
- - Begin sess 0 HTTP/1
- - SessOpen 10.10.10.132 56857 :6081 10.10.10.131 6081 1461783225.759492 14
- - Link req 2 rxreq
- - SessClose REM_CLOSE 5.051
- - End
- #################################################^Croot@magentovmphp7:/home/kadro# ls -al
- total 36
- drwxr-xr-x 4 kadro kadro 4096 Apr 27 12:20 .
- drwxr-xr-x 3 root root 4096 Apr 27 12:03 ..
- -rw------- 1 kadro kadro 305 Apr 27 14:05 .bash_history
- -rw-r--r-- 1 kadro kadro 220 Apr 27 12:03 .bash_logout
- -rw-r--r-- 1 kadro kadro 3771 Apr 27 12:03 .bashrc
- drwx------ 2 kadro kadro 4096 Apr 27 12:05 .cache
- -rw-r--r-- 1 kadro kadro 675 Apr 27 12:03 .profile
- -rw-r--r-- 1 kadro kadro 0 Apr 27 12:05 .sudo_as_admin_successful
- drwxr-xr-x 2 root root 4096 Apr 27 12:05 .vim
- -rw------- 1 root root 2409 Apr 27 12:17 .viminfo
- root@magentovmphp7:/home/kadro# /usr/sbin/va
- validlocale varnishd
- root@magentovmphp7:/home/kadro# /usr/sbin/va
- validlocale varnishd
- root@magentovmphp7:/home/kadro# /usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
- Error:
- Failed to create vcl_boot/vgc.so: Permission deniedVCL compilation failed
- root@magentovmphp7:/home/kadro# /usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m^C
- root@magentovmphp7:/home/kadro# vi /var/log/varnish/varnish
- varnish.log varnishncsa.log
- root@magentovmphp7:/home/kadro# vi /var/log/varnish/varnish.log
- root@magentovmphp7:/home/kadro# vi /var/log/varnish/varnishncsa.log
- root@magentovmphp7:/home/kadro# chmod 777 /usr/local/var/varnish
- chmod: cannot access '/usr/local/var/varnish': No such file or directory
- root@magentovmphp7:/home/kadro# chmod /usr/sbin/va
- validlocale varnishd
- root@magentovmphp7:/home/kadro# chmod 777 /usr/sbin/varnishd
- root@magentovmphp7:/home/kadro# /usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 7305/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 7305/varnishd
- tcp 0 404 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 7305/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 7305/varnishd
- root@magentovmphp7:/home/kadro# service varnish restart
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 7566/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 7566/varnishd
- tcp 0 52 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 7566/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 7566/varnishd
- root@magentovmphp7:/home/kadro# varnishstat
- root@magentovmphp7:/home/kadro#
- root@magentovmphp7:/home/kadro# varnishd -d -f /etc/varnish/default.vcl
- Error:
- Failed to create vcl_boot/vgc.so: Permission deniedVCL compilation failed
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 7566/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 7566/varnishd
- tcp 0 52 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 7566/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 7566/varnishd
- root@magentovmphp7:/home/kadro# bash varnish.sh
- bash: varnish.sh: No such file or directory
- root@magentovmphp7:/home/kadro# vi varnish.sh
- root@magentovmphp7:/home/kadro# chmod +x varnish.sh
- root@magentovmphp7:/home/kadro# bash varnish.sh
- VCL compiled.
- VCL 'varnish-cfg-15883' now active
- root@magentovmphp7:/home/kadro# varnishadm "ban.url ." # Matches all URLs
- Unknown request.
- Type 'help' for more info.
- Command failed with error code 101
- root@magentovmphp7:/home/kadro# varnishadm "ban.url ."
- Unknown request.
- Type 'help' for more info.
- Command failed with error code 101
- root@magentovmphp7:/home/kadro# varnishadm ban.url .
- Unknown request.
- Type 'help' for more info.
- Command failed with error code 101
- root@magentovmphp7:/home/kadro# varnishadm "ban.url ."
- Unknown request.
- Type 'help' for more info.
- Command failed with error code 101
- root@magentovmphp7:/home/kadro# service varnish restart
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 7829/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 7829/varnishd
- tcp 0 404 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 7829/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 7829/varnishd
- tcp6 0 0 ::1:34334 ::1:6082 TIME_WAIT -
- tcp6 0 0 ::1:34336 ::1:6082 TIME_WAIT -
- tcp6 0 0 ::1:34332 ::1:6082 TIME_WAIT -
- tcp6 0 0 ::1:34338 ::1:6082 TIME_WAIT -
- root@magentovmphp7:/home/kadro# ps aux | grep apache2
- root 1118 0.0 1.6 413684 34344 ? Ss 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 1123 0.0 0.5 413832 11400 ? S 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 1124 0.0 0.5 413832 11376 ? S 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 1125 0.0 0.5 413832 11364 ? S 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 1126 0.0 0.4 413716 9900 ? S 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 1127 0.0 0.4 413716 9900 ? S 14:32 0:00 /usr/sbin/apache2 -k start
- www-data 7233 0.0 0.4 413716 9900 ? S 14:46 0:00 /usr/sbin/apache2 -k start
- root 8060 0.0 0.0 14228 1088 pts/0 S+ 15:07 0:00 grep --color=auto apache2
- root@magentovmphp7:/home/kadro# /usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
- Error:
- Failed to create vcl_boot/vgc.so: Permission deniedVCL compilation failed
- root@magentovmphp7:/home/kadro# vi /etc/fstab
- root@magentovmphp7:/home/kadro# varnishd -a :80 -T localhost:6082 -b localhost:8080
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 7829/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 7829/varnishd
- tcp 0 404 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 7829/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 7829/varnishd
- root@magentovmphp7:/home/kadro# service vanrnish restart
- Failed to restart vanrnish.service: Unit vanrnish.service not found.
- root@magentovmphp7:/home/kadro# service varnish restart
- root@magentovmphp7:/home/kadro# netstat -tapn
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1015/sshd
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN 8133/varnishd
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN 8133/varnishd
- tcp 0 252 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED 1137/sshd: kadro [p
- tcp6 0 0 :::8080 :::* LISTEN 1118/apache2
- tcp6 0 0 :::22 :::* LISTEN 1015/sshd
- tcp6 0 0 :::6081 :::* LISTEN 8133/varnishd
- tcp6 0 0 ::1:6082 :::* LISTEN 8133/varnishd
- root@magentovmphp7:/home/kadro# varnish -V
- No command 'varnish' found, did you mean:
- Command 'varnishd' from package 'varnish' (universe)
- varnish: command not found
- root@magentovmphp7:/home/kadro# varnish -V
- varnishadm varnishd varnishhist varnishlog varnishncsa varnishstat varnishtest varnishtop
- root@magentovmphp7:/home/kadro# varnishd -V
- varnishd (varnish-4.1.1 revision 66bb824)
- Copyright (c) 2006 Verdens Gang AS
- Copyright (c) 2006-2015 Varnish Software AS
- root@magentovmphp7:/home/kadro# cat /etc/lsb-release
- DISTRIB_ID=Ubuntu
- DISTRIB_RELEASE=16.04
- DISTRIB_CODENAME=xenial
- DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
- root@magentovmphp7:/home/kadro# ps aux | grep varnishd
- vcache 8133 0.0 0.3 125044 7788 ? Ss 15:12 0:00 /usr/sbin/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
- vcache 8146 0.0 5.7 296588 117500 ? Sl 15:12 0:00 /usr/sbin/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
- root 8374 0.0 0.0 14228 1032 pts/0 R+ 15:17 0:00 grep --color=auto varnishd
- root@magentovmphp7:/home/kadro# vi /etc/default/varnish
- root@magentovmphp7:/home/kadro# cd /etc/varnish/
- root@magentovmphp7:/etc/varnish# ls -al
- total 16
- drwxr-xr-x 2 root root 4096 Apr 27 14:50 .
- drwxr-xr-x 92 root root 4096 Apr 27 15:10 ..
- -rw-r--r-- 1 root root 1257 Apr 27 14:50 default.vcl
- -rw------- 1 root root 37 Apr 27 14:36 secret
- root@magentovmphp7:/etc/varnish# cd /etc/init.d/varnish
- varnish varnishlog varnishncsa
- root@magentovmphp7:/etc/varnish# ls -al /etc/init.d/varnish
- -rwxr-xr-x 1 root root 3442 Jan 28 15:05 /etc/init.d/varnish
- root@magentovmphp7:/etc/varnish# ls -al /etc/init.d/varnish
- varnish varnishlog varnishncsa
- root@magentovmphp7:/etc/varnish# ls -al /etc/init.d/varnish*
- -rwxr-xr-x 1 root root 3442 Jan 28 15:05 /etc/init.d/varnish
- -rwxr-xr-x 1 root root 2248 Jan 28 15:05 /etc/init.d/varnishlog
- -rwxr-xr-x 1 root root 2267 Jan 28 15:05 /etc/init.d/varnishncsa
- root@magentovmphp7:/etc/varnish# vi /etc/init.d/varnish
- root@magentovmphp7:/etc/varnish# sudo kadro
- sudo: kadro: command not found
- root@magentovmphp7:/etc/varnish# su kadro
- kadro@magentovmphp7:/etc/varnish$ service varnish resstart
- /etc/init.d/varnish: 33: ulimit: error setting limit (Operation not permitted)
- /etc/init.d/varnish: 36: ulimit: error setting limit (Operation not permitted)
- * Usage: /etc/init.d/varnish {start|stop|restart|reload|force-reload|configtest}
- kadro@magentovmphp7:/etc/varnish$ service varnish restart
- ==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
- Authentication is required to restart 'varnish.service'.
- Authenticating as: kadro,,, (kadro)
- Password:
- kadro@magentovmphp7:/etc/varnish$ sudo service varnish restart
- [sudo] password for kadro:
- kadro@magentovmphp7:/etc/varnish$ sudo service varnish stop
- kadro@magentovmphp7:/etc/varnish$ sudo service varnish restart
- kadro@magentovmphp7:/etc/varnish$ ^Cdo service varnish restart
- kadro@magentovmphp7:/etc/varnish$ sudo /etc/init.d/varnish restart
- [ ok ] Restarting varnish (via systemctl): varnish.service.
- kadro@magentovmphp7:/etc/varnish$ sudo /etc/init.d/varnish restart
- [ ok ] Restarting varnish (via systemctl): varnish.service.
- kadro@magentovmphp7:/etc/varnish$ netstat -tapn
- (Not all processes could be identified, non-owned process info
- will not be shown, you would have to be root to see it all.)
- Active Internet connections (servers and established)
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
- tcp 0 0 0.0.0.0:6081 0.0.0.0:* LISTEN -
- tcp 0 0 127.0.0.1:6082 0.0.0.0:* LISTEN -
- tcp 0 52 10.10.10.131:22 10.10.10.132:56448 ESTABLISHED -
- tcp6 0 0 :::8080 :::* LISTEN -
- tcp6 0 0 :::22 :::* LISTEN -
- tcp6 0 0 :::6081 :::* LISTEN -
- tcp6 0 0 ::1:6082 :::* LISTEN -
- kadro@magentovmphp7:/etc/varnish$ vi /etc/init.d/varnish
- kadro@magentovmphp7:/etc/varnish$ sudo system
- systemctl systemd-ask-password systemd-cgtop systemd-escape systemd-machine-id-setup systemd-resolve systemd-tmpfiles
- systemd systemd-cat systemd-delta systemd-hwdb systemd-notify systemd-run systemd-tty-ask-password-agent
- systemd-analyze systemd-cgls systemd-detect-virt systemd-inhibit systemd-path systemd-stdio-bridge
- kadro@magentovmphp7:/etc/varnish$ sudo systemctl varnish restart
- Unknown operation varnish.
- kadro@magentovmphp7:/etc/varnish$ sudo systemctl varnishd restart
- Unknown operation varnishd.
- kadro@magentovmphp7:/etc/varnish$ vim /etc/init.d/varnish
- #! /bin/sh
- ### BEGIN INIT INFO
- # Provides: varnish
- # Required-Start: $local_fs $remote_fs $network
- # Required-Stop: $local_fs $remote_fs $network
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: Start HTTP accelerator
- # Description: This script provides a server-side cache
- # to be run in front of a httpd and should
- # listen on port 80 on a properly configured
- # system
- ### END INIT INFO
- # Source function library
- . /lib/lsb/init-functions
- NAME=varnishd
- DESC="HTTP accelerator"
- PATH=/sbin:/bin:/usr/sbin:/usr/bin
- DAEMON=/usr/sbin/varnishd
- PIDFILE=/run/$NAME.pid
- test -x $DAEMON || exit 0
- # Include varnish defaults if available
- if [ -f /etc/default/varnish ] ; then
- . /etc/default/varnish
- fi
- # Open files (usually 1024, which is way too small for varnish)
- ulimit -n ${NFILES:-131072}
- # Maxiumum locked memory size for shared memory log
- ulimit -l ${MEMLOCK:-82000}
- # If $DAEMON_OPTS is not set at all in /etc/default/varnish, use minimal useful
- # defaults (Backend at localhost:8080, a common place to put a locally
- # installed application server.)
- DAEMON_OPTS=${DAEMON_OPTS:--b localhost}
- # Ensure we have a PATH
- export PATH="${PATH:+$PATH:}/usr/sbin:/usr/bin:/sbin:/bin"
- start_varnishd() {
- log_daemon_msg "Starting $DESC" "$NAME"
- output=$(/bin/tempfile -s.varnish)
- if start-stop-daemon \
- --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON} -- \
- -P ${PIDFILE} ${DAEMON_OPTS} > ${output} 2>&1; then
- log_end_msg 0
- else
- log_end_msg 1
- cat $output
- exit 1
- fi
- rm $output
- }
- disabled_varnishd() {
- log_daemon_msg "Not starting $DESC" "$NAME"
- log_progress_msg "disabled in /etc/default/varnish"
- log_end_msg 0
- }
- stop_varnishd() {
- log_daemon_msg "Stopping $DESC" "$NAME"
- if start-stop-daemon \
- --stop --quiet --pidfile $PIDFILE --retry 10 \
- --exec $DAEMON; then
- 146 lines yanked 1,1 Top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement