查詢裝置的 major 與 minor 數值,並且建立到其它目錄中。 
查詢裝置的 major 與 minor 數值

# ls -lL /dev/zero /dev/null /dev/random /dev/poll

crw-rw-rw- 1 root sys 13, 2 May 3 18:05 /dev/null
crw-rw-rw- 1 root sys 135, 0 May 3 17:57 /dev/poll
crw-r--r-- 1 root sys 149, 0 May 3 17:22 /dev/random
crw-rw-rw- 1 root sys 13, 12 May 3 18:11 /dev/zero



建立到 /usr/local/test 中
# mknod /usr/local/test/dev/null c 13 2
# mknod /usr/local/test/dev/poll c 135 0
# mknod /usr/local/test/dev/random c 149 0
# mknod /usr/local/test/dev/zero c 13 12


[ 發表回應 ] ( 44預覽 )   |  常註連結  |   ( 3 / 774 )
Fix cmi_hdl_create returned NULL 
原文:http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?locale=en_US&objectID=c01554955

This does not occur during the installation of Oracle Solaris 10 5/10.

During the installation of Oracle Solaris 10 5/08 or Oracle Solaris 10 5/09, perform the following to prevent the system panic and continuous reboot condition:

1.Reboot the server. At the GRUB boot manager screen, press the "e" key for edit mode (at the first line at the top listed as "Solaris.")
2.Select the kernel string and edit by adding -kd.
3.Press the "b" key to boot.
4.At the kernel debugger screen, enter cmi_no_init/W1.
5.Proceed using ":c" command and press the <ENTER> key.
6.After the OS installation, repeat the above steps and boot the server.
7.Add the following line to /etc/system file
set cmi_no_init=1
8.Reboot with the reboot option.


[ 發表回應 ] ( 21預覽 )   |  常註連結  |   ( 3 / 779 )
How to compile Mcrypt? 
Don't forget install Libmcryprt before compile mcrypt.

http://sourceforge.net/projects/mcrypt/files/

MCrypt and Libmcrypt is two program. They are not same.

[ 發表回應 ] ( 9預覽 )   |  常註連結  |   ( 3 / 757 )
Configuring Apache + SSL service for Solaris 10 
Enabling SSL service on Apache2

# svccfg

svc:> select apache2

svc:/network/http:apache2> listprop httpd/ssl

httpd/ssl boolean false

svc:/network/http:apache2> setprop httpd/ssl=true

svc:/network/http:apache2> exit

# svcadm disable apache2

# svcadm refresh apache2

# svcprop -p httpd/ssl svc:/network/http:apache2

true

# svcadm enable apache2



[ 發表回應 ] ( 14預覽 )   |  常註連結  |   ( 3 / 627 )
Disable my Solaris Service 
# SVC Disabled Service

svcadm disable svc:/network/iscsi/initiator:default
svcadm disable svc:/network/rpc/bind:default
svcadm disable svc:/network/rpc/gss:default
svcadm disable svc:/network/rpc/cde-calendar-manager:default
svcadm disable svc:/network/rpc/cde-ttdbserver:tcp
svcadm disable svc:/network/rpc-100235_1/rpc_ticotsord:default
svcadm disable svc:/network/security/ktkt_warn:default
svcadm disable svc:/system/webconsole:console
svcadm disable svc:/application/font/stfsloader:default
svcadm disable svc:/application/graphical-login/cde-login:default


# Disable Windows Mode

/usr/dt/bin/dtconfig -d



# Disable UCODE update

mv /platform/i86pc/ucode /platform/i86pc/ucode.disabled


[ 發表回應 ] ( 8預覽 )   |  常註連結  |   ( 3 / 552 )

<< <前一頁 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 下一頁> >>