![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
why123wh
这个作者很懒,什么都没留下…
展开
-
ssh突然无法登录,报错failed to start openssh daemon
执行sshd -t查看错误原因赋予目录权限chown -R root.root /var/empty/sshdchmod 744 /var/empty/sshdservice sshd restart原创 2021-09-12 20:27:45 · 927 阅读 · 0 评论 -
Linux环境下的工程目录映射到Windows环境
搭建Samba服务器安装软件 yum -y install samba system-config-samba samba-client samba-common 创建samba账号 groupadd samba useradd -g samba t440p # 共享目录 chmod 755/usr/local/nginx/html chown -R t440p:samba /usr/local/nginx/html创建samba配置文件cp /etc/samba/原创 2020-09-10 21:55:11 · 440 阅读 · 0 评论 -
Linux磁盘满了
解决方案du -s -h ./*删除较大的文件夹*发现日志占满了磁盘原创 2020-05-09 11:59:59 · 129 阅读 · 0 评论 -
Linux命令大全集持续更新
文章目录初识Linux Shell什么是linux?Linux内核1.系统内存管理2.软件程序管理3.硬件设备管理4.文件系统管理GNU工具1.核心GNU工具2.shell初识Linux Shell什么是linux?Linux可以划分为以下四部分:Linux内核GNU工具图形化桌面环境应用软件Linux内核内核主要负责以下四种功能:1.系统内存管理内核不仅管理服务器上可...原创 2020-05-02 11:00:00 · 147 阅读 · 0 评论 -
docker加速
更换镜像源vim /etc/docker/daemon.json{ "registry-mirrors": ["http://hub-mirror.c.163.com"]}原创 2020-04-30 15:38:07 · 116 阅读 · 0 评论 -
mysql不能使用root@localhost登录
报错Access denied for user 'root'@'localhost' (using password: YES)原因执行select user,host from user;发现root账户没有localhost登录权限解决执行grant all privileges on *.* to 'root'@'localhost' identified by ...原创 2020-04-27 11:14:48 · 1692 阅读 · 0 评论 -
centos7.6安装nginx
安装依赖cd /homeyum install gcc gcc-c++ 下载nginx源码wget http://nginx.org/download/nginx-1.17.1.tar.gz安装tar -zxvf nginx-1.17.1.tar.gz # 解压cd nginx-1.17.1 # 进入解压后的文件夹./configure --prefix=/...原创 2020-04-27 09:40:54 · 198 阅读 · 0 评论 -
centos 7.6安装redis
链接下载在 redis下载链接中选择合适的版本下载wget http://download.redis.io/releases/redis-5.0.9.tar.gz解压tar -zxvf redis-5.0.9.tar.gz安装gcc依赖yum install gcc跳转到redis解压目录下cd redis.5.0.9编译安装make MALLOC=libcc...原创 2020-04-25 22:04:26 · 333 阅读 · 0 评论 -
windows redis启动等基本操作
找到redis目录打开powershell,执行.\redis-server redis.windows.conf出现一下界面就启动成功原创 2020-04-23 12:06:00 · 165 阅读 · 0 评论 -
Mysql执行sql脚本
Windwos打开cmd【Mysql的bin目录】\mysql –u用户名 –p密码 –D数据库<【sql脚本文件路径全名】,示例:C:\MySQL\bin\mysql –uroot –p123456 -Dtest<C:\test.sql...原创 2020-04-22 17:49:33 · 171 阅读 · 0 评论 -
mysql无法远程连接
错误解决方案检查用户访问权限select host,user from mysql.user;root用户默认指定一个localhost只允许本地访问,将host该修改为%,表示允许所有机器访问update user set host='%' where user='root';执行命令报错,不用理会ERROR 1062 (23000): Duplicate entr...原创 2020-04-21 12:16:27 · 179 阅读 · 0 评论 -
云服务器lnmp环境部署sqli-labs出现:[*]...................Could not connect to DB, check the creds in db-creds.i
报错原因root账户没有设置localhost权限解决方案把localhost修改为127.0.0.1<?php//give your mysql connection username n password$dbuser ='root';$dbpass ='password';$dbname ="security";$host = '127.0.0.1';...原创 2020-04-15 22:38:28 · 3444 阅读 · 2 评论 -
报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
报错mysql报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)解决方案重启mariadb或者mysql原创 2020-04-14 15:28:21 · 176 阅读 · 0 评论 -
Linux服务器校准时区
查看时间date -R校正时间cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime校正成功原创 2020-04-13 18:22:38 · 190 阅读 · 0 评论 -
SecureCRT的zmodem transfer canceled by remote side错误
错误原因zmodem transfer canceled by remote side原因上传文件含有控制字符解决方法使用rz -e转载至笨笨の熊原创 2020-04-08 11:07:58 · 559 阅读 · 0 评论 -
kali报错:ping: www.baidu.com: Name or service not known
文章目录报错原因解决方法报错原因nameserverip需要设置为宿主主机IP解决方法修改ip重启但依旧无效修改配置文件vim /etc/networkinterfaces```bashauto eth0iface eth0 inet dhcpaddress eth0 10.10.10.132netmask 255.255.255.0gateway 10...原创 2020-04-06 19:03:03 · 1010 阅读 · 0 评论 -
云服务器性能
1.1CPU性能查看CPU具体参数查看物理CPU个数[root@node_master ~]# cat /proc/cpuinfo | grep 'physical id' | sort | uniq | wc -l1查看每个物理CPU中的core个数[root@node_master ~]# cat /proc/cpuinfo | grep 'cpu cores' | ...原创 2020-03-31 12:41:57 · 178 阅读 · 0 评论 -
linux修改主机名
查看当前主机名临时修改永久修改方法1:使用hostnamectl set-hostname name命令2.修改配置文件/etc/hostname,保存退出原创 2020-03-31 12:31:54 · 96 阅读 · 0 评论 -
bash: scp: command not found lost connection
报错原创 2020-03-11 23:14:39 · 419 阅读 · 0 评论 -
bash: ls: command not found的解决办法
执行系统命令export PATH=/bin:/usr/bin:$PATH原创 2020-03-11 15:45:57 · 369 阅读 · 0 评论 -
nohup使用技巧
1.启动 nohup jupyter notebook --allow-root & nohup command > myout.file 2>&1 &(将1正确输出、2错误输出都输出到 mylog.file)2.关闭fg %n3.jobs查看任务...原创 2020-03-07 21:19:07 · 225 阅读 · 0 评论 -
使用yum安装软件提示Error: rpmdb open failed
查找rpm服务db文件[root@instance-2 ~]# cd /var/lib/rpm[root@instance-2 rpm]# ls | grep 'db.'__db.001__db.002__db.003更改为*.bak[root@instance-2 rpm]# for i in $(ls | grep 'db.');do mv $i $i.bak;done[ro...原创 2020-01-10 11:33:15 · 185 阅读 · 0 评论