walikrence Blog

翻过那座山,人们就会听到你的故事

lua与C++互相调用

lua安装 官网下载lua lua调用C++ C++调用lua

ubuntu根据进程名结束进程

ubuntu根据进程名结束进程 系统: ubuntu-18.04.3-live-server-amd64 今天需要自动化启动结束进程,这当然少不了shell文件 关闭redis ps aux|grep 'redis'|awk '{print $2}'|xargs kill -9

虚拟机添加新磁盘

虚拟机添加新磁盘 系统: ubuntu-18.04.3-live-server-amd64 今天虚拟机磁盘不够用了,要再加一个磁盘 总流程 通过lvm添加磁盘大致流程是   接上磁盘->磁盘分区->pvcreate->vgextend->lvextend->resize2fs 磁盘分区 pvcreate pvcreate /dev/sdb1 vg...

vg移除丢失的pv

vg移除丢失的pv 系统: ubuntu-18.04.3-live-server-amd64 今天虚拟机添加硬盘的时候遇到点问题,pv创建后加入了vg,再把pv的磁盘重新格式化,但是vgdisplay显示pv依然存在 移除已经miss的pv vgreduce --removemissing ubuntu-vg ubuntu-vg是我的vg名称 vgdisplay

ubuntu设置允许root远程登录

ubuntu设置允许root远程登录 系统: ubuntu-18.04.3-live-server-amd64 vim /etc/ssh/sshd_config 在末尾添加 PermitRootLogin yes # $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ # This is the sshd serv...

a start job is running for wait for network to be configured

a start job is running for wait for network to be configured 系统: ubuntu-18.04.3-live-server-amd64 a start job is running for wait for network to be configured 今天虚拟机开机遇到一个问题,当我拔掉网卡网线后,开机就出现一个读条 ...

netplan配置双网卡

netplan配置双网卡 系统: ubuntu-18.04.3-live-server-amd64 今天一台虚拟机要两个网卡,一个连接内网,一个连接外网,方便固定内网ip 修改 /etc/netplan/50-cloud-init.yaml vim /etc/netplan/50-cloud-init.yaml network: network: ether...

netplan配置ip地址

netplan配置ip地址 系统: ubuntu-18.04.3-live-server-amd64 修改 /etc/netplan/50-cloud-init.yaml vim /etc/netplan/50-cloud-init.yaml network: ethernets: enp0s3: addresses: ...

基于docker自建docker-registry前端

registry前端 系统: ubuntu-18.04.3-live-server-amd64 下载nexus镜像 docker pull registry:2.7 docker pull konradkleine/docker-registry-frontend:v2 编写docker-compose.yml docker-compose.yml version: '3' servi...

基于docker搭建mysql

基于docker搭建mysql 下载镜像 docker pull mysql:5.7 编写docker-compose.yml version: '3' services: db: image: mysql:5.7 command: --default-authentication-plugin=mysql_native_password restart...