分类 操作系统 下的文章

目前好多源都不行了,记录一下可以用的源,找了好久

echo "deb https://debian.octopuce.fr/snapshots/sury-php/20220630/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
wget -qO - https://debian.octopuce.fr/sury-php/apt.gpg | sudo apt-key add -
apt update

 

生成缩略是个消耗cpu的操作,如果访问量比较大的站点,最好考虑使用程序生成缩略图到硬盘上,或者在前端加上cache或者使用CDN。所以下面我们配置将生成的缩略图保存到硬盘供下次访问

- 阅读剩余部分 -

linux复制指定目录下的全部文件到另一个目录中
复制指定目录下的全部文件到另一个目录中
文件及目录的复制是经常要用到的。linux下进行复制的命令为cp。
假设复制源目录 为 dir1 ,目标目录为dir2。怎样才能将dir1下所有文件复制到dir2下了
如果dir2目录不存在,则可以直接使用
cp -r dir1 dir2
即可。

- 阅读剩余部分 -

    dpkg: warning: files list file for package 'libquadmath0:amd64' missing; assuming package has no files currently installed  
    (Reading database ... 79 files and directories currently installed.)  
    Preparing to unpack .../dovecot-imapd_1%3a2.1.7-7+deb7u1_amd64.deb ...  
    Unpacking dovecot-imapd (1:2.1.7-7+deb7u1) ...  
    Selecting previously unselected package dovecot-lmtpd.  
    Preparing to unpack .../dovecot-lmtpd_1%3a2.1.7-7+deb7u1_amd64.deb ...  
    Unpacking dovecot-lmtpd (1:2.1.7-7+deb7u1) ...  
    Selecting previously unselected package dovecot-pop3d.  
    Preparing to unpack .../dovecot-pop3d_1%3a2.1.7-7+deb7u1_amd64.deb ...  
    Unpacking dovecot-pop3d (1:2.1.7-7+deb7u1) ...  
    Setting up dovecot-imapd (1:2.1.7-7+deb7u1) ...  
    dpkg: error processing package dovecot-imapd (--configure):  
     subprocess installed post-installation script returned error exit status 10  
    Setting up dovecot-lmtpd (1:2.1.7-7+deb7u1) ...  
    dpkg: error processing package dovecot-lmtpd (--configure):  
     subprocess installed post-installation script returned error exit status 10  
    Setting up dovecot-pop3d (1:2.1.7-7+deb7u1) ...  
    dpkg: error processing package dovecot-pop3d (--configure):  
     subprocess installed post-installation script returned error exit status 10  
    Errors were encountered while processing:  
     dovecot-imapd  
     dovecot-lmtpd  
     <span style="color:#ff6666;">dovecot-pop3d  
    E: Sub-process /usr/bin/dpkg returned an error code (1)</span>  

- 阅读剩余部分 -

如今我们仅仅用Linux VPS、服务器用来建站或者普通的软件环境,可能还不至于需要用到Node.js软件环境。今天遇到一个网友需要在Debian8环境中运行某个软件需要用到Node.js,但是直接默认apt-get的版本较低,需要用到较新的版本。

在这篇文章中就记录将这个网友当前的Debian8服务器环境配置Node.js最新版本,前一段时间记得在CentOS安装过5.x版本,但不清楚目前最新版本的Node.js到哪里了,那就去官方看看最新版本。

- 阅读剩余部分 -

NFS是我们常用的文件共享协议,在一些系统中,这个协议的设置也相对比较复杂。那么今天我们就来讲解一下Debian NFS的设置内容。希望对大家有所帮助。首先看看Debian下安装NFS服务器的步骤。

安装Debian NFS服务器端:   

# aptitude install nfs-common nfs-kernel-server portmap

- 阅读剩余部分 -