linux手动执行cron.hourly等计划任务

在centos5下,run-parts命令位于/usr/bin/run-parts,内容是很简单的一个shell脚本,就是遍历目标文件夹,执行第一层目录下的可执行权限的文件。例如: run-parts /etc/cron.hourly/

发表时间:2018-10-17 15:07 | 分类:Linux | 评论:评论关闭 | 浏览:1,457 次 | 阅读更多

Linux系统压力测试软件stress使用

linux下测试cpu、内存、io负载的时候可以用stress,比如想cpu一直100%的运行等。 安装 以centos 6为例 yum install stress 如果没有包运行如下命令 yum install epel-release 或者 wget http:/......

发表时间:2018-10-17 15:06 | 分类:Linux | 评论:评论关闭 | 浏览:1,604 次 | 阅读更多

Ubuntu apt安装软件报错 files list file for package is missing

Ubuntu系统用apt安装软件时报这个错误: Selecting previously unselected package python3-pycurl. dpkg: unrecoverable fatal error, aborting: files list file for package 'libc-bin' is missing fina......

发表时间:2018-10-17 14:02 | 分类:Linux | 评论:评论关闭 | 浏览:1,612 次 | 阅读更多

Linux系统使用netstat和awk统计各个状态的连接数

命令: netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}' awk: /^tcp/ 滤出tcp开头的记录,屏蔽udp, socket等无关记录。 state[] 相当于定义了一个名叫......

发表时间:2018-10-17 14:01 | 分类:Linux | 评论:评论关闭 | 浏览:1,045 次 | 阅读更多

screen -r 提示There is no screen to be resumed matching错误解决

使用screen创建会话,可以保证网络中断时候会话不会断开,对于需要长时间运行的命令比较有用。例如 screen -S nbhao 但是当我们恢复的时候可能会碰到这个问题。 screen -r nbhao 例如: There ......

发表时间:2018-10-17 13:58 | 分类:Linux | 评论:评论关闭 | 浏览:4,027 次 | 阅读更多

查看和关闭centos的selinux

查看selinux sestatus -v 如果SELinux status参数为enabled即为开启状态 关闭selinux 修改/etc/selinux/config 文件,将SELINUX=enforcing改为SELINUX=disabled,重启服务器。

发表时间:2018-10-17 13:55 | 分类:Linux | 评论:评论关闭 | 浏览:1,177 次 | 阅读更多

rsync同步指定ssh端口号的方法

默认rsync命令同步使用22端口,如果修改过ssh端口号,非默认的22端口,那么使用rsync时需要手动指定端口。 命令类似如下: rsync -azv --delete -e 'ssh -p 2222' nbhao@1.2.3.4:/data/ /data/

发表时间:2018-10-17 13:53 | 分类:Linux | 评论:评论关闭 | 浏览:1,835 次 | 阅读更多

CentOS 7中的/etc/rc.local脚本命令不生效的解决

Due to systemd introduced in CentOS 7, the /etc/rc.local not enabled by default, you should make /etc/rc.local executable by your hand. 解决办法: 命令: chmod a+x /etc/rc.local 重启后再试......

发表时间:2018-10-17 13:50 | 分类:Linux | 评论:评论关闭 | 浏览:1,117 次 | 阅读更多

Windows系统中使用IP安全策略关闭端口

1.点击 控制面板-管理工具",双击打开"本地策略",选中"IP安全策略,在本地计算机“右边的空白位置右击鼠标,弹出快捷菜单,选择"创建IP安全策略”,弹出向导。在向导中点击下一步,当显示“安全通信请求”画面......

发表时间:2018-10-17 13:48 | 分类:Windows | 评论:评论关闭 | 浏览:1,131 次 | 阅读更多

Windows Server 2008如何更改服务器用户密码

为了电脑安全要经常更换密码,特别是对服务器的来说。为了安全保障,那么我来介绍一下远程服务器怎么修改远程的密码吧。 第一步 打开自己的电脑,点击运行。 第二步 在对话框里面输入远程的命令:mstsc。点击......

发表时间:2018-10-17 13:47 | 分类:Windows | 评论:评论关闭 | 浏览:1,346 次 | 阅读更多

NTP指定123监听的地址,去除0.0.0.0:123配置

ntp服务监听在udp的123端口,默认他会监听所有IP,包括0.0.0.0:123。如果想去掉的话可以修改如下: interface ignore wildcard interface listen 127.0.0.1 interface listen ::1 # NOTE: if you want to u......

发表时间:2018-10-17 13:46 | 分类:Linux | 评论:评论关闭 | 浏览:3,300 次 | 阅读更多

Ubuntu 16.04修改IP重启后没变化不生效的解决

Ubuntu的网卡信息可以在/etc/network/interfaces配置,一般只修改单个网卡的话使用ifup,ifdown即可。按照这个方法在之前的版本都没有问题,但是Ubuntu 16.04上你可能就会发现网卡重启后IP还是老的,没有变成......

发表时间:2018-10-17 13:43 | 分类:Linux | 评论:评论关闭 | 浏览:3,649 次 | 阅读更多
一键脚本 博客历程 留言联系 文章归档 网站地图 谷歌地图
Copyright © 2010-2024 章郎虫博客 All Rights Reserved.