? 192.168.205.7: as Chrony, DNS and YUM Source server (for faster installation, build your own yum source)
? 192.168.205.147: as DataBase, install MariaDB, RabbitMQ, Memcached? 192.168.205.167: as
Category: Unix
The UNIX operating system (Eunice) is a powerful multi-user, multi-tasking operating system that supports multiple processor architectures. According to the classification of the operating system, it is a time-sharing operating system. It was first developed by KenThompson, Dennis Ritchie and Douglas McIlroy in 1969 Developed in AT&T’s Bell Labs in the year. At present, its trademark rights are owned by the International Open Standards Organization, and only UNIX systems that conform to a single UNIX specification can use the name UNIX, otherwise it can only be called UNIX-like (UNIX-like)
Shell-06 function
Shell-06 function #Write a script, use the chkconfig command, loop execution, and close all 5 levels of services
#!/bin/bash
name=`chkconfig –list | cut -d’ span> ‘ -f1`
for i in [name
Shell exercise-18
Question requirementsprompt the user to enter the name of the network card, and then we use the script to output the ip of the network card, we need to consider the following questions:
?
#!
Bash scripting “[!: Not found” error, and how to write or declare
Edit:
This is my updated code:
#!/bin/sh
files=`ls`
if [$# -ne 1 -o -f $1 ]
then
echo “Usage: $0 ”
exit 1
fi
if [! -e $1 ]
then
echo “$1 not found”
exit 1
elif [-d $1 ]then
cd $1
for f
GREP Find shell foundation
1, define a command alias that is effective for all users, for example: lftps=’172.168.0.1/pub’
echo “alias lftps=’172.168.0.1/pub'” >> /etc/bashrc && source /etc/bashrc 2, display all lines
Xargs, sort, uniq command
The xargs, sort, and uniq commands are introduced by a question from LeetCode and used to understand;
The title is this: write a bash script to count a text file words.txt.
The content
Shell script – text processing and programming principle
1. Text processing tools
wc command
wc (Word count) is used to count the number of characters in a text file
15 is the number of lines 78 is the number of characters 805 is the fi
YUM Install Apache PHP MySQL
Installation:
yum install -y httpd php
rpm -qa httpd php
httpd-2.2.15-54.el6.centos.x86_64
php-5.3.3 -48.el6_8.x86_64
Modify the apache configuration file:
vim /
Shell Programming: Typeable variables
1. Through the declare and typeset commands
2, declare parameters are as follows
3. Example: p> Example 1: Declare as immutable, declare -r
$ var=hello
$ var=world
$ e
Examples of using shells to process and send mail
Implementing functions
1. Obsolete processing
Call and execute php in a shell script. If php cannot be completed within 300 seconds, The execution ends
2. Email sending
Send