การเข้าถึง
- เปิด browser ของคุณ:
http://<SERVER_IP>/ - ไดเร็กทอรีรากเว็บ (
index.html) ควรปรากฏ
ตรวจสอบเวอร์ชัน
ferron --version
ไฟล์และไดเรกทอรีที่สำคัญ
- ไฟล์การกำหนดค่า:
/etc/ferron.kdl - เว็บรูต:
/var/www/ferron - ไบนารี่:
/usr/sbin/ferron - เครื่องมือสร้างรหัสผ่าน:
/usr/sbin/ferron-passwd - เครื่องมือบีบอัดล่วงหน้า:
/usr/sbin/ferron-precompress - เครื่องมือแปลงการกำหนดค่า:
/usr/sbin/ferron-yaml2kdl - บันทึกการเข้าถึง:
/var/log/ferron/access.log - Error log:
ระเบียนข้อผิดพลาด:
/var/log/ferron/error.log
การตั้งค่า
ไฟล์การกำหนดค่าหลัก:
/etc/ferron.kdl
Ferron ใช้รูปแบบการกำหนดค่าที่ใช้ KDL การเปลี่ยนแปลงสามารถนำไปใช้โดยไม่มีเวลาหยุดทำงาน:
systemctl reload ferron
การจัดการบริการ
ควบคุมบริการ Ferron โดยใช้ systemd:
# Stop the Ferron service
systemctl stop ferron
# Restart the service
systemctl restart ferron
# Reload the configuration without restarting the service
systemctl reload ferron
# Check service status
systemctl status ferron
# View logs
journalctl -u ferron -f