4. DevOps
“DevOps is a software development method that stresses communication, collaboration
and integration between software developers and information technology (IT)
professionals.” Wikipedia
5. The Shell
● Hides hardware and OS details
● Text based Command Line interface
● Sequence of commands are “scripts”
6. The Shell
● There is no recycle bin, and no undo.. “Read
before you hit Enter”
Realizing a wrong chown -R (http://devopsreactions.tumblr.com/)
7. The basics
● Everything is a file
● Files names are case sensitive and do not
contain '/'
● Extensions are just conventions
8. ssh and Authentication
● Command line based sessions on the server
● apt-get install openssh-client
● Authentication via password or key pair
.ssh/id_rsa (and .ssh/id_rsa.pub)
.ssh/known_hosts
● Server
.ssh/authorized_keys
9. ssh bookmarking
.ssh/config Host myserver
Hostname myserver.com
User myuser
Port 3022
Host ldap
Hostname 66.85.165.135
User mahmoud
11. Server Anatomy
Web Server (nginx, apache)
Application Server
(Passenger, thin, mod_php, tomcat,..)Other Services
Memcache
Solr
DB Server
Processes
(background jobs)
File system
(Static Resources)
12. nginx
● High-performance HTTP server and reverse
proxy
● /etc/nginx/sites-enabled/kelmetak.com
server {
listen 80 default;
server_name kelmetak.com 2ad.kelemtak.com;
root /usr/local/politwoops/current/public;
}
13. Passenger
● Rails (and rack) nginx and apache module (like
mod_php for php)
server {
listen 80;
server_name 2ad.kelmetak.com;
root /usr/local/politwoops/current/public;
passenger_enabled on;
}