今天升级了下PHP版本,然后在安装imagick拓展时报错: checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist checking Testing /usr/bin/MagickWand-config... Doesn't exist checking Testing /usr/sbin/bin/MagickWan…

2022年6月4日 0条评论 5113点热度 10人点赞 jlqwer 阅读全文

首先保证已经设置为开机自启: sudo systemctl enable ufw 在设置开机自启后还有问题那大概率可能为启动顺序问题,修改/lib/systemd/system/ufw.service文件,在[Unit]中加入After=netfilter-persistent.service即可。 [Unit] Description=Uncomplicated firewall Documentation=man:ufw(8) DefaultDependencies=no Before=network.targ…

2022年4月12日 1条评论 4768点热度 11人点赞 jlqwer 阅读全文

选择使用Ubuntu的一个重要原因是其包管理可直接安装的软件非常广泛,简直万物皆可apt(This APT has Super Cow Powers.?),但值得吐槽的是其软件版本较老,据说都是最稳定的版本(其实有好多BUG不及时修复),通过直接apt安装得到的nodejs 是“nodejs/bionic-updates 8.10.0~dfsg-2ubuntu0.4 i386” ,而官网最新版本(截止当前)是14.4.0 (包含 npm 6.14.5,apt中的版本不包括npm),在https://nodejs.o…

2020年6月27日 0条评论 6237点热度 24人点赞 jlqwer 阅读全文

ubuntu通过apt安装的apache2默认是mpm_prefork模式,想要切换到mpm_event模式,PHP支持库也要改变。 非root模式下注意加sudo 首先要关掉普通的php模块: a2dismod php7.2 apt-get remove libapache2-mod-php7.2 然后才可以关掉mpm_prefork: a2dismod mpm_prefork 然后启用mpm_event: a2enmod mpm_event 之后安装fpm(我这里是7.2): apt-get install p…

2019年8月15日 2条评论 8786点热度 24人点赞 jlqwer 阅读全文

certbot很早就支持申请泛域名证书了,不过总有其中有些坑。。。。。。 首先肯定是要把*.example.com 解析到你的IP的,不然百分百报错: Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challe…

2019年8月15日 0条评论 7006点热度 14人点赞 jlqwer 阅读全文

1.首先输入比较简单: import java.util.*; import java.io.*; public class Main{ public static void main(String[] args){ Scanner in1 = new Scanner(System.in); Scanner in2 = new Scanner(new BufferedInputStream(System.in)); } } in1和in2的方法差不多,就没什么好说的了;

2019年1月27日 1条评论 6904点热度 10人点赞 jlqwer 阅读全文
12