1.免交互处理 在免交互输出处理中可以使用重定向将输出内容输入到黑洞文件/dev/null中。 [root@localhost ~]# echo password | passwd --stdin user &> /dev/null 2.I/O交互标准输入:从此设备接收用户输入数据标准输出:通过此设 ...
分类:
系统相关 时间:
2021-05-24 08:35:13
阅读次数:
0
database/sql接口,使用mysql数据库、sqlite数据库、beego orm库、nosql ...
分类:
数据库 时间:
2021-05-24 08:24:40
阅读次数:
0
环境准备,一台CentOS7 安装软件```[root@localhost ~]# yum install mariadb-server -y```创建三个实例的目录```[root@localhost ~]# mkdir /mysql/{3306,3307,3308}/{data,etc,sock ...
分类:
数据库 时间:
2021-05-24 08:17:38
阅读次数:
0
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