Just some notes and references for myself.
- In bash, you can access your
C:\drive via/mnt/c/ ~=C:\Users\MLM\AppData\Local\lxss\home\mlmand is different from your Windows user directoryC:\Users\MLM
| #!/bin/bash | |
| mkdir -p /data/mysql /data/redis | |
| # mysql | |
| docker run --name mysql -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 -v /data/mysql:/var/lib/mysql -d --restart unless-stopped mysql:5.7 --general-log=1 --general_log_file=general.log | |
| # redis | |
| docker run --name redis -p 6379:6379 -v /data/redis:/data -d --restart unless-stopped redis:4.0-alpine redis-server --appendonly yes |
| <?php | |
| function progress($done, $total) { | |
| static $width; | |
| static $block = 0; | |
| if (! isset($width)) { | |
| $width = (int) exec('tput cols'); | |
| } |
| [Unit] | |
| Description=Scheduled Reboot | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/bin/systemctl --force reboot |
| server { | |
| client_body_in_file_only clean; | |
| client_body_buffer_size 32K; | |
| client_max_body_size 300M; | |
| sendfile on; | |
| send_timeout 300s; | |
| # Port that the web server will listen on. | |
| #listen 80; |