ifconfig=ipconfig
how to install java:
down rpm.bin
1.change mod :chmod a+x java*.rpm.bin
2.run ./java*.rpm.bin
3.rpm -iv jre-1_5_0-linux-i586.rpm
linux system env file is /etc/profile
etc/profile:此文件爲系統的每個用戶設置環境信息,當用戶第一次登錄時,該文件被執行.
並從/etc/profile.d目錄的配置文件中搜集shell的設置.
/etc/bashrc:爲每一個運行bash shell的用戶執行此文件.當bash shell被打開時,該文件被讀取.
~/.bash_profile:每個用戶都可使用該文件輸入專用於自己使用的shell信息,當用戶登錄時,該
文件僅僅執行一次!默認情況下,他設置一些環境變量,執行用戶的.bashrc文件.
~/.bashrc:該文件包含專用於你的bash shell的bash信息,當登錄時以及每次打開新的shell時,該
該文件被讀取.
~/.bash_logout:當每次退出系統(退出bash shell)時,執行該文件.
另外,/etc/profile中設定的變量(全局)的可以作用於任何用戶,而~/.bashrc等中設定的變量(局部)只能繼承/etc/profile中的變量,他們是"父子"關係.
~/.bash_profile 是交互式、login 方式進入 bash 運行的
~/.bashrc 是交互式 non-login 方式進入 bash 運行的
linux command:
cp:
-a 儘可能將檔案狀態、權限等資料都照原狀予以複製。
-r 若 source 中含有目錄名,則將目錄下之檔案亦皆依序拷貝至目的地。
-f 若目的地已經有相同檔名的檔案存在,則在複製前先予以刪除再行復制。
tail:
install the zhcon:
1.tar zxf zhcon*...tar.gz -c/tmp : explore to /tmp
2. cd /tmp/zhocn-0.2 and run ./configure
3. make install
4.OK
5.when you in con ,run th e zhcon ,it just like ucdos .
this is ok for redflag linux,but not ok in redhat ,in redhat it change to english
install DBI
1.tar xzvf DBI-1.14.tar.gz
2.cd DBI-1.14
3.perl Makefile.PL
4.make
5.make test
6.make install
add user and gorup
root# groupadd mysql -
[root@localhost mysql]# useradd -g mysql mysql
/********************it must add the "./scripts" directory*****************************/
root# ./scripts/mysql_install_db - -user=mysql (must at mysql root directory)
/*******************************************************/
then: it repear:
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
/***********************************************************************************/
[root@data mysql]# chown -R root .
[root@data mysql]# chown -R mysql data
[root@data mysql]# chgrp -R mysql .
cat -b xxx -可以加上行號:
遠程IP mysql 不能訪問問題:
insert into `user` values ('172.18.18.99','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0)
pwd:查看當前的目錄
!vi -- 上一個vi命令
!cat :上一個cat命令
shutdown the apache 's question: when i shutdown the apache server use "apachectl stop", the follow error appeared "Could not determine the server's fully qualified domain name,"
resolve : change the %apache_home/conf/httpd.conf file remove the comment "serverName = localhost"