FreeBSD内存文件系统

Posted by 4Aiur on 04/06/2010 in BSD |

FreeBSD内存文件系统 [4aiur@FreeBSD ~/memeory_fs]$ sudo mount -t tmpfs -o size=1m tmpfs tmpfs/ [4aiur@FreeBSD ~/memeory_fs]$ sudo mdmfs -s 1m md mfs [4aiur@FreeBSD ~/memeory_fs]$ df -h tmpfs/ mfs/ Filesystem Size Used Avail Capacity Mounted on tmpfs 648M 4.0K 648M 0% /usr/home/4aiur/memeory_fs/tmpfs /dev/md5 846K 4.0K 776K 1% /usr/home/4aiur/memeory_fs/mfs

Tags:

安装好FreeBSD后的一些基础配置修改

Posted by 4Aiur on 04/06/2010 in BSD |

安装好FreeBSD后的一些基础配置修改 配置alias [root@FreeBSD ~]# alias alias cp=’cp -i’ alias grep=’grep –color’ alias ll=’ls -lG’ alias mv=’mv -i’ alias rm=’rm -i’ alias vi=’vim’ [root@FreeBSD ~]# 安装sudo [root@FreeBSD ~]# cd /usr/ports/security/sudo [root@FreeBSD /usr/ports/security/sudo]# make [root@FreeBSD /usr/ports/security/sudo]# make install [root@FreeBSD /usr/ports/security/sudo]# make clean 修改man的环境变量,使用less来查看手册 FreeBSD -P pager Specify which pager to use. By default, man uses “more -s”. […]

Tags:

FreeBSD重启网卡

Posted by 4Aiur on 04/06/2010 in BSD |

FreeBSD重启网卡 # 本地重启: ifconfig le0 down #stop网卡 ifconfig le0 up #start网卡 # 远程重启: /etc/netstart sh /etc/rc /etc/rc.d/netif restart # 重新获取dhcp地址: /sbin/dhclient interface

Tags:

Copyright © 2010-2024 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.