12 2018 档案

摘要:# 运行用户 user nginx; # 工作进程数, 通常设置成和cpu的数量相等 worker_processes 4; # PID 文件, 记录当前启动的nginx 的进程ID pid /var/run/nginx.pid; # 全局错误日志 error_log /var/log/nginx/ 阅读全文
posted @ 2018-12-18 10:40 _Goku 阅读(243) 评论(0) 推荐(0)
摘要:#!/bin/bash function display_method(){ clearDisplayMetho=0 if [ $displayMethod -eq 0 ]; then echo -e "\033[${color};${backgroup_color}m ${message} \033[${clearDisplayMetho}m" else echo -e ... 阅读全文
posted @ 2018-12-17 17:27 _Goku 阅读(299) 评论(1) 推荐(0)
摘要:[root@localhost ~]# cat s2.sh #!/bin/bash color_name="red" red=31 color=`eval echo '$'"${color_name}"` echo ${color} [root@localhost ~]# sh s2.sh 31 [root@localhost ~]# 阅读全文
posted @ 2018-12-17 17:19 _Goku 阅读(4340) 评论(0) 推荐(2)
摘要:[root@localhost ~]# yum -y install pwgen [root@localhost ~]# pwgen -ncCyB1 8 1 kei%b3Xa [root@localhost ~]# pwgen -ncCyB1 8 2 Ahs3eib' Yo>u7eun [root@localhost ~]# [root@localhost ~]# echo $RANDO... 阅读全文
posted @ 2018-12-17 13:59 _Goku 阅读(556) 评论(0) 推荐(0)