I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| [program:laravel_queue] | |
| command=/usr/local/bin/run_queue.sh | |
| autostart=true | |
| autorestart=true | |
| stderr_logfile=/var/log/laraqueue.err.log | |
| stdout_logfile=/var/log/laraqueue.out.log |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: redis-server | |
| # Required-Start: $syslog $remote_fs | |
| # Required-Stop: $syslog $remote_fs | |
| # Should-Start: $local_fs | |
| # Should-Stop: $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: redis-server - Persistent key-value db |
| <h1 class="title">jQuery.Markdown.js</h1> | |
| <div class="markdown-wrapper"> | |
| <div class="markdown-text"> | |
| <textarea style="width: 330px; height: 500px;"># H1 | |
| ## H2 | |
| ### H3 | |
| #### H4 | |
| ##### H5 | |
| ###### H6 |
| <form id="my-form" action="#"> | |
| <div class="form-group"> | |
| <label>Email address:</label> | |
| <input type="email" class="form-control" required> | |
| </div> | |
| <div class="form-group"> | |
| <label>Password:</label> | |
| <input type="password" class="form-control"> | |
| </div> | |
| <div class="checkbox"> |
having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html, .js etc.) in a browser via http://.
if you're not sure whether or not you have a web server running, no problem! its easy to confirm.
| function makeIterator(array) { | |
| var nextIndex = 0; | |
| console.log("nextIndex =>", nextIndex); | |
| return { | |
| next: function() { | |
| return nextIndex < array.length | |
| ? { value: array[nextIndex++], done: false } | |
| : { done: true }; | |
| } |