会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Simple.Smile
Mr.zf
github:https://github.com/zhangfulv
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
linux
1
2
下一页
解决CentOS 7.x虚拟机无法上网的问题
摘要:参考地址:https://blog.csdn.net/weixin_43317914/article/details/124770393 1.关闭虚拟机 2.打开cmd,查看本机dns 3.打开虚拟机工具栏 编辑->虚拟网络编辑器 4.查看虚拟机默认网关 5.启动centos,进入 cd /etc/
阅读全文
posted @
2022-07-19 14:53
SimpleSmile
阅读(404)
评论(0)
推荐(0)
vi 关闭自动缩进
摘要:如果在.vimrc中设置了自动缩进set autoindent,那么在插入模式下粘贴代码时,vim会自动为代码缩进,导致格式混乱。在/etc/.vimrc中文件将set autoindent进行注释。 如果在.vimrc中设置了自动缩进set autoindent,那么在插入模式下粘贴代码时,vim
阅读全文
posted @
2021-07-27 14:50
SimpleSmile
阅读(945)
评论(0)
推荐(0)
centos7 systemctl启动方式添加nginx.service服务
摘要:进入到 /usr/lib/systemd/system 目录下,编辑文件 nginx.service 1.cd /usr/lib/systemd/system/ 2.vi nginx.service 3. [Unit] Description=The nginx HTTP and reverse p
阅读全文
posted @
2021-04-01 18:35
SimpleSmile
阅读(1217)
评论(0)
推荐(0)
ubuntu 破解navicat15
摘要:参考:https://gitee.com/yangzhuoming/navicat-keygen/tree/linux 环境:ubuntu 20 1. sudo apt-get install libcapstone-dev 2. sudo apt-get install cmake 3. git
阅读全文
posted @
2021-03-02 18:12
SimpleSmile
阅读(2564)
评论(0)
推荐(0)
centos修改用户用户组
摘要:chown 用户:用户组 ./*(目录) 遇见有的基础用户权限小于root的,可以将文件用户和用户组改为普通用户.
阅读全文
posted @
2021-02-22 10:10
SimpleSmile
阅读(2177)
评论(0)
推荐(0)
centos7 通过shell切换root用户
摘要:1.yum install expect 需要使用这个命令 2.编写 shell脚本 vi test.sh #!/bin/sh echo 'su user[root]!' expect -c " spawn su - root expect \":\" send \"your password\r\
阅读全文
posted @
2021-02-05 13:26
SimpleSmile
阅读(1585)
评论(0)
推荐(0)
linux shell定时任务
摘要:1.用到crontab,需要初始化命令包 yum install vixie-cron yum install crontabs 2.启动服务 systemctl start crond.service 3.编写shell文件 #/bin/sh echo "test" >> /home/app/lo
阅读全文
posted @
2021-02-01 09:59
SimpleSmile
阅读(487)
评论(0)
推荐(0)
升级Openssl 1.1.1i
摘要:环境:centos 7 由于OpenSSL 拒绝服务漏洞(CVE-2020-1971) 需要将openssl进行升级 参考网站:https://jingyan.baidu.com/article/08b6a5916ecc5214a9092244.html 1.准备rpm包,从官网下载:http://
阅读全文
posted @
2021-01-12 08:50
SimpleSmile
阅读(2629)
评论(0)
推荐(0)
关于rpm安装包时,如何覆盖现有包
摘要:rpm -Uvh xxx.npm --nodeps --force 加上后面两句,可以覆盖当前版本,老换新也可以。 参考文档:https://www.cnblogs.com/ming-4/p/11700663.html
阅读全文
posted @
2021-01-11 16:12
SimpleSmile
阅读(2060)
评论(0)
推荐(0)
linux 禁用scp
摘要:1.系统环境:CentOS Linux release 7.7.1908 (Core) 2.ssh 版本:OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 3.禁止scp 3.1 rpm -qa|grep openssh-* 3.2 yum remove
阅读全文
posted @
2021-01-11 11:50
SimpleSmile
阅读(14918)
评论(2)
推荐(0)
关于github的一些资源无法下载处理
摘要:1.打开浏览器:https://www.ipaddress.com/ 2.输入下载域名 3.将域名解析的ip地址,写入host文件中 C://windows//system32/drive/etc/host ip地址 域名 保存 这样就可以下载资源了。
阅读全文
posted @
2021-01-04 16:39
SimpleSmile
阅读(424)
评论(0)
推荐(0)
find命令部分用法
摘要:1.find命令将查找的内容复制到新的目录中 find ./ -name "source*" -type f -exec cp {} /home/test \; 2.find命令将查找的内容进行统计总数 find /home/wsp_images_test/imgtest/ -name "sourc
阅读全文
posted @
2020-11-27 16:02
SimpleSmile
阅读(169)
评论(0)
推荐(0)
挂载盘符,linux下导出图片,windows下无法打开bug
摘要:原因是Linux 下 图片自动下载文件名带有特殊符号,在windows下是不支持的!!!!!!!! 多么痛的领悟~~~~~~~~~~~~~~~~~
阅读全文
posted @
2020-11-25 15:12
SimpleSmile
阅读(198)
评论(0)
推荐(0)
虚拟机docker开启服务,本地无法进行访问
摘要:系统:centos 7 1.首先排除 防火墙 firewall-cmd --state 查看防火墙状态 2.ip被禁用了 2.1 sysctl net.ipv4.ip_forward 如果显示 0 则的确是被禁用了。 2.2 echo 1 > /proc/sys/net/ipv4/ip_forwar
阅读全文
posted @
2020-11-24 21:58
SimpleSmile
阅读(1541)
评论(0)
推荐(0)
make编译提示:make cc Command not found 解决办法
摘要:yum install gcc 转载自:https://www.fujieace.com/linux/make-cc.html
阅读全文
posted @
2020-11-24 14:14
SimpleSmile
阅读(3407)
评论(0)
推荐(0)
yum -y install git 无法安装...提示There are no enabled repos.
摘要:系统 : centos 7.9.2009 1.wget http://mirrors.163.com/centos/7/os/x86_64/Packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm (有可能根据不同时间又不一样的名称,根据cen
阅读全文
posted @
2020-11-24 14:09
SimpleSmile
阅读(1003)
评论(0)
推荐(0)
linux 安装mysql
摘要:操作系统:centos7 mysql版本: mysql-8.0.16-el7-x86_64.tar.gz 配置文件: my.cnf Mysql 8.0.5 提示 consider upgrading MySQL client 解决方法 USE mysql; ALTER USER 'root'@'lo
阅读全文
posted @
2020-11-24 11:16
SimpleSmile
阅读(79)
评论(0)
推荐(0)
linux 配置环境变量
摘要:1. vi /etc/profile 2. export JAVA_HOME=/usr/java8.0 (其它环境变量以此类推) export PATH=$JAVA_HOME/bin:$PATH 3.source /etc/profile 4.java -version 进行测试。。。
阅读全文
posted @
2020-11-24 10:43
SimpleSmile
阅读(106)
评论(0)
推荐(0)
linux tar 压缩 解压常用命令
摘要:tar -zxvf + 文件地址 解压命令 tar -zcvf 压缩后的文件命名 + 文件目录/文件地址 压缩命令
阅读全文
posted @
2020-11-24 10:33
SimpleSmile
阅读(152)
评论(0)
推荐(0)
linux 挂载windows分区的移动硬盘
摘要:系统:centos 7.8.2003 原因:由于windows 文件格式是ntfs linux是fat32的所以无法直接挂载 1.下载插件 yum search ntfs 查询当前版本有哪些ntfs插件 2.安装ntfs插件 yum install ntfs-3g 3.mkdir /mnt/winD
阅读全文
posted @
2020-11-24 10:23
SimpleSmile
阅读(527)
评论(0)
推荐(0)
1
2
下一页
公告