日期:2014-05-16  浏览次数:20783 次

linux 相关笔记

==系统安装==
1.启动服务器
2.10秒内按F10进入DELL UNIFIED SERVER CONFIGURATION
3.进入左侧OS Deployment菜单
4.点击右侧Deploy OS链接
5.插入Cent OS 5.5 x64光盘
6.选择 Red Hat Enterorise Linux 5.5 64-bit,点击next
7.在 Insert OS Media(Step 2 of 3) 页面 点击next
8.提示 内容不匹配页面,点击Yes
9.Reboot the System(Step 3 of 3)页面 点击Finish
10.服务器重启,进入Cent OS5.5安装界面
11.输入 linux text
12.CD Found 页面,选择 Skip
13.Cent OS欢迎页,选择 OK
14.Language Selection页面,选择 English ,点击OK
15.Keyboard Selection页面,选择us,点击OK
16.Partition Type页面,选择 Remove all partition on selected drives and create default layout. 点击OK
17.警告页面,提示remove all data,选择 Yes
18.Review Partition Layout 页面,选择 No
19.设置eth0和eth1
?? 1 选择 Activate on boot,Enable IPv4 support,Enable IPv6 support,点击OK
?? 2 IPv4设置选择 Manual address configration
?? 3 IPv6设置选择 Automatic neighbor discovery
20.设置完毕eht0和eth1,选择OK
21.设置网关,点击OK
22.设置Hostname,localhost,点击OK
32.设置时区,选择 Asia/Shanghai,点击OK
33.设置root密码
34.选择安装包:Server,选中 Customise software selection,点击OK
35.选择:Administration Tools,Base,Development Libraries,Development Tools,Editors,Legacy Network Server,Lagacy Sofware Development,
Legacy Software Support,Network Servers,Server Configuration Tools,System Tools,Text-based Internet,点击OK
36.Installation to begin 点击OK
37.取出安装光盘,点击Reboot,重启
38.运行Firewall configuration,全部 Disable
========================================================================

==基础指令安装==
1.yum install lrzsz
==========================

==安装Mysql==
1. 准备mysql-5.0.45.tar.gz
2. tar zxvf mysql-5.0.45.tar.gz
3. cd mysql-5.0.45
4. groupadd mysql
5. useradd -g mysql mysql
6. ./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-extra-charsets=gbk
7. make
8. make install
9. cp support-files/my-large.cnf /etc/my.cnf
10. cd /usr/local/mysql
11. chown -R mysql .
12. chgrp -R mysql .
13. bin/mysql_install_db --user=mysql
14. chown -R root .
15. chown -R mysql var
16. cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/mysqld
17. chkconfig --add mysqld
18. chkconfig --level 2345 mysqld on
19. service mysqld start
20. bin/mysqladmin -u root password 123456
21. cd /usr/local/bin, ln -s /usr/local/mysql/bin/mysql mysql

测试 :
mysql -u root -p (输入密码 123456)
show databases; use test;show tables;
========================================================================


==安装Java==

1. 准备jdk-6u14-linux-x64.bin
2. chmod 777 jdk-6u14-linux-x64.bin,运行 ./jdk-6u14-linux-x64.bin
3. 标准下一步
4. mv ./jdk1.6.0_14 /usr/local/
5. cd /usr/local
6. ln -s /usr/local/jdk1.6.0_14 jdk
7. vi /etc/profile
?? 添加
?? JAVA_HOME=/usr/local/jdk
?? JAVA_BIN=/usr/local/jdk/bin
?? PATH=$PATH:$JAVA_HOME/bin
?? CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
?? export JAVA_HOME JAVA_BIN PATH CLASSPATH
================================================

==安装Resin==
1. 准备resin-pro-3.1.9.tar.gz
2. tar zxvf resin-pro-3.1.9.tar.gz
3. mv ./resin-pro-3.1.9 /usr/local/
4. cd /usr/local/
5. ln -s /usr/local/resin-pro-3.1.9 resin
6. cd resin
7. ./configure
8. make
9. make install
10. cp contrib/init.resin /etc/init.d/resin
11. chmod +x /etc/rc.d/init.d/resin
12. chkconfig --add resin
13. chkconfig --level 2345 resin on
14. 注释 /etc/init.d/resin log_ 相关函数定义 vi /etc/init.d/resin 找到调用log_***函数的地方,将其前面加#注释(函数定义不注释),共四处,
???? a)log_daemon_msg "Starting resin"?? b)log_end_msg $? c)log_daemon_msg "Stopping resin" d)log_end_msg $?
15. service resin start
================================================

==相关类库安装1==
1.准备 jasper-1.900.1.zip jpegsrc.v6b.tar.gz libpng-1.2.24.tar.gz pcre-7.9.tar.gz
2. tar zxvf libpng-1.2.24.tar.gz
3. cd libpng-1.2.24
4. ./configure? && make && make install && cd..
5. unzip jasper-1.900.1.zip
6. cd jasper-1.900.1
7. ./configure? &&am