原创 firewalld
###############################################################火牆#####################[root@localhost ~]# systemctl star
原创 varnish
#################varnish#################主機環境: rhel6 selinux and iptables disabled實驗主機: 172.25.254.11 varnish
原创 python1
1.安裝軟件,因爲操作系統自帶,所以直接yum安裝yum install -y python 2.python -V ####查詢python版本 3.交互使用python在python交互模式中,定義的變量,如果
原创 python中的模塊
#############################################################module#####################################################
原创 python5
高階函數——————sorted排序也是在程序中經常用到的算法。 無論使用冒泡排序還是快速排序,排序的核心是比較兩個元素的大小。通常規定如下:x < y, return -1x == y, return 0x > y, return 1先進
原创 nginx防盜鏈
前提條件:編譯好nginx,在http模塊中添加下面內容 server { listen 80; server_name 172.25.1.1; location ~*.(gif|jpg|png|sw
原创 腳本
1.for循環 for循環用於值列表中的相同命令的重複 #!/bin/bashwhile [ -z "$*" ]do echo "please give a num" exit 0done for ((i=0;i<$1;i++)
原创 nginx
###################nginx######################1.nginx安裝下載nginx-1.12.0.tar.gz安裝包tar zxf nginx-1.12.0.tar.gz [root@server3
原创 python3
1.定義一個函數fun(*args),該函數的效果如下:fun(222,111,'xian','hahahha') --》'xian'fun(7,'name','fensi') -->'fensi'fun(1,2,3,4)
原创 python常用模塊
##############常用模塊################ OS 模塊爲訪問操作系統的特定熟悉提供方法提供了對平臺模塊的封裝(對 windows, 對 mac 的封裝等)os.environ ##對環
原创 script.sh
#!/bin/bash while [ "$#" -lt "2" ] do echo "please give me userfile or passwdfile" exit 0 done tou
原创 python中的模塊
#############################################################module#####################################################
原创 varnish
#################varnish#################主機環境: rhel6 selinux and iptables disabled實驗主機: 172.25.254.11 varnish
原创 mysql+php+mem+openresty
###########mysql###########1. mysql安裝 (1)tar zxf mysql-boost-5.7.17.tar.gz(2)yum install cmake-2.8.12.2-4.el6.x86_64.rpm
原创 腳本
1.for循環 for循環用於值列表中的相同命令的重複 #!/bin/bashwhile [ -z "$*" ]do echo "please give a num" exit 0done for ((i=0;i<$1;i++)