nginx快速复制软连接

This commit is contained in:
lsy2246 2024-06-11 23:28:58 +08:00
parent 16ffcccddf
commit eb8e9c0b9a

6
shell/code/ng_ln.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
for file in /etc/nginx/sites-available/*;do
base=$(basename "$file")
ln -s "$file" "/etc/nginx/sites-enabled"
done