solaris 10学习笔记

阅读更多

1、设置DNS

增加 /etc/resolv.conf文家,添加nameserver(允许添加多个)

如:

nameserver 127.0.0.1
nameserver 222.47.62.22

resolv.conf文件的格式说明:

nameserver   #定义DNS服务器的IP地址
domain       #定义本地域名
search       #定义域名的搜索列表
sortlist     #对返回的域名进行排序

除了添加 /etc/resolv.conf文件外,还需要修改 /etc/nsswitch.conf,在hosts后面添加dns

如:

hosts files dns

2、修改缺省网关:

/etc/defaultrouter

3、添加用户

useradd -m -d /export/home/keven keven

passwd keven

4、删除用户

userdel keven

5、修改主机名

/etc/hosts

6、修改ip地址

/etc/inet/ipnodes

 

7、设置GUN 开发工具路径

export  PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin


8、安装libevent

event.h : Replace all usages of 'u_int*_t' with 'uint*_t'.

event_tagging.c, http.c : replace '__inline' with 'inline'

event_rpcgen.py: Change 1st line to "#!/usr/bin/env /usr/sfw/bin/python"

 ./configure LDFLAGS="-lnsl -lresolv" --prefix=/usr

make && make install

你可能感兴趣的:(Solaris,Python,C,C++,C#)