zoukankan      html  css  js  c++  java
  • solaris 10 基本使用

    1. 新增用户

    注释掉home行
    # cat /etc/auto_master # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)auto_master 1.8 03/04/28 SMI" # # Master map for automounter # +auto_master /net -hosts -nosuid,nobrowse #home auto_home -nobrowse

    bash-3.00# automount -v

    useradd -d /home/asn -s /usr/bin/bash -m asn

    2. 虚拟机选择NAT和host-only这2中连接方式

    NAT 为 dhcp 动态获取ip  用于上网

    host-only 用于主机通过xshell连虚拟机

    host-only配置

    主机上的VirtualBox Host-Only Network网卡适配器的配置:

    ip: 192.168.56.0  子网掩码: 255.255.255.0

    虚拟机solaris中的IP配置:

    ifconfig pcn0 192.168.56.103 netmask 255.255.255.0

    3. 关闭防火墙

    # svcs -a |grep network |egrep "pfil|ipf"

    enable        4:36:25 svc:/network/pfil:default 
    online         23:41:33 svc:/network/ipfilter:default 
    #svcadm disable  svc:/network/ipfilter:default

  • 相关阅读:
    Git使用教程与基本原理和Sourcetree基本使用探微
    微博开发笔记上(未完待续)
    Swift入门
    刀哥之指纹识别biometrics
    iOS面试关于http知识点basic-01-http
    SDWebImageInfo
    runloop
    NSOperation类
    java多线程
    java集合类(二)
  • 原文地址:https://www.cnblogs.com/asnjudy/p/4257093.html
Copyright © 2011-2022 走看看