摘要: 一、现象 昨天运维人员被告知,在升级完客户集群环境后,访问管理页面偶尔会报 502 Bad Gateway。登录客户环境,发现只要请求分发到 node2,就会报 502,开始解决问题... 二、排查思路 1、看到 502 第一时间想到的应该是 php-fpm 出问题了,先看下 nginx 日志,连接 阅读全文
posted @ 2024-07-26 16:05 gentsir 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1、yum -y update // 更新系统 1.1)yum -y install gcc g++ gcc-c++ make kernel-devel kernel-headers 1.2)vi /etc/selinux/config # 禁止SELINUX 1.3)设置SELINUX=disab 阅读全文
posted @ 2017-03-20 16:19 gentsir 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 一、安装前的准备工作 1、更新系统、禁止SELINUX、安装php、MySQL、Nngix所依赖的包、删除系统自带的mysql配置文件 [root@localhost ~]# yum -y update [root@localhost ~]# vi /etc/selinux/config # 设置S 阅读全文
posted @ 2016-09-01 13:18 gentsir 阅读(926) 评论(3) 推荐(0) 编辑
摘要: '; $link = mysql_connect($DbHost, $DbUser, $DbPwd) or die('数据库连接失败: ' . mysql_error()); mysql_select_db($DbName) or die('数据库连接失败: ' . my... 阅读全文
posted @ 2015-04-10 17:02 gentsir 阅读(677) 评论(2) 推荐(0) 编辑
摘要: mkdir /etc/yum.repos.d.bak mv /etc/yum.repos.d/* /etc/yum.repos.d.bak rm -f /etc/yum.repos.d/* wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirro 阅读全文
posted @ 2024-12-10 23:35 gentsir 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1、更新yum 源为华为云 mkdir /etc/yum.repos.d.bak mv /etc/yum.repos.d/* /etc/yum.repos.d.bak #rm -f /etc/yum.repos.d/* wget -O /etc/yum.repos.d/CentOS-Base.rep 阅读全文
posted @ 2024-12-10 15:01 gentsir 阅读(496) 评论(0) 推荐(0) 编辑
摘要: <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" max-height="589" style="width: 100%; margin-bottom: 24px" v-if="activeName == '0 阅读全文
posted @ 2024-09-19 16:51 gentsir 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <el-dialog width="600px" :title="title" :visible.sync="dialogVisible" :close-on-click-modal="false" :before-close="handleBeforeClose" @open="handleOpe 阅读全文
posted @ 2024-09-14 16:49 gentsir 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 1、保存并关闭 HBuilder X 正在编辑的文件 2. 在 HBuilder X 安装目录双击 reset.bat 文件 3. 把安装目录下 plugins/node 目录的 node.exe,重命名为 node-bak.exe,将自己安装的node.exe 复制到此目录 4. 重启OK 阅读全文
posted @ 2024-04-17 10:29 gentsir 阅读(789) 评论(0) 推荐(0) 编辑
摘要: 1、适用于python2.7+ yum install -y python-devel krb5-devel \ && curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \ && python get-pip.py 2、适 阅读全文
posted @ 2024-04-10 12:27 gentsir 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1、需求待授权设备中存在同名则重命名,以保证授权设备名称在数据库中的唯一性 2、逻辑图 3、代码 private function deduplicateDeviceName(&$dataset) { if (!($sameset = $this->getDeviceSameset($dataset 阅读全文
posted @ 2021-06-20 15:57 gentsir 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 一、面试要点问题: 1、工作能动性,如何体现? 2、以往工作公司规模,如何审查? 3、讲述做过的最有挑战的技术功能及细节,面试者如何回答? 阅读全文
posted @ 2021-06-11 11:36 gentsir 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 1、删除目录中指定文件 find /e/Apache/htdocs/site -name 'index.html' | xargs rm 2、在指定目录下新建index.php并写入指定内容 #!/bin/bash # 在指定目录下新建index.php并写入<?php header('HTTP/1 阅读全文
posted @ 2021-01-27 10:39 gentsir 阅读(985) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示