标签归档:Ubuntu

There is no public key available for the following key IDs

今天在debian/ubuntu下运行apt update刷新更新源的时候却遇到 “There is no public key available for the following key IDs” 的问题,具体表现为以下错误提示: W:There is no public key available for the following key IDs: 3B4FE6ACC0B21F32, W:There is no public key available for the following key IDs: 3

ubuntu php 出现 Cannot find module (SNMPv2-TC) 等错误

在执行php -v 或者有时编译一个东西或输入某个命令的时候会出现: Cannot find module (MTA-MIB): At line 0 in (none) Cannot find module (NETWORK-SERVICES-MIB): At line 0 in (none) Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/UCD-DISKIO-MIB.txt Did not find ‘DisplayString

Ubuntu 14.04 禁用ipv6

如需禁用ipv6, 在/etc/sysctl.conf下加入以下内容: #disable IPv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 需要reboot重启。

Ubuntu 14.04 升级PHP 和 Apache

Ubuntu上官方的源,比如 Ubuntu14.04 默认源中的是 PHP5.6.x、Ubuntu16.04 默认源中的是 PHP7.0.x,那么如果想在 Ubuntu16.04 上安装 PHP7.1,PHP7.2,应该怎么办呢? 答案是通过第三方的源来安装,ppa:ondrej/php 是一个比较知名的PHP源(目前维护php5.6,php7.0,php7.1,php7.2)。下面就用这个源来安装自己想要的PHP版本

如何删除 Ubuntu上不再使用的旧内核

在Ubuntu上,有几个方法来升级内核。在Ubuntu桌面中,软件更新允许你每天检查并更新到最新的内核上。在Ubuntu服务器上,最为重要的安全更新项目之一就是 unattended-upgrades 软件包会自动更新内核。然而,你也可以手动用apt-get或者aptitude命令来更新。 随着时间的流逝,持续的内核更新会在系统中积聚大量的不再使用的

Ubuntu通过修改配置文件进行网络配置

Ubuntu系统进行网络配置涉及到几个配置文件 1./etc/network/interfaces 2./etc/resolv.conf 3./etc/resolvconf/resolv.conf.d/base 操纵步骤: 1.打开ubuntu的/etc/network/interfaces文件默认的内容如下: auto lo iface lo inet loopback 动态获取的配置方法: auto eth0 iface eth0 inet dhcp 静态分配的配置方法: a

Ubuntu关于tzselect的一个Bug—time zone files are not set up correctly

使用Ubuntu14.04 X64 server在使用tzselect更改时区的报错如下: $ tzselect /usr/bin/tzselect: line 171:/home/ubuntu/iso3166.tab: No such file or directory /usr/bin/tzselect: time zone files are not set up correctly 导致这个错误其实tzselect文件中有错误引起的 解决办法: vim /usr/bin/tzselect 将 ${TZDI

Ubuntu安装谷歌TCP单边加速BBR更有效利用服务器带宽

BBR 目的是要尽量跑满带宽, 并且尽量不要有排队的情况, 效果并不比速锐差 最新 4.9.0-rc8 内核已支持 tcp_bbr 下面简单讲述如何开启 已在Ubuntu14 下测试成功,记住,OpenVZ是不可以的。 用的是 ubuntu14,virmach的VPS,先看看内核:uname -a 下载新内核,注意这里是64位的,32位请安装32位内核 wget http://kernel.ubun