Last active
October 22, 2019 03:24
-
-
Save toanvv/bbd393ed9a048e66640d694b989a9543 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -ti \ | |
| -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ | |
| -v /tmp/$(mktemp -d):/run \ | |
| -p 8180:80 local/c7-systemd-httpd | |
| docker run -ti \ | |
| --name mistyline \ | |
| -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ | |
| -v /tmp/$(mktemp -d):/run \ | |
| -v /toanvv/mistyline_registration/httpd/conf:/etc/httpd/conf \ | |
| -v /toanvv/mistyline_registration/httpd/conf.d:/etc/httpd/conf.d \ | |
| -p 8180:80 mistyline:v4 | |
| docker run -ti \ | |
| --name mistyline-origin \ | |
| -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ | |
| -v /tmp/$(mktemp -d):/run \ | |
| mistyline:v4 | |
| docker network connect multi-host-network container | |
| passenger-install-apache2-module | |
| passenger-config validate-install | |
| journalctl -xe | |
| checking modules httpd | |
| # restart journald | |
| systemctl restart systemd-journald.service | |
| readelf -s modules/mod_auth_basic.so | |
| readelf -s /root/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/passenger-4.0.45/buildout/ruby/ruby-2.0.0-x86_64-linux/passenger_native_support.so | |
| ps -uapp -opid,%mem,rss,command | awk 'NR>1 {$3=int($3/1024)"M";}{ print;}' | |
| # install mising libs for httpd/passenger | |
| sudo yum install -y libcurl-devel httpd-devel apr-devel apr-util-devel | |
| # install ruby 2.0.0 on ubuntu 18.04 by rbenv | |
| sudo apt install libssl1.0-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment