摘要: 1.Nginx充当中介,将请求转发给其他LAMP 192.168.200.112中yum安装LAMP [root@localhost ~]# yum -y install httpd mairadb mariadb-server php php-mysql [root@localhost ~]# s 阅读全文
posted @ 2019-09-16 09:15 IT民工9527 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 一.配置Nginx隐藏版本号 [root@localhost ~]# curl -I 192.168.200.111HTTP/1.1 200 OKServer: nginx/1.16.1 //Nginx版本号Date: Fri, 13 Sep 2019 02:20:55 GMTContent-Typ 阅读全文
posted @ 2019-09-13 11:51 IT民工9527 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#挂载yum仓库 read -p "请输入你的挂载点: " direcho "正在挂载光盘..."mount | grep -q "/dev/sr0" && umount /dev/sr0[ -d $dir ] || mkdir $dirmount /dev/sr0 $dir 阅读全文
posted @ 2019-08-24 16:22 IT民工9527 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#挂载yum仓库 read -p "请输入你yum仓库的挂载点: " direcho "正在挂载光盘..."mount | grep -q "/dev/sr0" && umount /dev/sr0[ -d $dir ] || mkdir $dirmount /dev/sr0 阅读全文
posted @ 2019-08-24 16:21 IT民工9527 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/bash 2 #挂载yum仓库 3 4 read -p "请输入你的挂载点: " dir 5 echo "正在挂载光盘..." 6 mount | grep -q "/dev/sr0" && umount /dev/sr0 7 [ -d $dir ] || mkdir $dir 8 阅读全文
posted @ 2019-08-24 16:20 IT民工9527 阅读(199) 评论(0) 推荐(0) 编辑
摘要: centos7 关闭防火墙 systemctl stop firewalld systemctl disable firewalld centos6 关闭防火墙 service iptables stop chkconfig iptables off 关闭selinux安全机制 sed -i '7 阅读全文
posted @ 2019-08-23 14:46 IT民工9527 阅读(440) 评论(0) 推荐(0) 编辑
摘要: centos7 关闭防火墙 systemctl stop firewalld systemctl disable firewalld centos6 关闭防火墙 service iptables stop chkconfig iptables off 关闭selinux安全机制 sed -i '7 阅读全文
posted @ 2019-08-22 11:51 IT民工9527 阅读(222) 评论(0) 推荐(0) 编辑
摘要: centos7 关闭防火墙 systemctl stop firewalld systemctl disable firewalld centos6 关闭防火墙 service iptables stop chkconfig iptables off 关闭selinux安全机制 sed -i '7 阅读全文
posted @ 2019-08-22 11:20 IT民工9527 阅读(273) 评论(0) 推荐(0) 编辑
摘要: centos7 关闭防火墙 systemctl stop firewalld systemctl disable firewalld centos6 关闭防火墙 service iptables stop chkconfig iptables off 关闭selinux安全机制 sed -i '7 阅读全文
posted @ 2019-08-19 14:49 IT民工9527 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1、通过ps命令的两种选项形式查看进程信息 [root@bogon ~]# ps -aux[root@bogon ~]# ps -elf 2、通过top命令查看进程 [root@bogon ~]# top 3、通过pgrep命令查看sshd服务的进程号 [root@bogon ~]# pgrep - 阅读全文
posted @ 2019-08-08 17:41 IT民工9527 阅读(165) 评论(0) 推荐(0) 编辑