FreeBSD preparation File
Nic preparation file path
/Etc/sysconfig/network-scripts/ifcfg-eth0
Restart the network. The modification takes effect.
/Etc/init. d/network restart
FreeBSD
Mygate ------- Gateway
RC. conf --------
PF. conf ------- firewall package filtering
Hostname. xl0 ----- Name and address of NIC 1
Hostname. xl1
Host (s). conf ----- host's
And so on.
/Etc/defaultdomain default doma
FreeBSD has been used for some time. Many of the commands are commonly used during this period. It is easy to use FreeBSD by learning to use these commands. Now I will summarize the commands I used during this period. Many of them are very similar to Linux, and some of them are still learned from Linux materials, in any case, it is easier to search for Linux on Google.
1. Display directories and filesLs
The last few hundred lines displayed on the front screen will be in the buffer for you to check.
To browse the buffer, you can pressScroll lockThis will enable the screen scrolling function. Then you can use the direction key orPageup,PagedownKey. RepressScroll lockThe key stops the screen scrolling.
You will see a similar picture when browsing. The real result varies depending on your computer device.
Figure. Typical device detection results
avail memory = 253050880 (247120K bytes)Preloaded el
step is to use the Vpopmail software to enable the server to support virtual domains. Because at this stage, the mail server can only provide mail services to users on FreeBSD. If every New Mail User is added to the system, this server not only wastes resources but also brings security risks. It currently only supports one domain name mail.itp.swjtu.edu.cn. Vpopmail provides the virtual domain function and converts/etc/passwd-based authentication to/
A small question about freebsd
It's urgent!I want to know which of the following commands can download data from the network besides the wget command in freebsd?How can this problem be solved?I have found many articles on baidu and cannot find the answer!
Reply to discussion (solution)
Wget is also an external tool. you can find the command line download tool.Both curl and aria2 (@ sf.net) are suppo
9Select at least two cores here, then click Next
10Recommended to set the memory to 2G, running can be smooth
11Select the default NAT network for easy access to the virtual machine
12Select default, stand-alone next
13Select the first option and click Next
14It is important to note that Apple only supports SCSI mode, so it must be selected
15Select the disk size, at least 20G, the following recommendation to select the second item, the third item can also
16Select the path wher
Method start
Check out the current shell
The code is as follows
Copy Code
[Phpbird@host3 ~]$ Echo $SHELL/usr/local/bin/bash
Of course, this is modified.Modify the default shell to modify the/etc/passwd
Another one is to use orders toChshIt's an elegant way.
The code is as follows
Copy Code
Chsh-s/path/to/shell {User-name}This is me.Chsh-s/usr/local/bin/bash Juhui
is not a root user, you need to enter a password.
Spe
First describes how to establish a high-speed DNS cache server on FreeBSD, citing the words in the Freebs D Chinese Manual:
A cached domain name server is a domain name server that does not provide authoritative resolution for any domain. It simply completes the query itself and remembers the queries for subsequent use. To set up such a server, simply configure a domain name server as usual, without configuring the domain.
The installation is as fol
#1 build a fully functional mail server on the FreeBSD
Part I: Install Mail server: Postfix+vm-pop3d+openwebmail
Welcome to share this article, but to retain the following copyright information:
Author: llzqq
Contact: llzqq@126.com
The following installation is done on the FreeBSD 5.2.1 system
1. Update ports
# CVSUP-GL 2-h Cvsup.freebsdchina.org/usr/share/examples/cvsup/ports-supfile
2. Install Ope
Because the file system is a very important part of the system, the task of maintaining the file system is also very important. This task includes checking, fixing the file system, and adjusting the tree to fit the changes in the system, adding new storage devices, etc.
Check your hard drive
There is no problem with the file system when using FreeBSD under normal circumstances. However, in some cases, if the computer's power is cut off without a nor
Note: It is recommended to turn off squid before doing this, because the cache of squid in the home update test will make the updated homepage not reflected in time.
In order not to use squid, in addition to turn off squid, also delete ipfw transparent proxy port forwarding statements:
# CD/USR/LOCAL/ETC/RC.D
#./squid.sh Stop
# MV Squid.sh Squid.sh.bak
# IPFW del fwd 127.0.0.1,3128 TCP from 192.168.0.0/24 to any 80
This section of this Web server becomes:
Apache 1.3.27
Modssl
Mod_php4
the most commonly used Ethernet, older shared Ethernet can eavesdrop on all packets flowing through the network at any one location, and new switched Ethernet can isolate data flowing to different computers on the switch, making it more secure. However, no matter what the network, routers are always a very critical location, all the data flowing out of the network through this particular computer, if the attacker to eavesdrop on the router can cause very serious security problems.
Switched Eth
The developer's collaborative effort allows FreeBSD to dynamically adjust the kernel itself. In general, you don't need to do anything messy except for the kernel configuration options maxusers and Nmbclusters. These kernel compilation configuration options (general) are specified in/usr/src/sys/i386/conf/config_file. A description of all available kernel configuration options can be found in/usr/src/sys/i386/conf/lint. In the configuration of a large
1. Introduce
First, the concept of kernel module, as well as the concept of system call, the point is FreeBSD security level issues, usually at level 2 can not load modules
You can adjust the settings with Sysctl or add the following entries to the/etc/rc.conf to adjust at startup:
Kern_securelevel_enable= "YES"
Kern_securelevel= "2"
This article is for educational purposes only: all the code involved can be found in Curiousyellow (CY).
1.2. Ker
A network address translates into an important feature of an Internet gateway that converts internal and external addresses so that computers with internal addresses can access external networks. The address translation gateway can forward an external address that is owned by an external network access gateway to the computer on which the address maps the internal address.
Therefore, by modifying the address translator so that the address Translation gateway can transform the request evenly int
Sysinit is a common framework for calling sorting and executing mechanisms separately. FreeBSD is currently using it for dynamic initialization of the kernel. Sysinit makes the kernel or modules of the FreeBSD can be restructured, added, deleted, and replaced when the kernel or module dynamically loads the link, so that the kernel and module do not have to modify a static ordered initialization schedule or
Tags: style io ar color os sp file on div1. FreeBSD this system to tell the truth really does not have Ubuntu convenience, to install a software, Apt-get install under can be, and in FreeBSD under the ports down only in the installation, but usually there is no resources, pit AHSo I can only put my own bag.1. First down mysql-5.1.70.tar.gzTAR-ZXVF mysql-5.1.70.tar.gzCD mysql-5.1.70./configure--prefix=/usr/l
Use cvsup to update ports and edit the make. conf file. It is recommended to minimize the installation of the system, and then install Packages: ports src and netcvsup from the CD. If F is installed
Use cvsup to update ports to edit the make. conf file. It is recommended to minimize the installation of the system, and then install Packages: ports src from the CD and/net/cvsup if F is installed
Use cvsup to update portsEdit the make. conf fileWe recommend that you install the Packages: por
I learned how to install mysql + php + apache2 in freebsd and linux.
Version: mysql: 4.0.26 apache: 2.0.59 php: 4.4.2
Freebsd:
-- MySQL
Pw groupadd mysql
Pw useradd mysql-g mysql
./Configure-prefix =/usr/local/mysql
Make
Make install
Chown-R root.
Chown-R mysql var
Chgrp-R mysql.
Bin/mysqld_safe-user = mysql
Ps ax check whether the service is enabled
-- Apache
./Configure-prefix =/usr/local/apache-enable-m
Article Title: how to view CPU information in Linux and FreeBSD. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories I. Linux
View cpu information:
[Junjie2 @ ljj ~] $ Cat/proc/cpuinfo
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 6
Model: 13
Model name: Intel (R) Pentium (R) M processor 1.60 GHz
S
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.