摘要: #shell判断文件夹是否存在 #如果文件夹不存在,创建文件夹if [ ! -d "/myfolder" ]; then mkdir /myfolderfi #shell判断文件,目录是否存在或者具有权限 folder="/var/www/"file="/var/www/log" # -x 参数判断 阅读全文
posted @ 2020-10-30 19:19 zzl0916 阅读(302) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(){ printf("zzl"); } g++ -o cc cc.cpp c++ 编译 gcc -o aa a.c c编译 ./aa all:aaaa:a.c gcc -o aa a.c ~ vim makefile 阅读全文
posted @ 2020-10-30 18:20 zzl0916 阅读(57) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash #切换到app目录并解压文件 cd /appunzip /app/httpdConfig.zipchown -R app:app /app/httpdConfig #切换到解压目录#解压、编译安装pcre插件cd /app/httpdConfigtar -xvf /app/h 阅读全文
posted @ 2020-10-30 16:38 zzl0916 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 服务器配置3台服务器配置 4G内存 40G硬盘挂载镜像 https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-2003.iso 网络配置TYPE=EthernetPROXY_METHOD=noneBROW 阅读全文
posted @ 2020-10-30 16:07 zzl0916 阅读(119) 评论(0) 推荐(0) 编辑