Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个运行 nginx 的 ubuntu 服务器。我只是尝试启用虚拟主机配置,发现我没有 a2ensite 命令。我用 find 和 whereis 搜索,看起来我只是没有它。我意识到我可以将自己的符号链接从启用站点手动滚动到可用站点,但我宁愿使用 a2ensite/a2dissite 来管理它。我该如何安装它?
谢谢-max
a2ensite适用于 Apache2,因此a2. 我相信您可以ln -s根据您提供的参数制作一个模仿其功能的脚本,它将在sites-available目录中查找然后调用ln。
a2ensite
a2
ln -s
sites-available
ln