例如:nohup ./startup.sh &
find 文件目录 文件名称
yum install 名称
例如:
cd soft.version.rpm所在的目录
输入rpm -ivh soft.version.rpm
cd soft.version.deb所在的目录;
输入dpkg -i soft.version.deb
tar -xzvf soft.tar.gz //解压
cd soft
make//编译
make install PREFIX=/usr/local/redis// 编译安装到某个目录
参照下面这个地址(含有不同的安装方式和区别)
https://blog.csdn.net/aganliang/article/details/91129105
不加参数 cat grep.txt | grep “hello”
在grep.txt文件中找到含有字符串"hello"的所有行
-n
显示行号并在grep.txt文件中找到含有字符串"hello"的所有行
-i
忽略大小写
–color
长选项-- 不同颜色显示
-o
只显示匹配的词
-A / -B / -C 加上 -n
显示所匹配行的前后行信息
-v
反向查找:不包含
cat grep.txt | grep “hello” > newgrep.txt
ps -ef | grep 服务名
systemctl status 服务名
firewall
(1)设置开机启用防火墙:systemctl enable firewalld.service
(2)设置开机禁用防火墙:systemctl disable firewalld.service
(3)启动防火墙:systemctl start firewalld
(4)关闭防火墙:systemctl stop firewalld
(5)检查防火墙状态:systemctl status firewalld
yum install net-tools
top firewalld
(5)检查防火墙状态:systemctl status firewalld
yum install net-tools