我试图解析一些 nginx 配置
? tree sites-enabled/ sites-available/
sites-enabled/
??? bank.cwrcoding.com.conf
??? calendar.cwrcoding.com.conf
??? cloud.cwrcoding.com.conf
??? cwrcoding.com.conf
??? drive.cwrcoding.com.conf
??? groups.cwrcoding.com.conf
??? mail.cwrcoding.com.conf
??? sites.cwrcoding.com.conf
??? studentenverwaltung.cwrcoding.com.conf
??? wekan.cwrcoding.com.conf
??? www.cwrcoding.com.conf
sites-available/
??? bank.cwrcoding.com.conf
??? calendar.cwrcoding.com.conf
??? cloud.cwrcoding.com.conf
??? cwrcoding.com.conf
??? drive.cwrcoding.com.conf
??? groups.cwrcoding.com.conf
??? mail.cwrcoding.com.conf
??? sites.cwrcoding.com.conf
??? studentenverwaltung.cwrcoding.com.conf
??? wekan.cwrcoding.com.conf
??? www.cwrcoding.com.conf
Run Code Online (Sandbox Code Playgroud)
sites-enabled/* 文件每个都包含一行:
include sites-availabe/cwrcoding.com.conf;
Run Code Online (Sandbox Code Playgroud)
当尝试遍历启用了站点的/* 文件、剪切它们并尝试将它们的内容作为文件读取时,我遇到了一些奇怪的错误,所以我尝试了一个简约的工作解决方案,并从那里开始工作,但是以下发生:
? for enabled in sites-enabled/*
> do
> echo "$(cat "$enabled") |"
> echo ==========
> done
include sites-available/bank.cwrcoding.com.conf; |
========== …
Run Code Online (Sandbox Code Playgroud) 例如,假设我想运行命令 ll:
我的输出看起来像这样:
josh@zeitgeist ~ ll
total 41148
drwxr-xr-x 42 josh josh 4096 Aug 4 22:52 ./
drwxr-xr-x 4 root root 4096 Jul 9 21:18 ../
-rw-rw-r-- 1 josh josh 3523718 Jul 11 00:17 2017-07-11-001710_3840x2160_scrot.png
Run Code Online (Sandbox Code Playgroud)
但我希望它看起来像这样:
josh@zeitgeist ~ ll
total 41148
drwxr-xr-x 42 josh josh 4096 Aug 4 22:52 ./
drwxr-xr-x 4 root root 4096 Jul 9 21:18 ../
-rw-rw-r-- 1 josh josh 3523718 Jul 11 00:17 2017-07-11- 001710_3840x2160_scrot.png
Run Code Online (Sandbox Code Playgroud)
我已经知道使用 PS1='XXX' 来更改提示;有没有办法为每个命令更改显示的每一行输出,特别是在终端中(不更改输出并将其放入文件中)?
我想这样做是为了让我的终端左侧有一行字符缩进。我目前正在创建一个受科幻启发的桌面,我正在做的一件事是通过使用终端背景图像在我的无标题、无边界 urxvt 终端窗口周围创建一个独特的、不规则的边框。唯一的问题是我无法弄清楚如何在所有输出的开头添加间距,因为输出拥抱窗口的左边缘,它覆盖了我想要可见的背景的帕雷特。我尝试使用 URxvt internalBorder 和 …
我正在尝试在本地开发中测试 phpmyfaq,但遇到此错误:
The following extensions are missing! Please enable the PHP extensions(s) in php.ini : ext/zip
Run Code Online (Sandbox Code Playgroud)
我在命令行上运行 php -m ,但没有看到任何 zip 。我试过 :yum install php70-php-pcel-zip.x86_64
但它仍然没有出现在php -m
. 我在 VMware 播放器上运行 Centos7,php 版本 7.0.26