初始设置:启用root用户帐户 The root Account in Ubuntu is disabled by default because his password is not set. To use root priviledges, basically it's better to u ...
分类:
系统相关 时间:
2020-07-11 22:45:22
阅读次数:
84
systemctl list-unit-files会列出开启的和未开启的:使用grep过滤一下开启的grep enabledgrep enabled然后使用systemctl status openresty.service1查看这个.service文件的路径,及内容。禁用开机启动:sudo sys... ...
分类:
系统相关 时间:
2020-07-11 17:38:57
阅读次数:
223
引子 虽然现在docker、k8s大行其道,我们的世界似乎已经被容器主宰,但是有一些程序还是不适合放到docker里面跑,比如node-exporter、自己写的某些程序,但是这些程序又是必须的, 如果每次重启机器都需要自己去启动一次那真的是太累了,所以这些程序需要自启动。 操作步骤 检查系统目录/ ...
分类:
系统相关 时间:
2020-07-11 11:13:08
阅读次数:
104
apt-cache和apt-get是apt包的管理工具, 他们根据/etc/apt/sources.list里的软件源地址列表搜索目标软件、并通过维护本地软件包列表来安装和卸载软件。 Ubuntu : apt-get 命令 Ubuntu中apt与apt-get命令的区别 一.查看本机是否安装软件 w ...
分类:
系统相关 时间:
2020-07-11 09:46:35
阅读次数:
73
一天心血来潮突然想装个Ubuntu系统玩玩,结果一顿操作后发现不是和安装windows系统那么简单,根据各方尝试(下各种制作工具啊啥的)终于... 先总结一下需要的东西: 一个内存足够U盘,ios镜像,制作U盘启动盘工具,FbinstTool 关键部分请跳到 正题 部分阅读 首先你需要有linux的 ...
分类:
系统相关 时间:
2020-07-10 18:49:43
阅读次数:
125
安装EPEL Release,因为安装需要使用其他的repo源,所以需要EPEL支持: yum install -y epel-release #如果出现缺少Code提示,可以: sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 #安装完成之 ...
分类:
其他好文 时间:
2020-07-10 17:10:23
阅读次数:
69
开启 ip 代理转发 临时开启 ip 代理转发 # 执行该命令后立即生效,但是重启后会失效 echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward 永久开启 ip 代理转发 # 为适配不同系统,先删除后添加 sudo sed -i '/net.ipv4.ip_ ...
分类:
系统相关 时间:
2020-07-10 13:02:43
阅读次数:
102
1、设置IP地址、网关nano/etc/network/interfaces/etc/network/interfacesbak#备份原有配置文件nano/etc/network/interfaces#编辑网网卡配置文件autoloifaceloinetloopbackautoeth0#开机自动连接网络ifaceeth0inetstatic#static表示使用固定ip,dhcp表述使用动态ipa
分类:
系统相关 时间:
2020-07-10 09:21:22
阅读次数:
79
因为要接收反馈结果,cmd命令可以这样写 rtsp://user:password@ip:port -ss 00:00:01 -vframes 1 -f image2 -vcodec png image.png && echo succeeded ||echo failed 当ffmpeg执行正确时 ...
分类:
其他好文 时间:
2020-07-10 00:08:12
阅读次数:
95
int img_savePicture(AVFrame *pFrame, char *out_filename) {//编码保存图片 int width = pFrame->width; int height = pFrame->height; AVCodecContext *pCodeCtx = ...
分类:
其他好文 时间:
2020-07-09 19:18:24
阅读次数:
90