05 2021 档案
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:http server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name smart.sqwisdom.net; index index.html index.htm admin.php; root /home/
阅读全文
摘要:cd /home/wwwroot/default/smart/Public && php cron.php Test/test >> ../logs/cron.log 2>&1 这个命令的意思是,第一步,先进入Public目录下,然后通过php指令,结合cron.php,执行相关的代码。 把执行的结
阅读全文
摘要:Docker和宿主Host的关系如上图所示。 查看docker # docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 51bf8220a09f redis:5.0.3 "docker-entrypoint..." 4
阅读全文
摘要:du -h --max-depth=1 du -hm --max-depth=2 | sort -n du -hm --max-depth=2 | sort -nr | head -12 以上都是当前目录,也可以指定目录 du / -h --max-depth=1 du / -hm --max-de
阅读全文
摘要:查看 git remote -v 设置新的地址 git remote set-url origin xxx.git
阅读全文
摘要:我真傻!竟然不知道这个功能! 昨天还一个个复制。真傻比。
阅读全文
摘要:下载地址 https://gitee.com/star7th/showdoc 配置nginx server { listen 80; #listen [::]:80 default_server ipv6only=on; server_name local.showdoc.com; index in
阅读全文
摘要:set password for 'root'@'localhost'=password('Sqkj123456');
阅读全文
摘要:sudo chown -R mysql /usr/local/mysql
阅读全文
摘要:下载wget yum install wget 打开xshell,查看yum源信息: yum repolist 跳转base reop源: cd /etc/yum.repos.d 备份旧的配置文件: mv CentOS-Base.repo CentOS-Base.repo.bak 下载基础源文件(阿
阅读全文
摘要:vim /etc/profile 添加 TMOUT=180 export TMOUT 重新加载配置 source /etc/profile
阅读全文
摘要:授权登录限制 vi /etc/pam.d/system-auth 添加 auth required pam_tally2.so deny=3 unlock_time=30 even_deny_root root_unlock_time=60 sshd登录错误限制 vim /etc/pam.d/ssh
阅读全文