• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






freshbreeze

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 下一页

2013年5月25日

linux命令--修改用户家目录
摘要: 方法:usermodusermod -d /usr/newfolder -u uid-u后面一定要接uid啊,不是username附:usermod详细参数语 法:usermod [-LU][-c <备注>][-d <登入目录>][-e <有效期限>][- f <缓冲天数>][-g <群组>][-G <群组>][-l <帐号名称>][-s ][-u ] [用户帐号]补充说明:usermod可用来修改用户帐号的各项设定。参 数:-c<备注> 修改用户帐号的备注文字。-d登入目录> 修改用户登入时 阅读全文
posted @ 2013-05-25 13:55 freshbreeze 阅读(3408) 评论(0) 推荐(0)
 
linux命令--打开ftp服务
摘要: cd /etc/init.d./vsftpd start ---开启./vsftpd stop ----关闭./vsftpd status 阅读全文
posted @ 2013-05-25 13:54 freshbreeze 阅读(417) 评论(0) 推荐(0)
 
linux命令--赋予目录权限
摘要: chmod 757 /home 阅读全文
posted @ 2013-05-25 13:53 freshbreeze 阅读(306) 评论(0) 推荐(0)
 

2013年5月21日

linux命令--vi状态批量替换内容
摘要: : %s/10.199.198.92/10.137.163.141/g:%s/sid=sdp/sid=ora11g/g 阅读全文
posted @ 2013-05-21 18:01 freshbreeze 阅读(423) 评论(0) 推荐(0)
 
linux系统--nameserver惹得祸
摘要: 症状:1、所有用户包括root用户登录Linux服务器,输入用户名后要等很长时间才能输入密码2、在oracle服务端使用tnsping命令执行非常慢3、使用oracle客户端或者plsql登录oracle服务器响应非常慢4、应用比如mdsp,portalone等在启动连接数据库超时,导致应用启动失败。病因:配置了错误的DNS,导致域名解析失败,从而导致访问系统缓慢。用药:将配置的nameserver注释掉:编辑文件/etc/resolv.conf,将nameserver一行注释掉linux:~ # more /etc/resolv.conf### /etc/resolv.conf file a 阅读全文
posted @ 2013-05-21 17:59 freshbreeze 阅读(874) 评论(0) 推荐(0)
 
linux命令--将指令执行结果写入到一个文件中
摘要: sar -p 2 5 >> qhd.txt 阅读全文
posted @ 2013-05-21 17:58 freshbreeze 阅读(1524) 评论(0) 推荐(0)
 
linux命令--sar 命令监控系统资源
摘要: sar -p 2 5: 表示监控cpu资源,每2秒采集一次,采集5次。sar -d 3 4: 表示监控磁盘资源,每3秒采集一次,采集4次。sar -n DEV 2 2: 表示监控网络IO资源,每2秒采集一次,采集2次。 阅读全文
posted @ 2013-05-21 17:57 freshbreeze 阅读(230) 评论(0) 推荐(0)
 
linux命令-- 抓包
摘要: tcpdump -s 0 -w qhd.cap -i lo port 8310tcpdump -s 0 -w aa.cap -i bond1strings aaa.cap > aaa.txttcpdump -i any -w qhd.cap -s 0 host 10.138.53.155tcpdump -i any -w qhd.cap -s 0 -X host 10.137.163.141 and port 44247 阅读全文
posted @ 2013-05-21 17:55 freshbreeze 阅读(142) 评论(0) 推荐(0)
 
linux命令-- 计算文件数量
摘要: ls | wc -l 阅读全文
posted @ 2013-05-21 17:28 freshbreeze 阅读(204) 评论(0) 推荐(0)
 
linux命令---kill杀进程
摘要: kill -9 进程号先 ps -ef | more 看进程情况如果知道进程名称 也可以用 ps -ef| grep was找到第二列 就是进程号 ,输入 kill -9 进程号 阅读全文
posted @ 2013-05-21 10:18 freshbreeze 阅读(185) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 下一页