rhel7操作笔记
su
exit
dmesg|grep -i eth
ip
/etc/sysconfig/network-scripts/ifcfg-eth0
service network restart #重启网络
lsmod #list modules
chmod # change 权限
chown # change onwer
vi /etc/profile # jdk环境变量
source /etc/profile # 重新执行脚本
crul localhost:8080 # tomcat已启动,可能是防火墙挡住了
iptables
chkconfig #命令主要用来更新(启动或停止)和查询系统服务的运行级信息。
systemctl #是系统服务管理器命令,它实际上将 service 和 chkconfig 这两个命令组合到一起
systemctl is-active firewalld #查看firewalld是否已启用
rpm -i url
rpm -qa //查询所有已安装的包
ls|grep ^glibc-h.*64|xargs rpm -ivh // ls的结果通过grep过滤,再将结果通过xargs传递给rpm命令
find / -name perl //在根目录/下查找perl文件
安装apache前最好安装perl,因为apache的apxs脚本需要perl
./apachectl –t -D DUMP_MODULES //查看apache已安装的模块