#Install
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
If you see this error,
$ sudo add-apt-repository ppa:webupd8team/java
sudo: add-apt-repository: command not found
#Install
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
If you see this error,
$ sudo add-apt-repository ppa:webupd8team/java
sudo: add-apt-repository: command not found
require 'webrick' | |
server = WEBrick::HTTPServer.new :Port => 1234 | |
server.mount "/", WEBrick::HTTPServlet::FileHandler, './' | |
trap('INT') { server.stop } | |
server.start |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Docker registry does not have authentication nor certificate mechanism so in case you have docker registry on the internet, you need something that support those in front of the registry. You can find examples using Nginx for it on the web and this is yet another one.
Client talks to Nginx. Nginx proxies the request to the docker registry. The nginx is on the host OS - not as a container.
+-----------+ +--------------------------------------------------------+
| | | Server Docker container |
logrotate
is triggerd by cron /etc/cron.daily/logrotate
/etc/logrotate.d
. All the files in this directory is included in /etc/logrotate.conf
/etc/logrotate.d/collector
for example. The contents is as follows:/var/log/collector/log/*.log {
daily
missingok
rotate 52
#Using nfdump
nfdump
is a light-weight and simple netflow collector.
#Receive netflow
nfcapd -w -D -l /flows -p 2055
#Show basic stats
#Sample:
superuser ALL=(ALL) NOPASSWD:ALL