1.设置环境变量 # echo 'PATH=/opt/opsmgr/web/components/postgresql96linux64.1/bin/:$PATH' >> /etc/profile # echo 'export PGPASSWORD=ytcmUUNq' >> /etc/profile ...
分类:
数据库 时间:
2021-05-24 08:13:18
阅读次数:
0
运行命令free -h,若swap那一行都是0的话表明没有交换空间。dd if=/dev/zero of=/var/swap bs=1024 count=2048000if 表示infile,of表示outfile,bs=1024代表增加的模块大小,count=2048000代表2048000个模块 ...
分类:
其他好文 时间:
2021-05-24 07:51:25
阅读次数:
0
数据库基本命令行 mysql -uroot -p123456 -- 连接数据库 update mysql .user set authentication_string=password('123456')where user='root' and Host = 'localhost'; -- 修改 ...
分类:
数据库 时间:
2021-05-24 07:46:41
阅读次数:
0
在k8s 里面如果直接删除pod,, 是起不到作用的,因为删除的pod 还是被继续拉起来。 看下面的例子,我们把 deployment-ngx-8ff559dc9-5v5f7 这个pod 通过kubectl delete pod 的方式删除掉 [root@k8s-master ~]# kubectl ...
分类:
其他好文 时间:
2021-05-24 07:41:06
阅读次数:
0
在使用 docker 的过程中,我们可以使用docker restart {container_id}来重启容器,但是在 kubernetes 中并没有重启命令(没有 kubectl restart {podname}),有时候我们的 Pod 出现 Bug意外终止,导致我们需要重启 Pod ,却没有 ...
分类:
其他好文 时间:
2021-05-24 07:38:57
阅读次数:
0
1.停止服务 net stop mysql; 2.控制台输入 mysqld --console --shared-memory --skip-grant-tables 3.重新打开一个窗口,进入bin目录下,执行mysql,回车 4.密码置空 update user set authenticati ...
分类:
数据库 时间:
2021-05-24 07:35:02
阅读次数:
0
现象 [root@ln0-181 src]# docker login harbor.spos.lab Authenticating with existing credentials... Login did not succeed, error: Error response from daem ...
分类:
其他好文 时间:
2021-05-24 07:34:00
阅读次数:
0
##1.使用ansible的playbook实现自动化安装httpd 配置ansible主机文件 [root@localhost ~]# vim /etc/ansible/hosts [websrvs] 10.50.100.8 配置ansible与管理端的ssh连接 [root@localhost ...
分类:
Web程序 时间:
2021-05-24 07:09:02
阅读次数:
0
firewall的操作 1.firewalld的基本使用 启动: systemctl start firewalld查状态:systemctl status firewalld 停止: systemctl disable firewalld禁用: systemctl stop firewalld在开 ...
分类:
其他好文 时间:
2021-05-24 06:54:27
阅读次数:
0
linux kernel version:4.4.38 硬件平台:exynos4412-tiny4412 参考链接:https://www.cnblogs.com/ethandlwang/p/14759735.html 基于上一篇按键点灯程序,我给设备驱动添加了sysfs设备模型,demo级程序 添 ...
分类:
其他好文 时间:
2021-05-24 06:51:38
阅读次数:
0