- 博客(12)
- 收藏
- 关注
原创 搭建cacti
1、搭建lamp环境yum -y install httpd mariadb mariadb-server mariadb-devel php php-mysql php-gd php-pear gd gd-develsystemctl start httpd && systemctl enable httpdsystemctl start mariadb && systemctl enable mariadb2、安装绘图工具和snmp组件yum -y in
2022-05-25 10:23:45
324
1
原创 查询Linux系统中文件夹的颜色分别代表什么?
1.蓝色代表目录 2.绿色代表可执行文件 3.红色代表压缩文件 4.浅蓝色代表链接文件 5.灰色代表其他文件 6.红色闪烁代表链接文件有问题 7.黄色代表设备文件 8.白色代表一般性文件等等
2022-05-25 10:13:24
788
原创 Nginx负载均衡配置
在配置文件vim /usr/local/nginx/conf/nginx.conf中添加以下内容。upstream web-server{ ip_hash; server 192.168.201.145fail_timeout=60s weight=3; server 192.168.201.146 weight=6; }server{ listen 80; server_name localh...
2022-05-21 17:19:02
328
原创 安装zabbix
1. 环境搭建LAMP[root@localhost/]# cat /etc/redhat-release [root@localhost/]# cat /proc/version [root@localhost/]#cat/etc/selinux/config[root@localhost /]#firewall-cmd --state[root@localhost /]#systemctl stop firewalld.service[root@loca...
2022-05-11 11:18:18
208
原创 安装Apache服务并配置端口为9999,添加新的默认页面sorry.html,在默认页面下不能访问的情况下显示“很抱歉...“,并配置三台虚拟主机,用基于ip的方式配置
[root@localhost~]#yuminstall httpd -y[root@localhost ~]# yum install httpd-manual[root@localhost ~]# systemctl start httpd[root@localhost ~]# systemctl enable httpd[root@localhost ~]# firewall-cmd --list-all[root@localhost ~]# firewall...
2022-05-11 10:33:58
595
原创 基于lnmp搭建workpress
部署Nginx第一步:下载、上传到服务器后yum install pcre-devel automake make zlib zlib-devel gcc-c++ libtool openssl openssl-devel -ytar -zxvf nginx-1.20.2.tar.gz -C /usr/local/srcuseradd nginx -s /sbin/nologin -M[root@localhost nginx-1.14.2]# .configure \> &
2022-05-10 20:28:25
552
原创 配置yum源
[root@chai /]# cd /etc/yum.repos.d[root@chai yum.repos.d]# lsCentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repoCentOS-CR.repo CentOS-Media.repo CentOS-x86_64-kernel.repoCentOS-Debuginfo.repo CentOS-Sources.repo[root@chai y...
2022-03-28 19:44:38
155
原创 Linux
Linux系统里 shutdown -t 30 :推迟30秒关机的命令; shutdown -f :重新启动不执行fsck命令; shutdown -h now 将系统关机; shutdown -r :关机之后重新启动 +时间/now reboot :重新启动 init :init 0 关机 init 6 重启 half/poweroff :关机...
2022-03-28 11:01:13
749
原创 查询Linux系统中文件夹的颜色分别代表什么?
1.蓝色代表目录 2.绿色代表可执行文件 3.红色代表压缩文件 4.浅蓝色代表链接文件 5.灰色代表其他文件 6.红色闪烁代表链接文件有问题 7.黄色代表设备文件 8.白色代表一般性文件等等
2022-03-28 10:58:52
1989
原创 【无标题】
1、在/usr目录中创建一个目录名称为mytest。并在mytest目录中新建文件net.txt。设置文件的属性为文件属主(u)增加执行权限,文件属主同组铜户(g)增加写入权限,其他用户(o)删除读权限。 [root@chai usr]# mkdir mytest [root@chaiusr]# cd mytest...
2022-03-12 23:19:53
194
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人