码迷,mamicode.com
首页 > 系统相关 > 详细

linux关于软件安装和测试

时间:2018-08-09 23:13:00      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:grep   init   httpd   ice   系统   stat   测试   配置文件   nbsp   

软件都是盘上的安装之前确保已挂载完毕

1.安装软件
rpm -ivh httpd-2*
 
2.修改配置文件
vi /etc/httpd/conf/httpd.conf
listen 8888
 
3.启动服务
service httpd start
 
只有rpm包软件才能用service xxx start/stop来启动或者关闭
rpm包默认安装在/etc/rc.d/init.d/ 目录下,service启动也在这个包内找
绝大多数软件都可用./xxx start来启动 stop停止 restart重启
 
4.查看进程
pstree 查看进程树
pstree | grep httpd 筛选
 
5.查看端口
netstat -tunpl 查看所有已开通端口
netstat -tunpl | grep httpd 筛选
 
6.关闭软件
service http stop
 
7.关闭进程
pkill httpd
 

top 实时查看进程、内存和cpu情况
1.load average: 2.03, 1.76, 1.80
1分钟、5分钟、15分钟平均负载

2.%Cpu(s):100.0 us, 0.0 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
0.0 id:空闲率(??)越大越好

3.Mem : 1883616 total, 150796 free, 440012 used, 1292808 buff/cache
内存空闲 150796kb

 


uptime 服务器工作时间 在线用户 平均负载

who 在线用户详细信息

last 获取最近系统的重要操作

linux关于软件安装和测试

标签:grep   init   httpd   ice   系统   stat   测试   配置文件   nbsp   

原文地址:https://www.cnblogs.com/teitey/p/9452057.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!