/etc/rc.d/netif restart && /etc/rc.d/routing restart
Category Archives: freebsd
CDP(cisco discovering protocol) on freebsd
pkg_add -r ladvd
или
cd /usr/ports/net/ladvd/
make install
vim /etc/rc.conf
ladvd_enable=”YES”
ladvd_flags=”-a”
/usr/local/etc/rc.d/ladvd start
freebsd update ports tree
portsnap fetch update
services management in freebsd
проверка на състоянието на услугата
BSD# service named status
named is running as pid 879.
спиране на услугата
BSD# service named stop
Stopping named.
стартиране
BSD# service named start
Starting named.
съответно ако искаме да рестартираме
BSD# service named restart
Stopping named.
Starting named.
SD# service –help
Illegal option —
Usage:
service -e
service [-v] -l | -r
service [-v] <rc.d script> start|stop|etc.
service -h
-e Show services that are enabled
-l List all scripts in /etc/rc.d and /usr/local/etc/rc.d
-r Show the results of boot time rcorder
-v Verbose
list all users in *nix systems
sed ‘s/([^:]*).*/1/’ /etc/passwd
ето и един много по-лесен начин 🙂
awk -F’:’ ‘{print $1}’ /etc/passwd
No such file or directory: Failed to enable the ‘httpready’ Accept Filter
зареждаме драйвера
kldload accf_http
BSD# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 55392.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.
добавяме го да се изпълнява при стартирането на системата
BSD# echo ‘accf_http_load=”YES”‘ >> /boot/loader.conf
hosts file location
restarting dovecot imap server in freebsd
sudo /usr/local/etc/rc.d/dovecot-initd.sh restart
restarting smbd in freebsd
sudo /usr/local/etc/rc.d/samba restart
sudoers in freebsd
cd /usr/ports/security/sudo
make install clean
/usr/local/etc/sudoers