这是我的小窝

你好,欢迎光临! 

Prev Next

世界,你好!

每个人的命运从出身的那一刻基本就决定了,你努力了你的人生中就会开那么几朵小花,仅此而已。
more

关于博客

欢迎来到我的博客,一个便贴纸博客!
more

CentOS直接yum安装nginx并设置开机自启动

2019.08.17 , , No Comments , 2,990 views ,

一、添加yum源 CentOS 7: rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm CentOS 6: rpm -ivh http://nginx.org/packages/centos/6/noarch/...

Linux查看cron服务是否启动

2019.08.1 , , No Comments , 3,435 views ,

Debian/Ubuntu: service cron status(查看状态) 1 service cron status(查看状态) service cron star...

hostloc论坛python刷分脚本

2019.07.31 , , No Comments , 3,731 views ,

安装依赖、添加权限: apt-get install -y python3-pip python3-requests python3-termcolor chmod +x loc.py 创建loc.py文件,将以下文件都放在同目录下: Shell #!/usr/bin/python3 #coding:utf-8 #import sys #print(sys.version...

Linux调整时区和同步时间的方法

2019.07.15 , , No Comments , 2,090 views ,

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ntpdate time.windows.com hwclock --show hwclock --hctosys clock -w 123456789 ...

debian安装nginx绑定域名设置ssl配置文件

2019.07.12 , , No Comments , 3,322 views ,

一、安装nginx: apt-get install nginx 1 apt-get install nginx 二、编辑默认配置文件: /etc/nginx/sites-av...

阿里云debian7,8换源方法

2019.07.12 , , No Comments , 3,609 views ,

debian7源: deb http://mirrors.ustc.edu.cn/debian/ stable main contrib non-free deb http://mirrors.ustc.edu.cn/debian/ stable-updates main contrib non-free deb http://mirrors.ustc.edu.cn/de...

Debian 9/Ubuntu 17添加rc.local开机自启动的方法

2019.07.11 , , No Comments , 2,762 views ,

方法 1、添加rc-local.service #以下为一整条命令,一起复制运行: cat > /etc/systemd/system/rc-local.service <<EOF [Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local [Service] Type...

密码保护:status.sh用法

2019.07.5 , , 要查看留言请输入您的密码。 , 3,013 views ,

crontab -e 自动任务加入以下: */5 * * * * /root/xxx/status.sh check_status 开机启动加入以下: bash /root/xxx/status.sh check_status 以下的内容只是备份,不好记就记录标记注明。给脚本改一下权限,执行的时候带上这几个参数中的其中几个。监控的话就在crontab里设置下就行了。 status.sh脚本内容: ...