- 博客(12)
- 收藏
- 关注
原创 linux安装zabbix,添加监测客户机
一、linux系统配置1、临时关闭seLinux。setenforce 02、永久关闭selinux 需编辑配置文件/etc/selinux/config,设置SELINUX=disabled,重启系统后生效。vi /etc/selinux/config或firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reloadfirewall-cmd --query-port=80/tcp3..
2022-05-25 09:18:46
231
原创 搭建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 mariadbyum -y install rrdtool rrdto
2022-05-23 10:53:03
151
原创 nginx负载均衡配置技术文档
在配置文件vim /usr/local/nginx/conf/nginx.conf中添加以下内容。upstream web-server{ ip_hash; server 192.168.15.136 fail_timeout=60s weight=3; server 192.168.15.135 weight=7; }server{ listen 80; server_name localho...
2022-05-20 20:49:56
370
原创 第二次作业
1、找到/etc/ppp/ipup 文件,写出操作命令过程,并显示详细信息。[root@localhost ~ ]# cd /etc/ppp/ipup[root@localhost ppp] ls -l2、写出推迟30秒关机命令 [root@localhost ]#shutdown -t30
2022-05-11 11:20:17
102
原创 第一次作业
1、查询linux系统中文件颜色分别代表什么linux 文件颜色的含义:蓝色代表目录,绿色代表可执行文件,红色表示压缩文件, 浅蓝色表示链接文件, 灰色表示其他文件, 黄色表示设备文件, 白色文件表示一般性文件, 红色闪烁表示链接的文件有问题了。2、预习ls、cd 代表什么意思ls:查看目录文件cd:切换目录文件...
2022-05-11 11:16:26
74
原创 用LAMP创建论坛
首先安装Apache:1、yum install httpd -y ##apache软件2、yum install httpd-manual ##apache的手册3、yum install httpd-devel4、systemctl start httpd5、systemctl enable httpd6、firewall-cmd --permanent --add-service=http ##永久允许http7、firewall-cmd --reload ...
2022-05-11 10:26:12
104
原创 用LNMP创建WordPass
安装nginx过程:第一步:下载、上传到服务器后第二步:安装依赖包:yum install pcre-devel automake make zlib zlib-devel gcc-c++ libtool openssl openssl-devel -y第三步:解压到指定位置tar -zxvf nginx-1.20.2.tar.gz -C /usr/local/第四步:新建用户名nginxuseradd nginx -s /sbin/nologin -M...
2022-04-28 16:02:33
322
原创 安装apche,并将端口改为9999。将页面在不能访问的情况下改为显示“很抱歉...该网站正在维护,请你在4月1号之后再访问,感谢你的支持”。用基于端口方式配置虚拟主机。
1、安装Apache服务器,并配置访问端口为9999[root@bogon ~]# yum install httpd -y(安装apache)[root@bogon ~]# yum install httpd-manual[ root@bogon ~]# systemctl start httpd[root@bogon ~]# systemctl enable httpd[rootalocalhost ~]# rpm -ga lgrep httpd(查看安装是否完成)[root@lo.
2022-04-05 14:21:33
1822
原创 无标题
1、在/usr目录中创建一个目录名称为mytest。并在mytest目录中新建文件net.txt。设置文件的属性为文件属主(u)增加执行权限,文件属主同组铜户(g)增加写入权限,其他用户(o)删除读权限[root@localhost ~]# cd /usr[root@localhost usr]# mkdir mytest[root@localhost usr]# cd mytest/[root@localhost mytest]# touch net.txt[root@local.
2022-03-10 16:20:54
863
原创 Linux的目录创建、删除、移动和复制
1、在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3,用vi编辑器分别在三个文件中输入内容2、将file1/file2/file3三个文件中内容合并到一个文件中命名为filetest.txt3、在director目录下新建一个open目录,并在open目录下创建openfile目录,所有目录权限为r-xr--r--.[root@localhost tmp]# mkdir director[root@localhost tmp]# cd
2022-03-06 16:06:01
1867
原创 新建一个新用户admin,指定/root 家目录下,并指定用户ID为4个6,并设置密码, 写出命令过程。
[root@localhost ~]# useradd -d /root/admin -u 6666 admin[root@localhost ~]# lsadmin anaconda-ks.cfg[root@localhost ~]# passwd adminchanging password for user admin.new passwd:admin@123BAD PASSWORD: The password contains the user name in some fo
2022-02-28 22:06:46
502
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人