Debian 11 安装完后,通过终端执行 sudo 命令,提示错误:
xxx 不在 sudoers 文件中,此事将被报告。
解决办法:
终端输入 su 回车,输入 root 密码,回车,切换到 root 用户
打开 sudoers 文件:vi /etc/sudoers
找到 # Allow members of group sudo to execute any command,在 %sudo ALL=(ALL:ALL) ALL 下面添加 xxx ALL=(ALL:ALL) ALL,xxx 为前面无法执行 sudo 命令的用户名
vi 给 sudoers 添加内容方法:...
栏目操作系统下共有文章 33 篇。
Apache,Nginx 设置 typecho 伪静态去除 index.php

Apache 下设置 typecho 伪静态
设置 - 永久链接 - 启用地址重写功能
网站根目录 创建 .htaccess 文件,粘贴
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
Nginx ...
欢迎使用 Typecho

如果您看到这篇文章,表示您的 blog 已经安装成功.
最新评论