随笔分类 -  Linux

摘要:iptables 防火墙 资料:https://www.cnblogs.com/kevingrace/p/6265113.html 安装 iptables # 检查状态 systemctl status iptables # 停止firewall systemctl stop iptables # 阅读全文
posted @ 2021-12-03 20:42 翠微 编辑
摘要:systemctl 是CentOS7的服务管理工具中主要的工具,它融合之前 service 和 chkconfig 的功能于一体。service 管理服务,chkconfig 管理启动项 http://t.zoukankan.com/liuyansheng-p-6113646.html system 阅读全文
posted @ 2021-08-14 10:34 翠微 编辑
摘要:创建软链目录 /ycx 指向源目录 /data/ycx。/目录下要没有ycx目录,然后在/目录下执行命令:ln -s 源目录 软链目录 ln -s /data/ycx /ycx ll 显示 ycx -> /data/ycx 注意:先配置好防火墙,或者试验阶段直接停用防火墙 # 停用防火墙system 阅读全文
posted @ 2021-08-12 23:52 翠微 编辑
摘要:创建软链目录 /ycx 指向源目录 /data/ycx。/目录下要没有ycx目录,然后在/目录下执行命令:ln -s 源目录 软链目录 ln -s /data/ycx /ycx ll 显示 ycx -> /data/ycx 查看当前未挂载的硬盘 fdisk -l 创建硬盘分区 m :显示菜单和帮助信 阅读全文
posted @ 2021-08-12 11:36 翠微 编辑
摘要:查看Linux发行版,确保是CentOS7 适用于所有的Linux发行版 cat /etc/issue uname -a 或者 uname -r cat /proc/version 只适合Redhat系 cat /etc/redhat-release 安装编译工具 yum -y install gc 阅读全文
posted @ 2021-08-10 10:54 翠微 编辑
摘要:#此命令也适用于所有的Linux发行版 cat /etc/issue cat /etc/system-release cat /etc/os-release cat /proc/version uname -a uname -r #只适合Redhat系 cat /etc/redhat-release 阅读全文
posted @ 2021-08-10 09:32 翠微 编辑
摘要:CentOS虚拟机断电或强制关机,再开机出现问题:Entering emergency mode. Exit the shell to continue. 查看日志journalctl -n 50 错误原因: failed to mount /sysroot.Dependency failed fo 阅读全文
posted @ 2020-11-26 09:54 翠微 编辑
摘要:【Ubuntu 18.04.03_64】系统配置 1、常用设置 1、常用设置 修改 vi 上下左右 是字母的问题 export TERM=linux 阅读全文
posted @ 2020-05-10 07:54 翠微 编辑
摘要:【CentOS7】开发环境配置OpenJDK 目录 1、安装openjdk 2、配置域名 3、安装python 4、安装maven 1、安装openjdk 下载地址:http://openjdk.java.net/install/ 先查看系统有没有自带的openjdk rpm -qa |grep j 阅读全文
posted @ 2019-07-24 16:43 翠微 编辑
摘要:【CentOS7】常用命令 转载:https://www.cnblogs.com/yangchongxing/p/10646640.html 目录 1、shutdown 2、网络 3、修改密码 4、rz 上传和 sz 下载 5、free 查看内存 6、压缩 zip 和 解压 unzip 7、压缩 t 阅读全文
posted @ 2019-04-03 08:51 翠微 编辑
摘要:【CentOS7】curl命令 转载: 参考 https://www.thegeekstuff.com/2012/04/curl-examples/ http://www.cnblogs.com/gbyukg/p/3326825.html http://www.ruanyifeng.com/blog 阅读全文
posted @ 2019-04-02 22:45 翠微 编辑
摘要:【CentOS7】修改yum源 转载:https://www.cnblogs.com/yangchongxing/p/10645944.html 1、备份源 # mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.rep 阅读全文
posted @ 2019-04-02 22:38 翠微 编辑
摘要:【CentOS7】设置静态IP地址 转载:https://www.cnblogs.com/yangchongxing/p/10645871.html 图像化修改 nmtui 查看当前网卡名称 # ifconfig 网卡名 ens33 # cd /etc/sysconfig/network-scrip 阅读全文
posted @ 2019-04-02 22:24 翠微 编辑
摘要:【Ubuntu 16.04.2_64】安装配置SVN 转载:https://www.cnblogs.com/yangchongxing/p/10190549.html 检查是否已安装svn 若已安装,运行下面的命令可卸载 1、安装SVN 更新 安装 2、配置SVN 创建svn根文件夹 创建repos 阅读全文
posted @ 2018-12-28 14:52 翠微 编辑
摘要:Ubuntu 16.04.2_64系统配置 转载:http://www.cnblogs.com/yangchongxing/p/9049897.html Ubuntu Server服务指南:https://help.ubuntu.com/16.04/serverguide/index.html 准备 阅读全文
posted @ 2018-05-17 10:55 翠微 编辑

点击右上角即可分享
微信分享提示