摘要:
1、查看防火墙状态 systemctl status firewalld 2、关闭防火墙 systemctl stop firewalld 3、永久关闭防火墙 systemctl disable firewalld 阅读全文
posted @ 2022-07-01 17:48
opscool
阅读(175)
评论(0)
推荐(0)
摘要:
程序出错异常崩溃退出时,系统会将内存状态信息保存到coredump文件中,利于排查定位问题 1、设置core的最大文件限制不受限制 vim /etc/security/limits.conf,加一行配置 * - core unlimited 2、vim /etc/sysctl.conf,加两行配置 阅读全文
posted @ 2022-07-01 17:43
opscool
阅读(299)
评论(0)
推荐(0)
摘要:
主要是修改nginx.conf文件的http{}块 1、编辑 nginx.conf,在http{}块加一行配置 client_max_body_size 100m; 3、检查下配置文件,然后重新加载生效 /path/nginx -t /path/nginx -s reload 阅读全文
posted @ 2022-07-01 13:38
opscool
阅读(868)
评论(0)
推荐(0)
摘要:
可以通过crontab设置程序的执行时间 列出定时任务:crontab -l编辑定时任务:crontab -e删除定时任务:crontab -d 设置定时任务的格式是:分钟 小时 天 月 星期 脚本 例如: 设定每天的6点执行hello.sh * 6 * * * /path/hello.sh 设定每 阅读全文
posted @ 2022-07-01 13:33
opscool
阅读(303)
评论(0)
推荐(0)
摘要:
1、编辑/etc/rc.local,写入程序的启动命令 vim /etc/rc.local 例如要求每次开机自动执行hello.sh这个脚本 那就加上一行:/path/hello.sh 注:如果遇到不生效的情况,就换成编辑/etc/init.d/rc.local 阅读全文
posted @ 2022-07-01 11:24
opscool
阅读(273)
评论(0)
推荐(0)