- 博客(12)
- 收藏
- 关注
原创 Linux系统文件颜色分别代表什么?
浅蓝色 :链接文件,主要是使用ln命令建 立的文件 蓝色 : 表示目录文件 白色 : 表示普通文件 红色 :表示压缩文件或者包文件 桃红色 :套接字文件 黄色 :表示字符设备文件, 土黄色 :管道文件 绿色 : 表示可执行文件,可执行的程序 灰色 :表示文件 红色闪烁 :表示链接的文件有问题 ...
2022-05-26 22:11:20
431
原创 Nginx的负载均衡配置
条件:三台虚拟主机(其中一台虚拟机需要安装nginx) 在配置文件vim /usr/local/nginx/conf/nginx.conf中添加以下内容 upstream web-server{ ip_hash; server 192.168.226.145 fail_timeout=60s weight=3 ; server 192.168.226.168 weight=7 ; } server{ l...
2022-05-22 23:14:01
290
原创 用LAMP搭建Discuz论坛(Centos7)
一、安装apache 1、查看是否安装过Apache rpm -qa | grep httpd 如果安装了就卸载httpd:yum remove -y "httpd*" 2、安装httpd yum install -y httpd 3、启动httpd systemctl start httpd 添加开机启动:systemctl enable httpd 4、设置防火墙开发tcp80端口 firewall-cmd --zone=public --add-port=80/tcp --perma
2022-05-11 12:08:00
990
原创 LNMP架构搭建workpress开源博客(Centos7)
安装Nginx 第一步:下载nginx安装包并上传到服务器并关闭防火墙和selinux 第二步:安装依赖包 [root@localhost home]# yum install pcre-devel automake make zlib zlib-devel gcc-c++ libtool openssl openssl-devel -y 第三步:新建用户名nginx和解压 ...
2022-05-10 22:39:11
654
原创 LAMP搭建zabbix开源博客(Centos 7)
apache yum install httpd -y #apache软件 yum install httpd-manual #apache手册 systemctl start httpd systemctl enable httpd firewall-cmd --list-all #列出防火墙信息 firewall-cmd --permanent --add-service=http #永久允许http firewa...
2022-05-10 20:07:43
353
原创 安装apache服务器,并配置访问端口为:9999。添加新的默认页面sorry.html,在默认页面下不能访问的情况下显示“很抱歉...“,并配置三台虚拟主机,用基于ip的方式配置
1、安装Apache服务器,并配置访问端口为:9999 [root@localhost ~]# yum install httpd -y (apache软件) [root@localhost ~]# yum install httpd-manual (apache的手册) [root@localhost ~]# systemctl start httpd [root@localhost ~]# systemctl enable httpd [root@localhost ~]# fire.
2022-04-07 21:53:41
1598
原创 在/usr目录中新建一个目录名称为:mytest,并在mytest目录中新建文件net.txt。设置文件的属性为文件属主(u)增加执行权限,文件属主同组用户(g)增加写入权限其他用户(o)删除读权限
1、在/usr目录中新建一个目录名称为:mytest,并在mytest目录中新建文件net.txt。设置文件的属性为文件属主(u)增加执行权限,文件属主同组用户(g)增加写入权限其他用户(o)删除读权限 [root@juan ~]# cd /usr [root@juan usr]# mkdir mytest [root@juan usr]# cd mytest [root@juan mytest]# touch net.txt [root@juan mytest]# chmod u+x net.t
2022-03-13 22:34:21
399
原创 新建一个新用户admin,指定/root目录下,并指定用户id为,设置密码为xxx,写出操作命令过程
[roor@juan ~]# useradd -d/root/admin -u 6666 admin [root@juan ~]# ls admin anaconda-ks.cfg [root@juan ~]# passwd admin Changing password for user admin New password:admin@123 BAD PASSWORD :The password contains the user name in some form Retypc n...
2022-03-09 14:54:56
954
原创 在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3,用vi编辑器分别在三个文件中输入内容
1、在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3,用vi编辑器分别在三个文件中输入内容。 [root@juan ~]# cd /tmp [root@juan tmp]# mkdir director [root@juan tmp]# cd director [root@juan director]# touch file1.txt file2.txt file3.txt [root@juan director]#vi file1
2022-03-06 16:44:02
824
原创 找到/etc/ppp/ipup文件,写出推迟30s的关机
1、找到 /etc/ppp/ipup 文件,写出操作命令过程? 2、写出推迟30秒的关机
2022-02-27 21:49:55
156
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅