系统服务
1.使用test数据库 use test 2.查看test数据库中的集合 show collections 3.创建文档命令 db.<collection>.insertOne( <document>, { writeConcern: <document> } ) <collection> 要替换成 ...
分类:系统服务 时间:2020-02-09 16:23:58 收藏:0 阅读:47
题目: 查看哪些蜘蛛在抓取内容 答案: /usr/sbin/tcpdump -i eth0 -l -s 0 -w - dst port 80 | strings | grep -i user-agent | grep -i -E 'bot|crawler|slurp|spider' 这题没看懂!!! ...
分类:系统服务 时间:2020-02-09 15:31:43 收藏:0 阅读:80
firewall使用指南 @auther @date 2020/2/9 [toc] firewall是什么? Centos7 默认的防火墙是 firewall,替代了以前的 iptables 2、firewall 使用更加方便、功能也更加强大一些 3、firewalld 服务引入了一个信任级别的概念 ...
分类:系统服务 时间:2020-02-09 14:51:28 收藏:0 阅读:72
ifconfig ‐a //查ip信息 ping ‐C 4 192.168.xxx.xxx //ping4次setup //配置ip、防火墙、服务等,需要root用户执行ifconfig eth0 192.168.1.100 netmask 255.255.255.0 //临时设置ip vi /et ...
分类:系统服务 时间:2020-02-09 14:47:59 收藏:0 阅读:66
function关键字可以省略 清除函数 参数、局部变量 系统自带函数库 导入到当前终端。 ...
分类:系统服务 时间:2020-02-09 14:39:36 收藏:0 阅读:76
VI底行模式: :set nu //显示行号:set nonu //不显示行号 :n //跳转到指的第n行:w file //另存为:n1,n2 s/string1/string2/g //从n1行到n2行将string1替换为string2:%s/string1/string2/g //将所有行s ...
分类:系统服务 时间:2020-02-09 14:18:08 收藏:0 阅读:75
nmon性能测试监控工具:1、./ nmon -f -t -s 30 -c 180 -f:按标准格式输出文件:<hostname>_YYYYMMDD_HHMM.nmon; -t:输出中包括占用率较高的进程; -s 30:每30秒进行一次数据采集 -c 180:一共采集180次 2、sort -A t ...
分类:系统服务 时间:2020-02-09 14:04:32 收藏:0 阅读:91
题目: 获得访问前10位的ip地址 答案: awk '{print $1}' access.log | sort | uniq -c | sort access.log 172.16.8.11 - - [19/Sep/2018:12:35:21 +0800] "GET /console/stat/o ...
分类:系统服务 时间:2020-02-09 13:59:34 收藏:0 阅读:59
1. fork创建子进程 2. wait等待子进程结束 #include <stdio.h> #include <unistd.h> #include <sys/wait.h> int main() { int count = 0; int pid = fork(); if (pid == 0) { ...
分类:系统服务 时间:2020-02-09 13:44:14 收藏:0 阅读:63
shutdown -h now 关闭系统(1) init 0 关闭系统(2) telinit 0 关闭系统(3) shutdown -h hours:minutes & 按预定时间关闭系统 shutdown -c 取消按预定时间关闭系统 shutdown -r now 重启(1) reboot 重启 ...
分类:系统服务 时间:2020-02-09 12:48:10 收藏:0 阅读:94
117381739174017912
上一页179116下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!