• yam天空
  • 天空部落
  • 新聞
  • 登入 註冊 網誌隨便逛
  • 加入天空部落
  • 讓我們一起搖滾吧!

網誌 相簿 影音 PK吧! Honda嬉遊趣
即時新聞 影音新聞 新聞專輯 政治新聞 財經新聞 娛樂新聞 運動新聞 兩岸新聞 科技新聞
管理介面 發表網誌 發表日記 上傳相片 上傳影音 管理留言
推薦這個部落格: 11

J a v a N u l l

日記 |網誌 |影音 |相簿 |好友 |留言板 |未來內容
百日怒吼 | 主頁 | vi 的使用
August 21, 2008
java + tomcat + mysql install lunix以文找文
javanull 在天空部落發表於12:29:11 | lunix
鼓勵此網誌:0 

install java + tomcat + mysql install in lunix
1 cd /usr/local
2 chmod 777 j2sdk
3 ./j2sdk
4 vi ~/.bash_profile
5 新增一下 export 到 profile 中

export JAVA_HOME=/usr/local/j2sdk
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar
6 source ~/.bash_profile
7 java -version

8 mkdir /usr/local/jakarta
9 tar zxvf jakart-tomcat-5.0.16.tar.gz.tar -C /usr/local/jakarta
10 cd /usr/local/jakarta/bin
11 ./catalina.sh start



mysql install in lunix
http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
configure --prefix=/usr/local/mysql
[root@localhost mysql]# ./bin/mysqladmin -u root password 'new-password'
[root@localhost mysql]# bin/mysqld_safe --user=mysql &
[root@localhost mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data

[root@localhost mysql]# ./mysqladmin.-u.root.password.'new-password'.
[root@localhost bin]# mysqladmin.-u.root.password.'new-password'
[root@localhost bin]# mysqladmin -u
[root@localhost bin]# mysqladmin -u root
[root@localhost bin]# mysqladmin -u root password
mysqladmin: Too few arguments to change password
[root@localhost bin]# mysqladmin -u root password '123456'
[root@localhost bin]# mysqlshow -p
Enter password:
+--------------------+
| Databases |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
[root@localhost bin]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.51a-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select date();
mysql> select date()
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
mysql> select now();
+---------------------+
| now() |
+---------------------+
| 2008-08-21 12:13:54 |
+---------------------+
1 row in set (0.00 sec)

mysql>




留言 (3) | 引用 (0) | 人氣 () | 轉寄
| 主頁 | 此分類下一篇:vi 的使用
引用 (你可以針對此文寫一篇屬於自己的blog/想法,並給作者一個通告)
引用
留言 (3筆)
1.
start mysql in server

[root@localhost mysql]# bin/mysqld_safe
roger 於 2008-08-21 12:34:16 留言 |

2.
問題

http://redhat.ecenter.idv.tw/bbs/showthread.php?postid=171333
roger 於 2009-03-23 00:03:06 留言 |

3.
start mysql script =
bin/mysqld_safe --user=mysql &
bin/mysql -u root -p
javanull 於 2009-03-24 00:37:17 留言 |

發表你的留言 (字數限制 最多 2000 個中文字)
私密留言: 是 否
Name:





是 否
內容:
系統公告
個人檔案
個人圖檔
ID:javanull
暱稱:javanull
  • 訂閱 |
    • 我要訂閱此部落格的
    • 日記
    • 網誌
    • 相簿
  • 好友 |
    • 好友功能
    • 觀看好友列表
    • 觀看人緣列表
  • 人氣 |
  • 簡介 

行事曆
Jan 2010
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
記事分類
  • 生活 (3)
    • diary (2)
    • share (70)
    • worklist (1)
  • 資訊 (6)
    • Java (27)
    • DataBase (6)
    • C++ (18)
    • Code (11)
    • Oracle (1)
    • lunix (3)
  • 未分類 (13)
好站連結
  • Blog
  • Javaworld
  • 爵士好格
  • 良葛格 學習筆記
  • 微軟技術社群論壇
  • CodeGure
  • Borland
  • jalyn
  • 火車時刻查詢表
  • Code Project
  • c++ reference
人氣指數
當日人次:
累積人次:
好時光貼曆
每月文章彙集
  • Jul 2009(2)
  • May 2009(1)
  • Mar 2009(1)
  • Aug 2008(2)
  • Jul 2008(6)
  • May 2008(3)
  • Apr 2008(2)
  • Nov 2007(3)
  • Oct 2007(1)
  • Sep 2007(7)
  • Jul 2007(7)
  • May 2007(1)
  • Apr 2007(6)
  • Mar 2007(3)
  • Feb 2007(3)
  • Dec 2006(5)
  • Sep 2006(5)
  • Aug 2006(4)
  • Jul 2006(2)
  • Jun 2006(9)
  • May 2006(14)
  • Apr 2006(3)
  • Mar 2006(13)
  • Feb 2006(9)
  • Jan 2006(8)
  • Dec 2005(2)
  • Nov 2005(3)
  • Oct 2005(10)
  • Sep 2005(7)
  • Aug 2005(10)
誰來我家
音樂
我推薦誰
誰推薦我
RSS 訂閱
RSS2
ATOM
贊助商
其它資訊
本部落所刊登之內容,皆由作者個人所提供,不代表 yam 天空 本身立場。
POWERED BY
POWERED BY 天空部落
會員登入│免費註冊