Tag : apache

docker run -d -p 80:80 -p 3306:3306 -v /home/www:/app -v /home/mysql:/var/lib/mysql tutum/lampThe service can be started docker run -i -t tutum/lamp /bin/bash docker commit {id} test/lamp docker run -d -p 80:80 -p 3306:3306 -v /home/www:/app -v /home/mysql:/var/lib/mysql free/lampUnable to start service My goal is to modify the configuration of tutum/lamp so that the web service ..

Read more

Create an empty git warehouse under Apache’s htdocs git –bare init myweb.git Then access it in the browser.http://127.0.0.1/myweb.git/Confirm that the document can be seen. But under the git command line, use git clonehttp://127.0.0.1/myweb.gitBut he made a mistake fatal: repository ‘http://127.0.0.1/myweb.git/‘ not found Why is this? It should not be a question of permissions. clone only ..

Read more

The picture shows the display branch problem of git and svn in terminal prompt. However, I am using git-svn now. if all displayed words are git’s branch, is there any way to prompt me in prompt that this branch uses git-svn mode? ? You can refer to this problem on stackoverflow: How to tell if ..

Read more

As shown in the figure, I wrote a redis connection pool with golang’s redigo library and simulated 10,000 concurrent read operations with ab test. However, redis refreshed info, the number of connections was always 2, and only 4 was displayed at most. However, there were more than 60 connections using write operations, and netstat-ano showed ..

Read more

CustomLog “| /usr/local/apache/bin/rotatelogs /data/wwwlogs/access_%Y%m%d.log 86400 480” combined The configuration file settings are as above But restarting apache-generated files looks like this. It is not generated by day, but only after a few days.Another point is that today’s date is the 13th, and the latest one generated by him is the 8th. I checked the server’s ..

Read more

Ubuntu 14.04 64-bit Apache2.4 Configuration Diary Generated DailyPrompt [CustomLog: command not found]Use the following configuration method Configuration method: Change it to errorlog’ |/usr/local/Apache/bin/rotatables/home/logs/www/%y _% m _% d _ error _ log86400 480 ” CustomLog “| /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480″common CustomLogIs the instruction in apache configuration file not a shell command, what do you want to ..

Read more