修改/etc/proftpd.conf ScoreboardFile /var/run/proftpd/proftpd.pid 修改为 ScoreboardFile /var/run/proftpd.pid 与/etc/newsyslog.conf中的/var/run/proftpd.pid保持一致。
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的系统更新
Ubuntu 系统在用户登录时会显示欢迎信息。有时用户会看到「有 xx 个软件包可以更新,其中有 xx 个安全更新」。 Welcome to Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-48-generic x86_64) * Documentation: https://help.ubuntu.com/ System information as of Sat Jun 27 01:12:04 UTC 2015 System load: 0.0 Processes: 98
frp内网穿透中文文档
frp 是一个可用于内网穿透的高性能的反向代理应用,支持 tcp, udp, http, https 协议。 项目地址:https://github.com/fatedier/frp 官方文档:https://github.com/fatedier/frp/blob/master/README.md 中文文档:https://github.com/fatedier/frp/blob/master/README_zh.md 目录 frp 的作用 开发状态 架构 使用示例 通
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重启。
Debian8下安装PHP7最新稳定版本
PHP7的性能据zend开发团队测试大部分情况下性能均超过HHVM,其中性能更是5.6的2倍还多,这对PHP性能来说,是一个质的飞跃,从5.x直接跨升到7.x也见证了这个性能的飞跃。 Debian8 默认软件仓库只提供php5,对于需要使用php7的情况,需要添加第3方扩展源进行安装。 想必使用 Ubuntu PPA 第三方源的童鞋都知道 ppa:ondrej
运营商定制的华为光猫Telnet命令恢复华为界面
首先Telnet连接光猫 Welcome Visiting Huawei Home Gateway Copyright by Huawei Technologies Co., Ltd. Login:root Password: User name or password is wrong, please try it again! Login:root Password:admin WAP>su ERROR::Command is not existed WAP>ls ERROR::Command is not existed WAP>shell Busy
Debian8中修改Varnish默认端口为80
Varnish 的默认端口是 6081,而不是 80 端口。所以还得改改, 一、修改 /lib/systemd/system/varnish.service文件 ExecStart=/usr/sbin/varnishd -a :6081 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m 二、修改 /etc/default/varnish 文件 DAEMON_OPTS=”-a :6081 \ -T
允许Linux用户ftp登录Proftpd但禁止Shell登录
安装proftpd就很简单的了 在debian/ubuntu下,apt-get install proftpd就可以了 然后就是新建账户 proftpd的账户和系统账户是一样的, 所以必须先新建账户,当然也可以用你系统的账户,但是有很大安全隐患的 修改/etc/proftpd/proftpd.conf RequireValidShell off 因为ftp用户都没有shell,所以这里必须允许没有sh
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)。下面就用这个源来安装自己想要的PH