這篇文章主要為大家展示了“FreeBSD中的常用操作有哪些”,內容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領大家一起研究并學習一下“FreeBSD中的常用操作有哪些”這篇文章吧。
FreeBSD 是一個適用于現代服務器、桌面與嵌入式平臺的先進操作系統。由一個龐大的開發人員團隊持續開發超過三十年。FreeBSD先進的網絡、安全性和存儲方面的特色使得它成為許多大型網站以及最普遍的嵌入式網絡與存儲設備的平臺選擇。

重啟網絡的命令:
/etc/rc.d/netif restart , /etc/netstart restart
網絡配置文件:
root@mhxy-compile02:~ # cat /etc/rc.confifconfig_em0="DHCP"sshd_enable="NO"ntpd_enable="YES"# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disabledumpdev="AUTO"zfs_enable="YES"puppet_enable="YES"ipv6_enable="NO"hostname="mhxy-compile02.i.nease.net"nfs_client_enable="YES"rpc_lockd_enable="YES"rpc_statd_enable="YES"
命令:
/etc/rc.d/sshd start , /etc/rc.d/sshd restart
SSH配置文件:
root@mhxy-compile02:~ # cat /etc/ssh/sshd_config# THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.# DO NOT EDIT THIS FILE.# 1. BasicPort 32200 Protocol 2# 2. AuthenticationHostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key KeyRegenerationInterval 3600 ServerKeyBits 768 UsePrivilegeSeparation yes LoginGraceTime 120 PermitRootLogin no StrictModes yes RSAAuthentication yes PubkeyAuthentication yes PermitEmptyPasswords no ChallengeResponseAuthentication no PasswordAuthentication no IgnoreRhosts yes RhostsRSAAuthentication no HostbasedAuthentication no# 3. FeaturesUseDNS no X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes AcceptEnv LANG LC_*# 4. LoggingSyslogFacility AUTH LogLevel INFO# 5. x509Subsystem sftp /usr/libexec/sftp-server#CACertificateFile /etc/ssh/ca/ca.cer
1)停止ipfw防火墻: ipfw disable firewall /etc/rc.d/ipfw stop 2)開啟ipfw防火墻: ipfw enable firewall /etc/rc.d/ipfw start 3)清防火墻 ipf -Fa
1)pw groupmod wheel -m 2)pw user mod -g wheel
1)sysctl kern.smp.cpus或dmesg |grep cpu #查看CPU個數2)dmesg|more或top #查看內存
以上是“FreeBSD中的常用操作有哪些”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業資訊頻道!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。