随笔分类 -  Linux

摘要:centos虚拟机无法被宿主机访问web服务 1、现象 在虚拟机中可以访问自己的web服务,IP是192.168.40.129 在宿主机却不可以 2、解决办法 2.1、关闭防火墙即可 sudo systemctl stop firewalld 关于防火墙开关可参考 https://www.cnblo 阅读全文
posted @ 2022-05-31 17:46 南风丶轻语 阅读(372) 评论(0) 推荐(0) 编辑
摘要:Linux下解压zip文件 0、说明 zip名称为myzip.zip,里面有三个文件 1、解压到当前目录 unzip myzip.zip 2、解压到指定目录 -d参数 unzip myzip.zip -d /home/tmp_1/aaa/bbb/ 3、只查看不解压 -l参数 unzip -l myz 阅读全文
posted @ 2022-05-27 14:10 南风丶轻语 阅读(1897) 评论(0) 推荐(0) 编辑
摘要:centos查看和修改防火墙状态 1、查看状态 sudo systemctl status firewalld 2、关闭防火墙 sudo systemctl stop firewalld 3、启动防火墙 sudo systemctl start firewalld 4、开机禁止启动防火墙 sudo 阅读全文
posted @ 2022-05-23 10:18 南风丶轻语 阅读(186) 评论(0) 推荐(0) 编辑
摘要:1、转换单个文件 dos2unix filename 2、转换当前目录下所有文件 find ./ -name "*" | xargs dos2unix 参考链接 https://www.jianshu.com/p/d2e96b2ccab9 阅读全文
posted @ 2021-05-26 15:47 南风丶轻语 阅读(987) 评论(0) 推荐(0) 编辑
摘要:1.安装cmake指令 参考链接: https://www.cnblogs.com/rainbow-tan/p/14693323.html 2.下载opencv压缩包 链接:https://opencv.org/releases/ 3.解压 unzip opencv-4.5.2.zip 4.进入解压 阅读全文
posted @ 2021-04-23 16:23 南风丶轻语 阅读(1551) 评论(0) 推荐(0) 编辑
摘要:1.下载压缩包 网址:https://cmake.org/download/ 2.解压 tar -zxv -f cmake-3.20.1.tar.gz 3. 进入解压后的目录 cd cmake-3.20.1 4. 执行bootstrap ./bootstrap 5.编译 make 6.安装 make 阅读全文
posted @ 2021-04-23 13:09 南风丶轻语 阅读(3553) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://www.jianshu.com/p/42d1c9fb538c 1、系统环境 LSB是Linux Standard Base的缩写,lsb_release命令用来显示LSB和特定版本的相关信息。 root@ubuntu:~$ lsb_release -a No LSB mo 阅读全文
posted @ 2021-01-26 11:07 南风丶轻语 阅读(1766) 评论(0) 推荐(0) 编辑
摘要:制作一个基于ubuntu的docker,带有nginx和监控流量插件(nginx-module-vts) 1、下载ubuntu16.04模板压缩包 链接:https://download.openvz.org/template/precreated/ 文件名:ubuntu-16.04-x86_64. 阅读全文
posted @ 2021-01-07 17:12 南风丶轻语 阅读(2087) 评论(0) 推荐(0) 编辑
摘要:1、查看当前的网卡信息 ifconfig 可以看出是双网卡,一个eth0(大网),一个eth1(小网) 2、修改(以修改小网ip eth1[192.169.3.13]为例) ①文件位置 /etc/netplan/01-netcfg.yaml 文件名可能有所不同,但是文件夹应该是相同的 /etc/ne 阅读全文
posted @ 2020-12-12 13:18 南风丶轻语 阅读(309) 评论(0) 推荐(0) 编辑
摘要:备注: ①此次试验有4台机器,大网IP分别为10.191.6.36、10.191.6.35、10.191.6.34、10.190.4.83 ②打算在10.191.6.36安装DHCP,其他几个机器为测试机器 ③每个机器都有双网卡 1、安装DHCP sudo apt-get install isc-d 阅读全文
posted @ 2020-12-09 15:18 南风丶轻语 阅读(3717) 评论(0) 推荐(0) 编辑
摘要:1、在线安装依赖 参考:https://www.cnblogs.com/EasonJim/p/7806879.html 安装gcc g++的依赖库 sudo apt-get install build-essential sudo apt-get install libtool 安装pcre依赖库( 阅读全文
posted @ 2020-12-03 16:00 南风丶轻语 阅读(847) 评论(0) 推荐(0) 编辑
摘要:在线安装就不记录了,就几句命令,可恨的是不让在线安装,因此记录一下离线安装。 原打算用rpm -ivh xxx.rpm安装方式,结果也过不去,度娘说是Ubuntu的软件包为deb,有的安装不了,因此直接下载deb文件安装。 1、下载相关包 网址:https://pkgs.org/download/t 阅读全文
posted @ 2020-12-02 17:28 南风丶轻语 阅读(1438) 评论(0) 推荐(0) 编辑
摘要:1、找到文件 路径:/etc/ssh/sshd_config 先备份一下 cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak 2、添加一行 PermitRootLogin yes 2.1、添加操作 vim /etc/ssh/sshd_config 按下i 阅读全文
posted @ 2020-11-27 14:57 南风丶轻语 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1.安装包下载 https://pypi.org/project/zxing/#files(zxing) https://www.python.org/downloads/release/python-371/(python) 2.安装python3.7.1 tar xvf Python-3.7.1 阅读全文
posted @ 2020-10-21 16:29 南风丶轻语 阅读(677) 评论(0) 推荐(0) 编辑

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