标签归档:Debian

Debian11使用su命令后command not found问题解决方法

在很多情况下,openssh是不允许root进行连接的,那么就需要用一个普通用户先登录,然后在用su命令来模拟root进行操作。 但是使用这个命令后,成功转为root用户后,很多命令无法找到,提示command not found,例如: hxs@Lenovo:~$ poweroff -bash: poweroff: command not found -bash: dpkg-reconfigure: command not fo

从Debian 10 升级到 Debian 11

Debian 11 (bullseye) 经过两年的等待终于正式发布稳定版本了,带来了很多更新的内核,更新的软件包以及其他新特性,具体可以从这里了解。 这里我在一台 VPS 上详细演示一下如何使用 apt 或者 apt-get 命令安全的将 Debian 10 (buster) 升级到 Debian 11 (bullseye)。如果你需要通过 CD-ROM/DVD-ROM、U 盘或者硬盘安装,

Debian10中PHPMyAdmin无法登陆MariaDB的解决方法

今天安装好Debian10后,又继续安装了Mariadb(Mysql)数据库。 但发现PHPMyAdmin登录时无法登录,只能在SSH中用Linux的root账户登录才可以。 百度后得知默认情况下, MariaDB root 用户使用 unix_socket 身份验证插件,该插件在调用 mysql 客户端工具时检查有效用户 ID 。 这意味着只有在 mysql 以系统 root 身份调用命

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

Debian8下安装PHP7最新稳定版本

PHP7的性能据zend开发团队测试大部分情况下性能均超过HHVM,其中性能更是5.6的2倍还多,这对PHP性能来说,是一个质的飞跃,从5.x直接跨升到7.x也见证了这个性能的飞跃。 Debian8 默认软件仓库只提供php5,对于需要使用php7的情况,需要添加第3方扩展源进行安装。 想必使用 Ubuntu PPA 第三方源的童鞋都知道 ppa:ondrej/p

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

Debian8中安装Nginx1.6.2并平滑升级到Tengine2.12

Tengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。Tengine的性能和稳定性已经在大型的网站如淘宝网,天猫商城等得到了很好的检验。它的最终目标是打造一个高效、稳定、安全、易用的Web平台。 一、查看nginx版本 nginx -v nginx: nginx version: nginx/1.6.

Setting up a Debian LLMP server

LLMP, Debian, lighttpd, xcache,… what is all that? While most of you might know a LAMP server (Linux, Apache, MySQL, PHP), little know a LLMP or LEMP server. The only difference between them is the software that is used to serve your webpages. LAMP uses Apache, LEMP uses Nginx and LLMP uses Ligh