Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 關鍵配置文件速查手冊

編輯:Linux 教學

啟動與引導

功能文件路徑
LILO 配置/etc/lilo.conf
GRUB 配置/boot/grub/menu.lst
主啟動控制/etc/inittab
SysV 啟動腳本/etc/init.d/、/etc/rc.d/init.d/
啟動腳本鏈接/etc/rc.d/rc?.d/、/etc/rc?.d/
本地啟動腳本/etc/rc.d/rc.local、/etc/init.d/boot.local

網絡配置

功能文件/目錄
網卡啟動腳本/sbin/ifup
網絡配置數據/etc/network/、/etc/sysconfig/network-scripts/
DNS 解析/etc/resolv.conf
DHCP 客戶端/etc/dhclient.conf

超級服務與訪問控制

服務配置文件
inetd/etc/inetd.conf
TCP Wrappers/etc/hosts.allow、/etc/hosts.deny
xinetd/etc/xinetd.conf、/etc/xinetd.d/

硬件與設備

  • 內核模塊:/etc/modules.conf
  • 設備文件:/dev/
  • 硬件/驅動數據:/proc/
  • 掃描儀:/etc/sane.d/dll.conf、/etc/sane.d/<型號>

打印服務

系統本地配置遠程授權
BSD LPD / LPRng/etc/printcap/etc/hosts.lpd / /etc/lpd.perms
CUPS/etc/cups/cupsd.conf/etc/cups/cupsd.conf

文件系統

  • 掛載表:/etc/fstab
  • 軟驅掛載點:/floppy、/mnt/floppy、/media/floppy
  • 光驅掛載點:/cdrom、/mnt/cdrom、/media/cdrom

Shell 環境

類型系統級用戶級
登錄 Shell/etc/profile、/etc/profile.d/~/.profile
非登錄 Shell/etc/bashrc、/etc/bash.bashrc~/.bashrc

圖形界面 (X11)

  • 主配置:/etc/X11/XF86Config*
  • 字體服務:/etc/X11/fs/config
  • 字體目錄:/usr/X11R6/lib/X11/fonts/、/usr/share/fonts/

常見服務配置

服務主配置文件
Apache/etc/httpd/conf/httpd.conf
ProFTPd/etc/proftpd.conf
vsftpd/etc/vsftpd.conf
NFS 服務端/etc/exports
Samba/etc/samba/smb.conf
Sendmail/etc/mail/sendmail.cf
Postfix/etc/postfix/main.cf

使用建議

不同發行版路徑可能略有差異,建議結合 man 手冊或 find /etc -name \"*keyword*\" 確認具體位置。

Copyright © Windows教程網 All Rights Reserved