??xml version="1.0" encoding="utf-8" standalone="yes"?> 首先准备阿好如下的安装文Ӟ(x) 下蝲上述文gq放?tt>/var/tmp/oracle目录下。最好要把你的YUM源指向你的系l安装光盘或者ISO文g?/p> 用root登陆Q执行如下命令:(x) otk已经帮我们徏立了(jin)oracle用户Q下面需要设|Oracle用户密码 q一步最爽,最为头疼的环境依赖问题Lp决了(jin)Q首先要验证下你的系l还差什么没有满求,OTK脚本提供?jin)智能的环境是否满(g)? 最后的l论告诉你的pȝ共有几个警告Q我的系l是7个)(j)Q你可以在输出日志中查看到底~Z(jin)什么。下面的一l命令很P让你一下子解决所有的问题: OTK提供?jin)一个优化增强的sqlplus环境Q?/p> 切换?tt>/opt/oracle/otk/current/conf/installManager目录Q编?tt>osSetup11gR2.cfg来配|安装参敎ͼ包括内核参数、目录创建及(qing)所有授权等讄Q如果你想默认安装就无需更改q个文g?/p> otk默认doracle安装文g的目录是/var/opt/oracle/repositoryQotk?strong>swInst实例安装命o(h)?x)读取这个目录?x) q一步没什么实际意义,是定制Oracle用户d的提C符?/p> OTK没有采用Oracle Universal Installer(OUI)Q而是?strong>swInst来控制整个安装过E的Q?/p> OTK采用dbSetup来创建实例,首先要进?tt>$INSTALL_CONF目录配置实例参数 本文采用dbSetup-prod.cfg生环境模式配置Q我们看到还有dev(开发环?和test(试环境)Q不q我没试q,有兴的童鞋可以试试。我在上面列Z(jin)我所作出的配|,原文q没有修改内存参敎ͼ我之所以修Ҏ(gu)因ؓ(f)实际环境因ؓ(f)内存讄太小Dq行一D|间数据库l常挂掉Q经q多ơ的调试而得到的l验|q里需要说明下我的数据库配|:(x) installManager dbSetup dbSetup-prod.cfg命o(h)开始安装数据库实例Q不q我你最好先配置下你?tt>/etc/hosts文gQ加入下面的内容Q?/p> 接下来就是O长的{待Q大概需要几十分钟,具体Ҏ(gu)你的机器配置情况。如果你最后看到如下的输出Q?/p> CongratulationsQ?/strong>你安装成功了(jin)?/p> 下面登陆试试Q?/p> OTK提供?jin)一个ctl工具来帮我们理Oracle实例Q?/p> 定时备䆾Job otkq没有帮我们创徏EM控制収ͼ对于?fn)惯用Web理的用户很不方便,我们需要手工创建:(x) OKQ?大功告成Q相信各位童鞋都安装成功?jin),OTK的安装还是很E_的,臛_我安装了(jin)几十ơ都成功?jin)?/p> 最后祝各位童鞋好运Q?/p> 下面列出root目录下的文gl构 目的是除?jin)目录subdir2和文件fileA.txt其它的都要删除,如果一个一个删效率太低了(jin)QShell命o(h)可以L的解?/p> 执行的效果如?/p> 主要参考文? https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md 安装python,官方要求版本必须?.5以上Q而且不支?.0,Fedora一般的版本都在2.7以上Q因此直接安装源自带的即?/p>
安装完查看下版本 q要保python2命o(h)有效 如果提示 默然安装ruby2.0, GitLab推荐?.9.3 q要安装Bundler 创徏一?nbsp; 让git用户无密码登?/p>
L用户的叹?/p>
加入sudol?/p>
切换到git用户 克隆GitLab Shell 切换到最新的分支 生配置文g 更改配置信息Q一般就改下你部|的域名地址gitlab_url 安装 gitlab支持mysql和postgresqlQ这里以mysqlZQpostgresql?x)比较麻烦(ch)?/p>
切换回root用户 安装mysql?qing)开发包 启动数据?/p>
初始化GitLab数据?/p>
试gitlab用户q接mysql l于到GitLab的安装了(jin)Q进入git用户 克隆GitLab 切换?.0E_分支 首先~辑/home/git/gitlab/config/database.yml 执行rake 重新执行rake 如果你看到如下信? 恭喜你!你已l成功安装GitLab?jin)!别忘了(jin)记录输出的理用户名和密码Q?/strong> Ok,你现在可以访问GitLab?jin),默认端口?@3000@Q?讉K http://你的域名或IP:3000 哈哈Q看到登陆页面了(jin)吧! 输入理用户名和密码Q开始n受GitLab吧!怿很多童鞋都有q在Linux上安装Oracle数据库的痛苦l历Q其中绝大多数都是环境设|的问题。我l大家推荐一个国外大牛写的Oracle的安装脚?nbsp;OTKQ是用Bash写的Q这东东大大化了(jin)Oracle安装q程Q而且成功率达?9.9999%以上Q只要确保你的Linuxpȝ是干净的,那么按照q个教程Q保证你?x)安装成功?/span>
准备工作
安装OTK
# su - root
# cd /var/tmp/oracle
# ls -1 oratool*
oratoolkit-1.0.2.1.5-1.noarch.rpm
# rpm -ivh oratoolkit-1.0.2.1.5-1.noarch.rpm
Preparing... ########################################### [100%]
1:oratoolkit ########################################### [100%]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.解决环境依赖
# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
...//省略大部分输?
20130521_165122: Info: Action swReqCheck of installManager ended with 7 WARNINGS//先拼装命?
# REQ_FILE_DIR="/opt/oracle/otk/current/conf/installManager/requirement"
# REQ_FILE_PATH="$REQ_FILE_DIR/ora11gR2-redhat-5-x86_64.pkg.lst"
# YUM_COMMAND=$(echo "yum install")
# YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 32-bit | awk '{ print " "$1".i[356]86" }')
# YUM_COMMAND+=$(egrep -v "#" $REQ_FILE_PATH | grep 64-bit | awk '{ print " "$1".x86_64" }')
//用echo看看最l拼装的命o(h)是什么样
# echo $YUM_COMMAND
//执行命o(h)
# $YUM_COMMAND
//再次执行环境(g)?
# /opt/oracle/otk/current/bin/installManager swReqCheck osSetup11gR2.cfg
...
20130521_170131: Info: Action swReqCheck of installManager ended successfully //q次验证成功?jin),环境已经满Oracle安装要求增强sqlplus
# cd /opt/oracle/otk/current/tools/rlwrap/
# ./configure
# make
# make install
# /usr/local/bin/rlwrap -v
rlwrap 0.30使用installManager提取安装
# cd /opt/oracle/otk/current/conf/installManager/
# vi osSetup11gR2.cfg
# sdiff -s osSetup11gR2.cfg sample/osSetup11gR2.cfg //Ҏ(gu)哪些参数修改q?
# /opt/oracle/otk/current/bin/installManager osSetup osSetup11gR2.cfg把Oracle安装文gUd资源目录
# cd /var/tmp/oracle
# chown oracle:oinstall *
# mv linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip /var/opt/oracle/repository/定制oracle用户d的PS1变量
# su - oracle
------------------------------------------------------
oraToolKit environment variables
------------------------------------------------------
Installation directory : /opt/oracle/otk
Release : 1.0.2.1.5
$RUN directory : /opt/oracle/otk/1.0/bin
$LOG_BASE directory : /var/opt/oracle/otk/1.0/log
------------------------------------------------------
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive
SITE="<SITE|COMPANY>"
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ vi .profile.custom.interactive
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ grep ^SITE .profile.custom.interactive
SITE="KuuYee"http://修改q一行,可以昄你喜Ƣ的内容
<SITE|COMPANY>:oracle@stquist1p:sidNotSet$ exit
# su - oracle
KuuYee:oracle@stquist1p:sidNotSet$安装Oracle数据?/h4>
$ bash
$ cd $INSTALL_CONF
$ cp sample/swInstEeSrv11gR2-Step1-linux-x86_64.cfg .
$ installManager swInst swInstEeSrv11gR2-Step1-linux-x86_64.cfg
$ su -
# /opt/oracle/eesrv/11.2.0/db1/root.sh
# exit创徏数据库实?/h4>
$ cd $INSTALL_CONF
$ ls -1 dbSetup*.cfg
dbSetup-dev.cfg
dbSetup-prod.cfg
dbSetup-test.cfg
$ vi dbSetup-prod.cfg //prod为生产模?
$ sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg
DB_NAME="idm_test" | DB_NAME="prod"
ORACLE_HOME="$ORACLE_BASE/eesrv/11.2.0/db1" | ORACLE_HOME="$ORACLE_BASE/sesrv/11.1.0/db1"
NLS_LANG=".AL32UTF8" | NLS_LANG=".UTF8"
SYSTEM_SIZE=1G | SYSTEM_SIZE=512M
TEMP_SIZE=2G | TEMP_SIZE=512M
UNDO_SIZE=2G | UNDO_SIZE=512M
USERS_SIZE=100M | USERS_SIZE=10M
LISTENER_PORT="1541" | LISTENER_PORT="1531"
MEMORY_TARGET=7G | MEMORY_TARGET=512M
MEMORY_MAX_TARGET=7G | MEMORY_MAX_TARGET=512M
SGA_TARGET=3G | SGA_TARGET=256M
PROCESSES=1000 | PROCESSES=100
$ installManager dbSetup dbSetup-prod.cfg //执行q部之前最好先配置?etc/hosts文gQ看下面说明
OSQVMware虚拟?RHEL5.5)
CPUQ??br />内存Q?2G
盘Q?00GB
上面?tt>sdiff -s dbSetup-prod.cfg sample/dbSetup-prod.cfg命o(h)可以Ҏ(gu)下我的参C改,左面是我的修改参敎ͼ右面是原参数,需要特别说明的是第二个参数ORACLE_HOMEQ一定要自修修改Q原来的参数?tt>$ORACLE_BASE/sesrv/11.1.0/db1Q要修改?ORACLE_BASE/eesrv/11.2.0/db1Q别攚w?jin)?/p>127.0.0.1 你的hostname
----------------------------------------------------------------------------------------------------
20130522_091856: Info: Executing libmiscellaneous.getFooter function
20130522_091856: Info: Terminating installManager execution
20130522_091856: Info: Summary log file: /var/opt/oracle/otk/1.0/log-old/installManager/../installManager.log
20130522_091856: Info: Detailed log file: /var/opt/oracle/otk/1.0/log-old/installManager/dbsetup-20130522_090349.log
20130522_091856: Info: Action dbSetup of installManager ended successfully
----------------------------------------------------------------------------------------------------OTK默认创徏?jin)一?strong>otk用户Q密码也?strong>otkQ?nbsp;sys?strong>system默认密码?strong>manager $ bash
$ sourceProdEnv
$ sqlplus sys/manager@idm_dev as sysdba;
或?
$ sqlplus otk/otk@idm_dev
SQL*Plus: Release 11.2.0.1.0 Production on Wed May 22 11:05:16 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>使用appctl理oracle
$ ctl status all //查看当前状?
$ ctl stop all //停止数据?
$ ctl start all //启动数据?/code>使用backupuManager备䆾oracle
$ cd $BACKUP_CONF
$ vi prod.cfg
$ sdiff -s prod.cfg sample/prod.cfg DISK_DEVICE_MOUNT_POINT="/" | DISK_DEVICE_MOUNT_POINT="/backup01"
$ backupManager full prod.cfg$ crontab -l|head -2
# Example 1: Daily physical database backup
# 0 2 * * * [ -d $HOME/../current ] && (ksh -c '. ./.profile >/dev/null; backupManager full <sid_1>.cfg <sid_2>.cfg <sid_n>.cfg >/dev/null')
$ crontab -e
$ crontab -l|head -2
# Example 1: Daily physical database backup
0 2 * * * [ -d $HOME/../current ] && (ksh -c '. ./.profile >/dev/null; backupManager full prod.cfg >/dev/null')创徏EM理控制?/h4>
$ emca -config dbcontrol db -repos recreate
STARTED EMCA at May 22, 2013 11:18:41 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved. Enter the following information:
Database SID: idm_dev //输入sid
Listener port number: 1541 //监听输入端口
Listener ORACLE_HOME [ /opt/oracle/eesrv/11.2.0/db1 ]: //默认回R
Password for SYS user: //输入密码manager
Password for DBSNMP user: //输入密码manager
Password for SYSMAN user: //输入密码manager
Email address for notifications (optional): //默认回R
Outgoing Mail (SMTP) server for notifications (optional): //默认回R
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1
Local hostname ................ localhost.localdomain
Listener ORACLE_HOME ................ /opt/oracle/eesrv/11.2.0/db1
Listener port number ................ 1541
Database SID ................ idm_dev
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: yes
May 22, 2013 11:19:20 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/oracle/cfgtoollogs/emca/idm_dev/emca_2013_05_22_11_18_40.log.
May 22, 2013 11:19:21 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
May 22, 2013 11:19:23 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
May 22, 2013 11:24:27 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
May 22, 2013 11:24:30 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ... //可能?x)等一?
May 22, 2013 11:25:19 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
May 22, 2013 11:25:23 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
May 22, 2013 11:25:23 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
May 22, 2013 11:25:45 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
May 22, 2013 11:25:45 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
May 22, 2013 11:25:58 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
May 22, 2013 11:26:28 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<< //q个是EM的访问链?
May 22, 2013 11:26:31 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
************************ WARNING ************************
Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted. The encryption key has been placed in the file: /opt/oracle/eesrv/11.2.0/db1/localhost.localdomain_idm_dev/sysman/config/emkey.ora. Please ensure this file is backed up as the encrypted data will become unusable if this file is lost.
***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at May 22, 2013 11:26:31 AM
]]>Shell环境下删除命令如何排除指定文?/h2>
+- root
+- fileA.txt
+- subdir1
+- a.txt
+- b.txt
+- c.txt
+- subdir2
+- d.txt
+- e.txt
+- f.txt
+- subdir3
+- subdir4
+- subdir5
+- subdir6
+- subdir7
+- subdir8
+- subdir9
...ls|grep -v 'subdir2\|fileA.txt'|xargs rm -r
+- root
+- fileA.txt
+- subdir2
+- d.txt
+- e.txt
+- f.txt
]]>GitLab5发布快一个月?jin),军_试用下,5.0最大的Ҏ(gu)就是用GitLab-Shell取代?jin)GitoliteQ这大大降低?jin)安装难度,不多本h在安装过E中q是到?jin)一些问题,所以记录下来供要安装GitLab5的朋友参考!
安装步骤总览
安装依赖?/h4>
yum install libicu-devel mysql-devel pcre-devel
yum install python
python --version
python2 --version
bash: python2: 未找到命?/code> ,那你需要link一?/p>
sudo ln -s /usr/bin/python /usr/bin/python2
安装Ruby
mkdir /tmp/ruby && cd /tmp/ruby
curl --progress http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | tar xz
cd ruby-1.9.3-p392
./configure
make
sudo make install
curl -#L https://get.rvm.io | bash -s stable --ruby
rvm install ruby-1.9.3-p392
sudo gem install bundler
dpȝGit用户
git
用户供GitLab使用adduser --comment 'GitLab' git
sudo chmod 644 /etc/shadow vim /etc/shadow
git:!!:15814:0:99999:7::: 修改?git::15814:0:99999:7:::
chmod u+w /etc/sudoers
vim /etc/sudoers
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
git ALL=(ALL) ALL #加入q行安装GitLab Shell
su - git cd ~/
git clone https://github.com/gitlabhq/gitlab-shell.git
cd gitlab-shell
cp config.yml.example config.yml
vim config.yml
# Url to gitlab instance. Used for api calls. Should be ends with slash.
gitlab_url: "http://localhost/" #Ҏ(gu)你的域名或者IP./bin/install
安装数据?/h4>
su - root
yum install -y mysql-server mysql mysql-devel
service mysqld start
mysql -u root -p
Enter password:
Welcome to the MySQL monitor.
Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.30 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE USER 'gitlab'@'localhost' IDENTIFIED BY 'gitlab';
Query OK, 0 rows affected (0.01 sec)
mysql> CREATE DATABASE IF NOT EXISTS `gitlabhq_production` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
Query OK, 1 row affected (0.00 sec)
mysql> GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `gitlabhq_production`.* TO 'gitlab'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
sudo -u git -H mysql -u gitlab -p -D gitlabhq_production
安装GitLab
su - git
cd ~/
sudo -u git -H git clone https://github.com/gitlabhq/gitlabhq.git gitlab
cd gitlabsudo -u git -H git checkout 5-0-stable
配置
cd /home/git/gitlab
# 用样例配|生成gitlab配置
sudo -u git -H cp config/gitlab.yml.example config/gitlab.yml
# 更改域名
sudo -u git -H vim config/gitlab.yml
# 保gitlab?log/ ?tmp/ 目录有写权限
sudo chown -R git log/
sudo chown -R git tmp/
sudo chmod -R u+rwX log/
sudo chmod -R u+rwX tmp/
# 创徏附属目录
sudo -u git -H mkdir /home/git/gitlab-satellites
# 创徏pids目录q确保对gitlab可写
sudo -u git -H mkdir tmp/pids/
sudo chmod -R u+rwX tmp/pids/
# 生成Unicorn配置
sudo -u git -H cp config/unicorn.rb.example config/unicorn.rb
配置GitLab DB讄
# Mysql sudo -u git cp config/database.yml.mysql config/database.yml
安装Gems
cd /home/git/gitlab
sudo gem install charlock_holmes --version '0.6.9'
# For MySQL (note, the option says "without")
bundle install --deployment --without development test postgres
初始化数据ƈȀz高U特?/h4>
#
# PRODUCTION
#
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: gitlabhq_production
pool: 5
username: root
password: "secure password" #更改Zmysql的root用户密码
# host: localhost
# socket: /tmp/mysql.sock
#
bundle exec rake gitlab:setup RAILS_ENV=production
解决办法Q?br />
切到root,安装Redis
bc(command). yum install redis*
service redis start #启动redisbundle exec rake gitlab:setup RAILS_ENV=production
/home/git/repositories/root
目录找不刎ͼ手工Z卛_Q?/div>
...
Administrator account created:
login.........admin@local.host
password......5iveL!fe
启动GitLab
bundle exec rails s -e production
=> Booting WEBrick
=> Rails 3.2.13 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-04-19 15:04:41] INFO WEBrick 1.3.1
[2013-04-19 15:04:41] INFO ruby 1.9.3 (2013-02-22)
[x86_64-linux] [2013-04-19 15:04:41] INFO WEBrick::HTTPServer#start: pid=11488 port=3000
W一讉K?x)比较慢Q因~译很多js和css.
]]>
然后安装?/p>
rpm -ivh pgdg-redhat92-9.2-7.noarch.rpm
最后安装postgresql92
yum install postgresql92 postgresql92-server postgresql92-devel
初始化数据库
service postgresql-9.2 initdb Initializing database: [ OK ]
启动数据?/p>
/etc/init.d/postgresql-9.2 start Starting postgresql-9.2 service: [ OK ]
查看数据状?/p>
netstat -nutlap | grep post tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 21627/postmaster udp 0 0 127.0.0.1:12823 127.0.0.1:12823 ESTABLISHED 21627/postmaster
U下我的桌面!
http://download.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/Fedora-18-x86_64-Live-KDE.iso
https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.11.7-setup.exe
liveusb-creator用来创徏USB安装介质QKDE安装盘不大Q就800多MB?/p>
插入烧录好的USBQ重启电(sh)脑选择USB启动,看到如下启动面Q?br />
q入LiveCD桌面Q点?yn)L面上的Install to Hard Drive安装图标,如下图:(x)
选择中文语言
q入安装摘要面Q主要是讄存储
点击安装目标位置Q进入磁盘选择?/strong>
选中安装盘点l?/strong>
在安装选项里把自定义磁盘分区勾上,然后点击回收I间
q入手动分区,点击自动创徏q接Q如下图Q?/strong>
直接使用Fedora默认的分区方案,不用做Q何更改(除非你想自定义分区方案)(j)点击l束分区
完成存储讄Q点d始安?/strong>
q入安装q度Q同时设|root密码
完成安装Q重启系l!
Congratulations! 安装完成Q先写到q,安装成功的童鞋可以先随便玩玩Q后l的内容我会(x)逐渐告诉大家如何把KDE打造成实用而且漂亮的桌面?br />
待箋…
首先安装一些依赖库Q否则安装Awestruct?x)报如下的错误?x)
Building native extensions. This could take a while...
.........
ERROR: Error installing 开始安装依赖库Q用 root 用户或?nbsp;su 执行如下命o(h)Q?/p>yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
我是Fedora的粉丝,对不住用其它发行版的童鞋?jin),误行根据我列出的安装包扑ֈ对应的系l安装方法?/div>安装Ruby和RubyGems,?nbsp;root 用户或?nbsp;su 执行如下命o(h)Q?/p>
yum install ruby ruby-devel ruby-irb rubygems
Fedora18 Yum源的Ruby非常斎ͼ都是目前(2012-12-14)的最新版本,看看安装的Ruby版本Q?/p>
正在安装 : libyaml-0.1.4-3.fc18.x86_64 1/10
正在安装 : ruby-libs-1.9.3.327-22.fc18.x86_64 2/10
正在安装 : ruby-irb-1.9.3.327-22.fc18.noarch 3/10
正在安装 : rubygem-json-1.6.5-2.fc18.x86_64 4/10
正在安装 : rubygem-io-console-0.3-22.fc18.x86_64 5/10
正在安装 : rubygem-bigdecimal-1.1.0-22.fc18.x86_64 6/10
正在安装 : rubygem-rdoc-3.12-5.fc18.noarch 7/10
正在安装 : rubygems-1.8.24-3.fc18.noarch 8/10
正在安装 : ruby-1.9.3.327-22.fc18.x86_64 9/10
正在安装 : ruby-devel-1.9.3.327-22.fc18.x86_64
安装Awestruct
Awestruct使用RubyGems理安装Q用 root 用户或?nbsp;su 执行如下命o(h)Q?/p>
gem install l果报如下错?Fetching: nokogiri-1.5.5.gem (100%)
ERROR: Error installing q个问题让我郁闷?jin)N久时_(d)Google?jin)大半天Q还Ҏ(gu)搞了(jin)FANQIANGQ结果死z装不上nokogiri。最后通过Yum来解?我只能说RubyGems安装很无耻!q是YUM好!Q命令如下:(x)yum install -y rubygem-nokogiri
再次安装AwestructQ?/p>
yum install -y rubygem-nokogiri
盼望已久的时L_(d)如果哪位童鞋看到如下的输出,CongratulationsQ?/p>
Successfully installed 不过别高兴太早,先适用下是否OKQ用BootStrap模板生一个新的静态网站,命o(h)如下Q?/p>?c)了(jin),q是报错Q?/p>[root@localhost kuuyee]# 思义Q提C没有JavaScript Runtime。lGoogleQ最后一位高人指点说装个JavaScript引擎O(jin)KQ我选择NodeJS。只可惜NodeJSF没有YUM源,只能源码~译安装Q无所谓,l箋:wget -c 'http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz'
tar zxvf node-v0.8.16.tar.gz
cd node-v0.8.16
./configure
make && make install
又是一阉|O长的{待Q搞不明白一个JS框架怎么要编译这么久Q无语!最后编译完成测试一下:(x)
[root@localhost node-v0.8.16]# node -v v0.8.16
OK,l箋Awestruct试Q?/p>
[root@localhost kuuyee]# 竟然qTMD报错Q不q这回不用急,只是提示没装GitQ好办!那就装呗Q?/p>yum install git
再lAwestructQ?/p>
[root@localhost kuuyee.org]# 下一代静态网站生成工?/a>!
To generate your site continuous during development, simply run:
Congratulations! q回真的恭喜你了(jin)Q赶紧部|一下:(x)
[root@localhost kuuyee]#
打开 http://localhost:4242/ 看看吧!

l心的童鞋一定会(x)注意到部|输出有警告Q我是属于不想看CQ何警告的人,所以还得l,清楚警告Q?/p>
gem install --version '~> 0.8.8' rb-inotify
再次部v讉K׃?x)有警告了(jin)?/p>
大功告成Q祝愿各位童鞋安装成功!

]]>ORACLE 11g在Linux下手工配|EM http://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.htmlkuuyee kuuyee Thu, 05 Apr 2012 03:08:00 GMT http://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.html http://www.aygfsteel.com/kuuyee/comments/373355.html http://www.aygfsteel.com/kuuyee/archive/2012/04/05/373355.html#Feedback 1 http://www.aygfsteel.com/kuuyee/comments/commentRss/373355.html http://www.aygfsteel.com/kuuyee/services/trackbacks/373355.html 使用OTK工具安装的Oracle默认没有配置EMQ下面记录下配置和启动过E?
首先创徏EMQ执行下面的命o(h)
$ emca -config dbcontrol db -repos recreate
我第一ơ运行报如下错误Q?br />
Mar 31, 2012 4:16:06 PM oracle.sysman.emcp.EMReposConfig createRepository
CONFIG: ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.SOURCE$ by 128 in tablespace SYSTEM
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-00604: error occurred at recursive SQL level 1
ORA-01653: unable to extend table SYS.SOURCE$ by 128 in tablespace SYSTEM
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1650)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeScript(SQLEngine.java:1000)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:339)
at oracle.sysman.assistants.util.sqlEngine.SQLPlusEngine.executeScript(SQLPlusEngine.java:380)
at oracle.sysman.emcp.EMReposConfig.createRepository(EMReposConfig.java:510)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:228)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:157)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:589)
at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1448)
at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:573)
at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:521)
Mar 31, 2012 4:16:06 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error creating the repository
解决办法
使用SYS用户dsqlplusQ然后执行下面的语句Q?/p>
SQL> SELECT * FROM DBA_DATA_FILES where TABLESPACE_NAME = 'SYSTEM';
FILE_NAME FILE_ID TABLESPACE_NAME
BYTES BLOCKS STATUS RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
ONLINE_ /data01/rdbms/wcdb/datafile/wcdb_system_01.dbf 1 SYSTEM 536870912 65536 AVAILABLE
1 NO 0 0 0 535822336 65408
SYSTEM
然后新定义个I间文gwcdb_system_02.dbfQ注意不要重?/p>
然后新定义个I间文g*wcdb_system_02.dbf*Q注意不要重?/p>
SQL> ALTER TABLESPACE SYSTEM ADD DATAFILE '/data01/rdbms/wcdb/datafile/wcdb_system_02.dbf' SIZE 500M; Tablespace altered.
然后再次执行EM创徏成功Q?/p>
EM的访问地址Q?a href="https://host:1158/em" style="color: fuchsia; ">https://localhost:1158/em
删除一个EM资料?/strong>
$ emca -repos drop
配置数据库的 Database Control
$ emca -config dbcontrol db
删除数据库的 Database Control配置
$ emca -deconfig dbcontrol db
重新配置db control的端口,默认端口?158
$ emca -reconfig ports $ emca -reconfig ports -dbcontrol_http_port 1160 $ emca -reconfig ports -agent_port 3940
先设 |ORACLE_SID环境变量?启动EM console服务
$ emctl start dbconsole
先设|?ORACLE_SID环境变量?停止EM console服务
$ emctl stop dbconsole
先设|ORACLE_SID?境变量后,查看EM console服务的状?/strong>
$ emctl status dbconsole

]]>一个速度比较快的Cygwin镜像 http://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.htmlkuuyee kuuyee Mon, 17 Oct 2011 15:43:00 GMT http://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.html http://www.aygfsteel.com/kuuyee/comments/361490.html http://www.aygfsteel.com/kuuyee/archive/2011/10/17/361490.html#Feedback 0 http://www.aygfsteel.com/kuuyee/comments/commentRss/361490.html http://www.aygfsteel.com/kuuyee/services/trackbacks/361490.html 此记录q接

]]> CentOS5.4安装Trac记录 http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.htmlkuuyee kuuyee Sat, 08 Oct 2011 09:52:00 GMT http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.html http://www.aygfsteel.com/kuuyee/comments/360212.html http://www.aygfsteel.com/kuuyee/archive/2011/10/08/360212.html#Feedback 0 http://www.aygfsteel.com/kuuyee/comments/commentRss/360212.html http://www.aygfsteel.com/kuuyee/services/trackbacks/360212.html
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-4.noarch.rpm
yum install libffi -y
yum install python26 -y
rm -f /usr/bin/python
ln -s /usr/bin/python26 /usr/bin/python
vim /usr/bin/yum
python -V
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
easy_install Babel==0.9.5
easy_install Trac
trac-admin easyci_project initenv
tracd --port 8000 /easyci/trac/easyci_project
trac-admin /easyci/trac/easyci_project permission add admin TRAC_ADMIN

]]>
写了(jin)不少VPS评测Q今天发个简单的技术帖?/p>
CentOS 在当前最新的 5.6 版中Q其 python 的版本依然比较落后,q是古老的 2.4?/p>
但是有些E序需?2.6 才跑得v来,~译安装的话Q又太麻?ch),而且不适合菜鸟使用?/p>
下面qZ?yum 升 python ?2.6 的简单方案?/p>
1: rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/i386/epel-release-5-4.noarch.rpm
2: yum install libffi -y
3: yum install python26 -y
4: rm -f /usr/bin/python
5: ln -s /usr/bin/python26 /usr/bin/python
如果?64 位的 CentOSQ则上q第一句代码中?i386 改ؓ(f) x86_64 卛_?/p>
q行完毕后,此时pȝ默认?python 已经?2.6 版了(jin)?/p>
然而,yum 是基?python2.4 的,因此?x)出现故障。解x法也很简单:(x)
1: nano /usr/bin/yum
第一行末?python 后加?2.4Q即第一行改为:(x)
#!/usr/bin/python2.4
q样Qyum 依然使用 python 2.4 环境q行Q一切恢复正常?/p>
此时我们输入 python -V 卛_看到当前?python 版本Q?/p>
1: # python -V
2: Python 2.6.5
下面l出du命o(h)的用法及(qing)参数说明Q?/p>
用法Qdu [选项]… [文g]…
或:(x)du [选项]… –files0-from=F
ȝ每个<文g>的磁盘用量,目录则取ȝ量?/strong>
参数含义如下Q?/strong>
-s Ҏ(gu)个Names参数只给出占用的数据块L?br />
-a 递归地显C指定目录中各文件及(qing)子孙目录中各文g占用的数据块数。若既不指定-sQ也不指?aQ则只显CNames中的每一个目录及(qing)其中的各子目录所占的盘块数?br />
-b 以字节ؓ(f)单位列出盘I间使用情况Q系l缺省以 k 字节为单位)(j)?br />
-k ?024字节为单位列出磁盘空间用情c(din)?br />
-c 最后再加上一个总计Q系l缺省设|)(j)?br />
-l 计算所有的文g大小?/p>
]]>
首先在Tomcat的bin目录下修改catalina.sh,加入JAVA_OPTS参数:
JPDA_ADDRESS=20777 JAVA_OPTS='-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=20777'
其中JPDA_ADDRESS要指定一个没有被占用的端?如果不指?默认值是8000
然后用下面的方式启动tomcatQ?/p>
catalina.sh jpda start
最后启动EclipseQ选择你想要Debug的类q设|断点,然后选择Debug工具栏下的Debug子菜?Debug…)Q在弹出的DebugH口中,在左边的菜单中选择q程调试(Remote Java Application)Q然后输入机器名和端口,比如?92.168.1.1?0777Q然后Applyq且开始Debug
先安装所需的Y?/p>
yum install rsh-server rusers-server
然后启动服务
service xinetd reload
/etc/init.d/./rstatd start
可以用roadrunnerq接监控?/p>
然后讑֮DNS,~辑文g/etc/resolv.conf如下Q?/p>
然后重启|络服务
OK,ifconfig一下就应该看到IP地址已经讑֮?/p>
2。挂载远Ewindows目录
OK,?mnt/share下应该可以看到Download下的内容?jin)?/p>