自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 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 localhos...

2022-05-25 09:02:35 56 1

原创 【无标题】

第一步:检查是否安装nginx mysql phpps -ef |grep nginxps -ef |grep mysqlps -ef |grep php2、配置nginx支持PHP程序修改php的配置文件cd /usr/local/php/etc/php-fpm.d修改内容:user = nginxgroup = nginxlisten.owner = nginxlisten.group = nginxcd /usr/local/nginx...

2022-05-23 11:08:32 74

原创 【无标题】

磁盘管理 系统分区:/ 根分区(主要用于存放系统文件及程序),大小至少5G swap 交换分区(主要用于支持虚拟内存)当物理内存小于8G,交换分区一般为1.5倍物理内存 /boot 系统引导分区,用来存储系统的引导文件 一般分配200M /data 数据储存分区 /usr 用来安装其他软件 /home 用来储存个人本地文件1.普...

2022-05-23 10:40:22 60

原创 安装apach服务器

1、安装Apache服务器,并配置访问端口为9999[root@dd ~]# yum install httpd -y(安装apache,注意要联网)[root@dd~]# yum install httpd-manual[ root@dd~]# systemctl start httpd[root@dd ~]# systemctl enable httpd[root@dd ~]# rpm -qa lgrep httpd(查看安装是否完成)[rootadd ~]# cd /etc/htt.

2022-05-23 10:21:44 242

原创 【无标题】

1、安装Apache服务器,并配置访问端口为9999[root@dd ~]# yum install httpd -y(安装apache,注意要联网)[root@dd~]# yum install httpd-manual[ root@dd~]# systemctl start httpd[root@dd ~]# systemctl enable httpd[root@dd ~]# rpm -qa lgrep httpd(查看安装是否完成)[rootadd ~]# cd /etc/http

2022-05-10 20:00:53 43

原创 Linux安装LAMP环境,安装配置Discuz论坛

一:安装Apache1、查看是否安装过Apache:rpm -qa | grep httpd2、有就卸载httpd:yum remove -y "httpd*"3、重新安装httpd:yum install -y httpd4、查看启动状态:systemctl status httpd5、启动httpd:systemctl start httpd6、添加开机启动:systemctl enable httpd7、设置防火墙tcp80端口:firewall-cmd..

2022-05-10 19:51:40 230

原创 安装zabbix4.0

1. 环境搭建LAMPcat /etc/redhat-release # 查看CentOS版本cat /proc/version #查看存放与内核相关的文件1.1 搭建之前的操作升级系统组件到新的版本(需要联网):yum -y update关闭selinux:vi /etc/selinux/config #将SELINUX=enforcing改为SELINUX=disabled 设置后需要重启才能生效setenforce 0 #临时关闭命令getenforce #检测seli

2022-05-10 19:21:49 134

原创 安装jdk

下载jdk压缩包,上传到Xshell,在目录root下面新建文件夹javatouch java然后进入java里面cd java解压jdk压缩包unzip -o jdk进入vi编辑器vi /etc/profile点击i或a进行编辑在最后加上export JAVA_HOME=/usr/java/jdkexport CLASSPATH=.:$JAVA_HOME/lib/;export JRE_HOME=$JAVA_HOME/jre;export PATH=$JAVA_H

2022-03-28 08:39:03 64

原创 【无标题】

1:在/tmp目录下,新建目录director新建三个txt文件,分别命名为file1、file2、file3.用vi编辑器分别在三个文件中输入内容。[root@localhost ~]# cd /tmp[root@localhost tmp]# cd direvtor/[root@localhost director]#touch file1.txtfile2.txt file3.txt[root@localhost director]#Isfile1.txt file2.txt file3.tx

2022-03-14 09:15:00 61

原创 新建新用户

新建一个新用户admin,指定/root目录下,并指定用户id为6666.设置密码为:admin@123.

2022-03-14 09:06:00 95

原创 【无标题】

找到/etc/ppp/ipup文件,写出操作命令过程推迟30秒关机命令

2022-03-14 09:03:05 44

原创 linux系统文件中颜色分别代表什么

红色——压缩文件或者包文件红色闪烁——链接的文件有问题绿色——可执行文件蓝色——目录浅蓝色——链接文件(主要是使用IN命令建立的文件)灰色——其他文件黄色——设备文件白色——一般性文件(如文本文件,配置文件,源码文件等)...

2022-03-14 09:00:42 818

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除