原创 七層負載均衡 nginx

七層負載均衡 簡單解說: ============================================================== 一、集羣的分類:(cluster)1、高可用集羣 HA high avail

原创 乘法口訣表

#!/bin/bash for i in {1..9}dofor ((j=1;j<=i;j++))dopro=$((ij))echo -n "$j $i = $pro "doneechodone 1 1 = 1 1 2 = 2

原创 乘法口訣表

#!/bin/bash for i in {1..9}dofor ((j=1;j<=i;j++))dopro=$((ij))echo -n "$j $i = $pro "doneechodone 1 1 = 1 1 2 = 2

原创 Linux系統基本操作

一、基本命令1、改變目錄:cd 目錄名2、創建文件:touch 文件名3、刪除文件:rm -rf 文件名4、改變文件路徑或改文件名:mv 源文件 目標文件5、關機:init 06、重啓:reboot7、查看IP:ip a 或者

原创 網上商城ecshop的部署

一、配置基礎環境:關閉防火牆、SELinux[root@localhost ~]# sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config [root@localhost ~]#

原创 七層負載均衡 nginx

七層負載均衡 簡單解說: ============================================================== 一、集羣的分類:(cluster)1、高可用集羣 HA high avail

原创 監控軟件 zabbix

監控軟件 監控軟件:zabbix,nagios,cacti,ganglia 1)、zabbix 定義:Zabbix 是一個基於 WEB 界面的提供分佈式系統監視以及網絡監視功能的企業

原创 免密登錄,密鑰

生成本機的公鑰私鑰:[root@localhost ~]# ssh-keygen -t rsa -b 1024 Generating public/private rsa key pair.Enter file in which

原创 查詢成績等級

#!/bin/bash read -p "Please input your score: " scoreif [ $score -le 100 -a $score -ge 90 ];thenecho "A"elif [ $score -l

原创 檢測內存的使用率

方法一:#!/bin/bash mem=free -m |grep Mem |awk '{print $3/$2*100}' |awk -F"." '{print $1}' if [ $mem -ge 80 ];thenecho "Memo

原创 創建用戶,設置密碼(長度是否大於等於7)

#!/bin/bash read -p "Please input username: " name id $name &> /dev/null if [ $? -ne 0 ];thenuseradd $name && echo "$nam