Services Management frank.

Slides:



Advertisements
Similar presentations
Introduction to Linux Linux startup process Unix Shells and scripts.
Advertisements

1.A tool helps us mange the state of an emulator instance or Android-powered device 2.It is client-sever program that include three comopnents: 1). A.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
FreeBSD startup and repair AfNOG 2007 Abuja, Nigeria Hervey Allen Materials from Brian Candler.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Apache Installation by Jack Davis. Web Servers The Apache HTTP Server is the most widely used web server on the Internet. Apache is fast, free, and full-featured.
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
Simple Web SQLite Manager/Form/Report
SquirrelMail for Webmail AfNOG 2013 Scalable Internet Services (SS-E) Presented by Michuki Mwangi Lusaka, Zambia (Original Materials by Joelja)
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
Linux Operations and Administration
AppCMD Quick Reference Guide for IIS 7 installed on Win2k8 Servers.
Booting and boot levels
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Basic Service & Settings pmli. Basic Service e.g. http, ftp, etc.
2/19/2003 Lecture 3 Computer System Administration Lecture 3 Setup (continued)
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Linux Services Muhammad Amer. 2 xinetd Programs  In computer networking, xinetd, the eXtended InterNET Daemon, is an open-source super-server daemon.
Basic Router Configuration 1.1 Global configuration Cisco allows us to configure the router to support various protocols and interfaces. The router stores.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
©John Samuel 2008 Introduction to PHP. ©John Samuel 2008 Objectives At the end of this class the student will be able to; Create and run a simple php.
Linux Operations and Administration
Basic Service & Settings xclin. Computer Center, CS, NCTU 2 If you want to transfer a file…
Lab 8 Overview Apache Web Server. SCRIPTS Linux Tricks.
Module 4 DNS Installation. DNS Software BIND (80+ %) Berkeley Internet Name Domain NSD (Name Server Daemon)
Sys Admin Course Service Management Fourie Joubert.
1 Figure 6-5: Turning Off Unnecessary Services Unnecessary Services  Operating system vendors used to install many services by default  This made them.
Day 15 Apache. Being a web server Once your system is correctly connected to the network, you could be a web server. –When you go to a web site such as.
Installing VERITAS Cluster Server. Topic 1: Using the VERITAS Product Installer After completing this topic, you will be able to install VCS using the.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Linux Basics Part 2. VIM Editor vi improved Installed on most Linux machines Can be a bit confusing at first... o Cheat sheets FTW Other popular editors:
Fundamental of Databases
Chap-I Network and System Configuration in Linux
Apache web server Quick overview.
Section 4 – Link Access Module (Lam) aka Data Adapters
beas WEB App Installation
NTP, Syslog & Secure Shell
FTP Lecture supp.
Upgrade SFX V3 to V4 Lieve Rottiers.
CHAPTER 7.
DHCP server & Client Objectives Contents
Managing Software.
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
FreeBSD startup and repair
Services & Settings.
June 2011 David Front Weizmann Institute
Lab 1 introduction, debrief
Network Services CSCI N321 – System and Network Administration
Network Services.
Introduction to Ansible
Module 1 Introduction to PHP 11/30/2018 CS346 PHP.
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
COP 4343 Unix System Administration
Computer System Administration Homework 3 – File Server
Services & Settings.
Lecture9: Embedded Network Operating System: cisco IOS
System Administration Practice Homework2 - File System Server
APACHE WEB SERVER.
Services & Settings cyen.
CST8177 Scripting 2: What?.
Services & Settings lctseng.
Lecture9: Embedded Network Operating System: cisco IOS
Presentation transcript:

Services Management frank

Basic Services e.g. ssh, http, ftp, etc.

Common Flow of Running a Service Installation Through ports, packages, or source tarballs E.g. pkg install kde4 Configuration Service specific config file(s) rc.conf E.g. kdm4_enable="YES" Start rc.d/* E.g. /usr/local/etc/rc.d/kdm4 start service kdm4 start Maintenance Updating、Restarting

Configuration Files (1/3) Local installed programs’ configuration files are located under /usr/local/etc Daemon → program-name.conf pure-ftpd.conf user-program → program-namerc vimrc screenrc Default config file usually installed with .sample or .default suffix pure-ftpd.conf.sample or different suffix for different purpose php.ini-dist php.ini-recommended copy and rename before use it

Configuration Files (2/3) A program with multiple config files are usually located in /usr/local/etc/program-name/ apache* postfix Most config files have clear comment at the beginning or before each description Most popular styles key <space>value key = value Read documents to know each option’s meaning # pure-ftpd.conf # IP address/port to listen to (default=all IP and port 21) Bind 127.0.0.1,21 # Fork in background Daemonize yes 5

Configuration Files (3/3) Some with local effectiveness (e.g. http server) Markup language-like <directory /path> setting-for-this-path… </directory> Samba、rsync、devfs… [xxxx] settings… [yyyy] settings….

Scripts for starting/stopping a service RC Script Scripts for starting/stopping a service

What does RC means? Run Commands (RunCom) command scripts for auto-reboot and daemon startup rc(8) http://www.freebsd.org/doc/en/books/handbook/configtuning-rcd.html

Why do we need RC Script? Start services on system startup. Starting and Stopping services in a standard way. Without rc: /usr/local/sbin/pure-ftpd –g /var/run/pure-ftpd.pid -A -c50 -B -C8 -D -fftp -H -I15 -lpam -lunix -L10000:8 -m4 -s -U133:022 -u100 -k99 –Z v.s. With rc: service pure-ftpd start

RC Script Dependency between each service is described in header of the script rcorder is used to find out dependency ordering of each script Each rc script define what to do when start/stop … /etc/rc.subr defines what to do & check before/after start stop …. rc.subr(8)

Inside the RC Script Example: /etc/rc.d/inetd for rcorder(8) to sort. need to be included by every RC script. what to do with start/stop/....

Example: Goodjob

Example: Yet another Goodjob

How to use rc script(1/2) Example ntpd After booting… (rc.conf) Pidfile: Record (master) process id of the service Start / Stop / Restart (Start after stop) An easy way to access: “service” $ service ntpd start/stop/restart/reload/… Search /etc/rc.d and /usr/local/etc/rc.d

How to use rc script(2/2) Status Reload [one | fast | force] Check the service is running or not Reload Reload configuration file if the service support [one | fast | force] One Skip the check of rcvar=“YES” Start the service even if XXXX_enable=“NO” Force Force start the service Ignore any error it encountered (no prerequisite test) ignore rcvar=“YES” and set rc_force=“YES” Fast Skip the check for an existing running process (pid check) Set rc_fast=“YES”

Local installed service Use path-to-rcscript rcvar command to know which variable should set to “YES” to enable this service For further information, read comments from that script /usr/local/etc/rc.d/pure-ftpd