Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common operations of FreeBSD

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "what are the common operations of FreeBSD?", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what are the common operations of FreeBSD?"

1. The network

Command to restart the network:

/ etc/rc.d/netif restart, / etc/netstart restart

Network profile:

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" 2. SSH

Command:

/ etc/rc.d/sshd start, / etc/rc.d/sshd restart

SSH profile:

Root@mhxy-compile02:~ # cat / etc/ssh/sshd_config# THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.# DO NOT EDIT THIS FILE.# 1. BasicPort 32200Protocol 2# 2. AuthenticationHostKey / etc/ssh/ssh_host_rsa_keyHostKey / etc/ssh/ssh_host_dsa_keyKeyRegenerationInterval 3600ServerKeyBits 768UsePrivilegeSeparation yesLoginGraceTime 120PermitRootLogin noStrictModes yesRSAAuthentication yesPubkeyAuthentication yesPermitEmptyPasswords noChallengeResponseAuthentication noPasswordAuthentication noIgnoreRhosts yesRhostsRSAAuthentication noHostbasedAuthentication no# 3. FeaturesUseDNS noX11Forwarding yesX11DisplayOffset 10PrintMotd noPrintLastLog yesTCPKeepAlive yesAcceptEnv LANG LC_*# 4. LoggingSyslogFacility AUTHLogLevel INFO# 5. X509Subsystem sftp / usr/libexec/sftp-server#CACertificateFile / etc/ssh/ca/ca.cer3. Firewall 1) stop ipfw firewall: ipfw disable firewall / etc/rc.d/ipfw stop2) turn on ipfw firewall: ipfw enable firewall / etc/rc.d/ipfw start3) clear firewall ipf-Fa4. Give users root permissions: 1) pw groupmod wheel-m2) pw user mod-g wheel5. Check CPU and memory 1) sysctl kern.smp.cpus or dmesg | grep cpu # View the number of CPU 2) dmesg | more or top # check the content of this article on "what are the common operations of FreeBSD" above memory. I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to learn more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report