原因是因为没有添加环境变量。 因为运行XAMPP需要root权限,所以我们可以先切换为root用户,然后在/root/.bashrc文件的最后一行添加: PATH=$PATH:/opt/lampp/bin 执行命令: source .bashrc 现在就可以直接执行mysql的命令了 ...
分类:
数据库 时间:
2021-04-20 14:19:57
阅读次数:
0
cookie 获取Cookie request.COOKIES['key'] request.get_signed_cookie(key, default=RAISE_ERROR, salt='', max_age=None) 参数: default: 默认值 salt: 加密盐 max_age: ...
分类:
其他好文 时间:
2021-04-10 13:36:23
阅读次数:
0
zabbix服务端安装 环境: 主机|ip|应用 | | 服务端|192.168.23.140|基于lamp架构下部署zabbix server, zabbix agent 准备工作 //安装依赖包 [root@localhost ~]# yum -y install net-snmp-devel ...
分类:
其他好文 时间:
2021-04-08 13:51:27
阅读次数:
0
playbook部署lamp 环境 主机IP |需要安装的服务 |name -|-|- 192.168.23.132 |ansible |ansible 192.168.23.133 |httpd |httpd 192.168.23.134 |mysql |mysql 192.168.23.135 ...
分类:
其他好文 时间:
2021-02-23 14:38:08
阅读次数:
0
步骤1、修改mysql配置文件 [root@localhost ~]# vi /etc/my.cnf 在底部添加一行 skip-grant-tables 保存退出 重启mysql [root@localhost ~]# systemctl restart mysqld 步骤2、将root密码置空 [ ...
分类:
数据库 时间:
2021-02-22 12:44:28
阅读次数:
0
转自公众号“程序员黑叔” 1. css 一行文本超出... overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 2.多行文本超出显示... display: -webkit-box; -webkit-box-orient: v ...
分类:
其他好文 时间:
2021-02-05 10:58:59
阅读次数:
0
@ 一、环境介绍 系统版本 IP地址 主机名 角色 centos7.5 192.168.1.104 salt-master master centos7.5 192.168.1.105 salt-client client 环境说明: centos7.5默认的python环境是2.7版本。 官方说明 ...
分类:
系统相关 时间:
2021-01-26 12:01:22
阅读次数:
0
ansible实战:lamp 环境说明: 主机IP 需要安装的服务 192.168.100.1 ansible 192.168.100.2 httpd 192.168.100.3 mysql 192.168.100.4 php 项目结构预览: [root@ansible project]# tree ...
分类:
其他好文 时间:
2021-01-26 11:50:59
阅读次数:
0
当批量更新nginx配置文件是,某些场景中每个服务器都可以使用单独的域名,这时候使用salt批量修改就要使用pillar模块去做变量匹配。下面举例: 编写一个tmp/lyztest.txt。文件传输后匹配变量赋值目标主机b020063的域名为lyz_testb020063.com,实现变量匹配的效果 ...
分类:
其他好文 时间:
2021-01-21 10:41:27
阅读次数:
0
错误一:安装nginx报错“src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘current_salt’” “src/os/unix/ngx_user.c:26:7: error: ‘struct ...
分类:
其他好文 时间:
2021-01-18 10:49:25
阅读次数:
0