随笔分类 -  linux

摘要:1 下载go安装包 路径 : https://studygolang.com/dl 2 放入 /usr/local 中并解压 tar -C /usr/local/ -xzvf go1.15.linux-amd64.tar.gz 3 配置环境变量 在/etc/profile下配置,执行vi /etc/ 阅读全文
posted @ 2020-08-24 14:47 懶得取名
摘要:主库ip:192.168.1.27 从库ip:192.168.1.41 配置主库 修改my.cnf文件 [root@bogon ~]# vi /etc/my.cnf 在[mysqld]加入下面的内容 # 服务的唯一编号 server-id = 1 # 开启mysql binlog功能 log-bin 阅读全文
posted @ 2020-06-28 16:53 懶得取名
摘要:编辑mysql配置文件 [root@bogon ~]# vi /etc/my.cnf 在 [mysqld] 配置节下新增 skip-grant-tables 保存并重启mysql //重启 [root@bogon ~]# systemctl restart mysqld 登录mysql [root@ 阅读全文
posted @ 2020-06-28 14:16 懶得取名
摘要:安装 yum -y install lrzsz 使用工具:SecureCRT 上传文件: [root@centos7 ~]# rz cd到要放置上传文件的路径下,输入rz命令,SecureCRT弹出文件选择对话框,选择要上传的文件,点击添加 ,然后确定 下载文件: [root@centos7 ~]# 阅读全文
posted @ 2020-06-22 11:27 懶得取名
摘要:错误: 原因:这是和json扩展加载顺序冲突导致的 解决办法: 不要在php.ini里加入extension=redis.so 在php.d文件夹下创建新文件redis.ini,加入extension=redis.so 重启PHP 阅读全文
posted @ 2020-06-17 15:48 懶得取名
摘要:php错误日志路径: 报错: PHP Warning: mysqli_real_connect(): (HY000/2002): Permission denied in 解决办法: 关闭SElinux (默认情况下SElinux是启用状态) 查看SElinux状态: sestatus 临时关闭: 阅读全文
posted @ 2020-06-12 15:32 懶得取名
摘要:查看firewall服务状态 systemctl status firewalld.service 查看firewall的运行状态 firewall-cmd --state firewall的 开启 关闭 重启 //开启 systemctl start firewalld.service // 关闭 阅读全文
posted @ 2020-06-12 11:24 懶得取名