(19) - How to SSH login without password? (18) - phpMyAdmin with Nginx virtual host as a subdomain (16C) - Reverse proxy servers and load balancers - Nginx (16B) - Serving multiple domains using server block - Nginx (16A) - Serving multiple domains using Virtual Hosts - Apache (11) - SSH key pairs, SSL Certificate, and SSL Handshake (10) - Trouble Shooting: Load, Throughput, Response time and Leaks (9) - Linux System / Application Monitoring, Performance Tuning, Profiling Methods & Tools (6) - AWS VPC setup (public/private subnets with NAT) Kubernetes I - Running Kubernetes Locally via MinikubeĪWS : EKS (Elastic Container Service for Kubernetes) Introduction to Terraform with AWS elb & nginx OpenStack install on Ubuntu 16.04 server - DevStackĪWS EC2 Container Service (ECS) & EC2 Container Registry (ECR) | Docker Registry Zabbix 3 install on Ubuntu 14.04 & adding hosts / items / graphsĭatadog - Monitoring with PagerDuty/HipChat and APMĬontainer Orchestration : Docker Swarm vs Kubernetes vs Apache Mesos Nagios - The industry standard in IT infrastructure monitoring on Ubuntu Nagios on CentOS 7 with Nagios Remote Plugin Executor (NRPE) New Relic APM with NodeJS : simple agent setup on AWS instance Linux - General, shell programming, processes & signals. Samples of Continuous Integration (CI) / Continuous Delivery (CD) - Use casesĪrtifact repository and repository management Sponsor Open Source development activities and free contents for everyone. We can check if apache is actually ps -ef|grep apache2 This works because in the shell script above we installed Apache and setup the default DocumentRoot of Apache to point to our /vagrant directory, which is the default synced folder setup by Vagrant. However, we can't see the website from our own browser yet, but we can verify that the provisioning works by loading a file from SSH within the vagrant ssh => default: Processing triggers for ufw (0.34~rc-0ubuntu2) provision flag on the reload command instructs Vagrant to run the provisioners, since usually Vagrant will only do this on the first vagrant up.Īfter Vagrant completes running, the web server will be up and running. => default: Processing triggers for ureadahead (0.100.0-16). => default: dpkg-preconfigure: unable to re-open stdin: No such file or directory => default: Get:8 trusty/main ssl-cert all 1.0.33 => default: Get:7 trusty-updates/main apache2 i386 2.4.7-1ubuntu4.1 => default: Get:6 trusty-updates/main apache2-data all 2.4.7-1ubuntu4.1 => default: Get:5 trusty-updates/main apache2-bin i386 2.4.7-1ubuntu4.1 => default: Get:4 trusty/main libaprutil1-ldap i386 1.5.3-1 => default: Get:3 trusty/main libaprutil1-dbd-sqlite3 i386 1.5.3-1 => default: Get:2 trusty/main libaprutil1 i386 1.5.3-1 => default: After this operation, 5,050 kB of additional disk space will be used. => default: Need to get 1,270 kB of archives. => default: 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. => default: apache2 apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 => default: The following NEW packages will be installed: => default: Checking for guest additions in VM. Retrying.ĭefault: Warning: Remote connection disconnect. This may take a few minutes.ĭefault: Warning: Connection timeout. => default: Preparing network interfaces based on configuration. => default: Clearing any previously set network interfaces. => default: Clearing any previously set forwarded ports. => default: Attempting graceful shutdown of VM. If the guest machine is already running from a previous step as in our case, we run vagrant reload -provision, which will quickly restart our virtual machine, skipping the initial import vagrant reload -provision => default: VirtualBox VM is already running. => default: Checking if box 'ubuntu/trust圓2' is up to date. We should see the output from the shell script appear in our vagrant upīringing machine 'default' up with 'virtualbox' provider. The file path is relative to the location of the project root (where the Vagrantfile is).Īfter the configuration, we just run vagrant up to create our virtual machine via automatic provision by Vagrant. The "provision" line tells Vagrant to use the shell provisioner to setup the machine, with the bootstrap.sh file. nfigure(VAGRANTFILE_API_VERSION) do |config|Ĭonfig.vm.provision :shell, path: "bootstrap.sh" Next, we need to configure Vagrant to run this shell script when setting up our machine. In this section, we'll setup Apache for our basic project using a shell script, ls
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |