Shadow Program Note
人生,沒有IF....Else,只有無限的Release.
顯示具有
CentOS
標籤的文章。
顯示所有文章
顯示具有
CentOS
標籤的文章。
顯示所有文章
2010年3月26日 星期五
mysqladmin: connect to server at 'localhost' failed
Setp 1.
service mysql stop
Step 2.
mysqld_safe --skip-grant-tables &
Step 3.
mysql -u root mysql
Step 4.
UPDATE user SET Password=PASSWORD('
new password
') where USER='root';
Step 5.
FLUSH PRIVILEGES;
Step 6.
quit
2010年1月7日 星期四
CentOS 5 VNC Server
Step1. 確認是否有安裝
VNC Server 套件
#rpm -q vnc vnc-server
vnc-server-4.1.2-9.el5
Step2.
修改 vnc server 設定檔
#vi /etc/sysconfig/vncservers
VNCSERVERS="1:root" //
VNCSERVERARGS[1]="-geometry 1024x768"
Step3.
設定VNC密碼
#vncpasswd
Password: //輸入 VNC 密碼
Verify: //再輸入一次 VNC 密碼以確認
Step4.
修改 ~/.vnc/xstartup
#vi ~/.vnc/xstartup
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER //將此行 mark 拿掉
exec /etc/X11/xinit/xinitrc //將此行 mark 拿
Step5.
啟用VNC Server
#service vncserver start
較舊的文章
首頁
訂閱:
意見 (Atom)