2013年11月18日月曜日
2013年7月21日日曜日
[ERROR] twitter-bootswatch-rails requires Ruby version >= 1.9.3.
Gem::InstallError: twitter-bootswatch-rails requires Ruby version >= 1.9.3.
An error occurred while installing twitter-bootswatch-rails (2.3.2.7), and Bundler cannot continue.
Make sure that `gem install twitter-bootswatch-rails -v '2.3.2.7'` succeeds before bundling.
↓
sudo gem install twitter-bootswatch-rails -v '2.3.2.7'
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ sudo gem install twitter-bootswatch-rails
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ sudo gem update --system
↓
JI:sodu $ sudo gem install twitter-bootswatch-rails
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]
↓
JI:sodu $ rvm install ruby 1.9.3
Already installed ruby-1.9.3-p448.
To reinstall use:
rvm reinstall 1.9.3
JI:sodu $ rvm use ruby 1.9.3
Using /Users//.rvm/gems/ruby-1.9.3-p448
JI:sodu $ ruby -v
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]
JI:sodu $ sudo gem install twitter-bootswatch-rails
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
**********************************************
ExecJS supports these runtimes:
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Node.js
**********************************************
Successfully installed twitter-bootswatch-rails-2.3.2.7
1 gem installed
ruby -vした時はruby 1,9,3ぽいんだけど、
結局rvm install 1.9.3しなおして
gem install しなおしたら入った。
恐らく、必要なものが入っていなかった…?
An error occurred while installing twitter-bootswatch-rails (2.3.2.7), and Bundler cannot continue.
Make sure that `gem install twitter-bootswatch-rails -v '2.3.2.7'` succeeds before bundling.
↓
sudo gem install twitter-bootswatch-rails -v '2.3.2.7'
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ sudo gem install twitter-bootswatch-rails
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ sudo gem update --system
↓
JI:sodu $ sudo gem install twitter-bootswatch-rails
ERROR: Error installing twitter-bootswatch-rails:
twitter-bootswatch-rails requires Ruby version >= 1.9.3.
↓
JI:sodu $ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]
↓
JI:sodu $ rvm install ruby 1.9.3
Already installed ruby-1.9.3-p448.
To reinstall use:
rvm reinstall 1.9.3
JI:sodu $ rvm use ruby 1.9.3
Using /Users//.rvm/gems/ruby-1.9.3-p448
JI:sodu $ ruby -v
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]
JI:sodu $ sudo gem install twitter-bootswatch-rails
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
**********************************************
ExecJS supports these runtimes:
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Node.js
**********************************************
Successfully installed twitter-bootswatch-rails-2.3.2.7
1 gem installed
ruby -vした時はruby 1,9,3ぽいんだけど、
結局rvm install 1.9.3しなおして
gem install しなおしたら入った。
恐らく、必要なものが入っていなかった…?
2012年9月22日土曜日
node-mysql
node-mysql
【サンプル】
☆http://dev.classmethod.jp/etc/node-js-module-mysq/
node.jsからMySQLを利用してみる
http://nantekottai.com/2011/08/15/node-mysql/
【mysql単体】
http://ottan.me/archives/1309
<MAMPのmysql>
MAMPのMySQLをターミナルから動かすステップ その1
<PATH>
http://musilog.net/webdesign/my-works/mac-mysql.php
http://d.hatena.ne.jp/gutch01/20090930/1254241788
http://hisasann.com/housetect/2008/09/mac_os_xpath.html
大事なことは、
createClientではなく
createConnectionだということ。
[node-config]
http://d.hatena.ne.jp/sugyan/20110731/1312045169
Nodeアプリの設定系モジュールいろいろ
【nodeとmongo】
http://dayafterneet.blogspot.jp/2011/11/fluent-mongodb-nodejs-web.html
http://blog.8maki.jp/2011/01/marketgeek_nodejs_mongodb_development.html
2011/01/28 node.jsとWebSocketを使ってアクセスログをリアルタイムにビジュアル化「maptail.js」
node/webosocketによるオンラインゲームの実装を考える / オンメモリ、KVS、RDBMS、圧縮プロトコル、そのゲームデザイン + 就活の話
【サンプル】
☆http://dev.classmethod.jp/etc/node-js-module-mysq/
node.jsからMySQLを利用してみる
http://nantekottai.com/2011/08/15/node-mysql/
【mysql単体】
http://ottan.me/archives/1309
<MAMPのmysql>
MAMPのMySQLをターミナルから動かすステップ その1
<PATH>
http://musilog.net/webdesign/my-works/mac-mysql.php
http://d.hatena.ne.jp/gutch01/20090930/1254241788
http://hisasann.com/housetect/2008/09/mac_os_xpath.html
大事なことは、
createClientではなく
createConnectionだということ。
[node-config]
http://d.hatena.ne.jp/sugyan/20110731/1312045169
Nodeアプリの設定系モジュールいろいろ
【nodeとmongo】
http://dayafterneet.blogspot.jp/2011/11/fluent-mongodb-nodejs-web.html
http://blog.8maki.jp/2011/01/marketgeek_nodejs_mongodb_development.html
2011/01/28 node.jsとWebSocketを使ってアクセスログをリアルタイムにビジュアル化「maptail.js」
node/webosocketによるオンラインゲームの実装を考える / オンメモリ、KVS、RDBMS、圧縮プロトコル、そのゲームデザイン + 就活の話
2012年9月20日木曜日
2012年9月11日火曜日
OSX MountainLionのサイドバー
こんなものをいれて見ました。
http://macmatrix.blogspot.jp/p/sideeffects.html
色があっていいですね〜。
あと、これいいなー。
http://qiita.com/items/3f5ec1eaeda44c173169
http://macmatrix.blogspot.jp/p/sideeffects.html
色があっていいですね〜。
あと、これいいなー。
http://qiita.com/items/3f5ec1eaeda44c173169
2012年9月10日月曜日
Mountain Lionにしてからのお話(node)
1、nodeを使いたいと思う。
2、wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gzを行おうとする
3、wgetねーよって言われる
4,wgetを入れようとする
◯tar zxvf wget-1.9.tar.gz
7,/configureもmakeもできない
8、Command Line Toolsというのを入れないといけない
9、https://developer.apple.com/downloads/index.action#からダウンロード
10、再度
11,◯./configure ←ここで問題発生
//これでwgetが使えるようになったから、Nodeを入れようと思う。
12,再度wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
13.面倒だからダブルクリックで済ませる
14,cd node-v0.8.5
/**
*node入りました
*/
19.wget npm install express -g
20.npmがないって怒られる(そりゃそうだ)
21.npmをcurl http://npmjs.org/install.sh | shで
22.Error発生
sh: line 1: syntax error near unexpected token `newline'
sh: line 1: `<html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a>'
・・・わからん。
23.わかった。
24.curl http://npmjs.org/install.sh | shではなく
curl https://npmjs.org/install.sh | sh
25.入った。
//expressを入れる
26.npm install express -gする
27.npm ERR! Please try running this command again as root/Administrator.ってERRORd
28.sudo npm install express -gする
29.入った。
//テンプレート作ってみる。
30.express -tejs app1
31.Error: Cannot find module 'express'
32.→http://junk0047.blogspot.jp/2012/09/error-cannot-find-module-express.html
以上。
(参考)
http://d.hatena.ne.jp/Yoshikazu+code/20120726/1343297008
2、wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gzを行おうとする
3、wgetねーよって言われる
4,wgetを入れようとする
◯tar zxvf wget-1.9.tar.gz
◯cd wget-1.9
×./configure ←ここで問題発生
×make
×sudo make install
7,/configureもmakeもできない
8、Command Line Toolsというのを入れないといけない
9、https://developer.apple.com/downloads/index.action#からダウンロード
10、再度
11,◯./configure ←ここで問題発生
◯make
◯sudo make install
//これでwgetが使えるようになったから、Nodeを入れようと思う。
12,再度wget http://nodejs.org/dist/v0.8.5/node-v0.8.5.tar.gz
13.面倒だからダブルクリックで済ませる
14,cd node-v0.8.5
15./configure
16.make(大体10分そこいらで終わる)
17.sudo make install
18.node -v
/**
*node入りました
*/
19.wget npm install express -g
20.npmがないって怒られる(そりゃそうだ)
21.npmをcurl http://npmjs.org/install.sh | shで
22.Error発生
sh: line 1: syntax error near unexpected token `newline'
sh: line 1: `<html>Moved: <a href="https://npmjs.org/install.sh">https://npmjs.org/install.sh</a>'
・・・わからん。
23.わかった。
24.curl http://npmjs.org/install.sh | shではなく
curl https://npmjs.org/install.sh | sh
25.入った。
//expressを入れる
26.npm install express -gする
27.npm ERR! Please try running this command again as root/Administrator.ってERRORd
28.sudo npm install express -gする
29.入った。
//テンプレート作ってみる。
30.express -tejs app1
31.Error: Cannot find module 'express'
32.→http://junk0047.blogspot.jp/2012/09/error-cannot-find-module-express.html
以上。
(参考)
http://d.hatena.ne.jp/Yoshikazu+code/20120726/1343297008
Error: Cannot find module 'express'
OSX =>10.8
Node => v0.8.5
npm => v1.1.46
ーーーーーーーーーーーーーーーーーーー
Error: Cannot find module 'express'
/usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express
express@3.0.0rc4 /usr/local/lib/node_modules/express
├── methods@0.0.1
├── fresh@0.1.0
├── range-parser@0.0.4
├── cookie@0.0.4
├── crc@0.2.0
├── commander@0.6.1
├── debug@0.7.0
├── mkdirp@0.3.3
├── send@0.0.4 (mime@1.2.6)
└── connect@2.4.4 (pause@0.0.1, bytes@0.1.0, qs@0.4.2, formidable@1.0.11)
Node => v0.8.5
npm => v1.1.46
ーーーーーーーーーーーーーーーーーーー
Error: Cannot find module 'express'
<expressをインストールした時>
/usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express
express@3.0.0rc4 /usr/local/lib/node_modules/express
├── methods@0.0.1
├── fresh@0.1.0
├── range-parser@0.0.4
├── cookie@0.0.4
├── crc@0.2.0
├── commander@0.6.1
├── debug@0.7.0
├── mkdirp@0.3.3
├── send@0.0.4 (mime@1.2.6)
└── connect@2.4.4 (pause@0.0.1, bytes@0.1.0, qs@0.4.2, formidable@1.0.11)
//流れ
今一度
sudo npm install ejs -g
してみると、
/usr/local/lib/node_modules/ejs
にejs
ちなみに、
npm lsしてみると
── UNMET DEPENDENCY ejs *
└── UNMET DEPENDENCY express 3.0.0rc4
って実はなってた。
//解決方法
npm install ejs -gしないで
npm install ejs expressしたら
npm lsで
├── ejs@0.8.2
└─┬ express@3.0.0rc4
├── commander@0.6.1
├─┬ connect@2.4.4
│ ├── bytes@0.1.0
│ ├── formidable@1.0.11
│ ├── pause@0.0.1
│ └── qs@0.4.2
├── cookie@0.0.4
├── crc@0.2.0
├── debug@0.7.0
├── fresh@0.1.0
├── methods@0.0.1
├── mkdirp@0.3.3
├── range-parser@0.0.4
└─┬ send@0.0.4
└── mime@1.2.6
Done!
2012年9月7日金曜日
2012年9月3日月曜日
2012年9月1日土曜日
難しく考えずに
そんな難しく考えずに、やればいいと思いますよ。
そんなことで足が出ないようじゃ、到底追いつけない。
その時間、色んなサービスが立ち上がっている。
要はスピード勝負。
最初から完璧目指さずに、できることからやって、
問題に直面した時に、
解決すればいいと想います。
問題を想定してやって時間がかかって、
結局その問題に当たらなかったら、
それこそ本当に時間の無駄。
とりあえず、やりましょう。
2012年8月28日火曜日
POI
http://books.google.co.jp/books?id=wbfV_-pJklUC&pg=PA307&lpg=PA307&dq=setrowstyle+poi&source=bl&ots=hE9N-L08MH&sig=8F_RN6c6AFKqoXEIzi7KnmRAn3c&hl=ja#v=onepage&q=setrowstyle%20poi&f=false
P.312
合計値
cell.setCellFormula("SUM(D3:D7)");
303~
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
http://houseofinukoi.blog.fc2.com/blog-entry-169.html
http://tk-factory.net/wordpress/?p=1506
http://atmarkplant-dj.blogspot.jp/2011/04/apache-poijava-excel-1.htm
こんなこと書いたら、こんなふうになります。
for(int i = 0; i < 500 ; i++){
Row row = sheet.createRow(10);
Cell cell = row.createCell(i);
cell.setCellValue("?");
cell.setCellStyle(style2);
}
java.lang.IllegalArgumentException: Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')l
http://www.javadrive.jp/poi/style/index14.html
P.312
合計値
cell.setCellFormula("SUM(D3:D7)");
303~
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
http://houseofinukoi.blog.fc2.com/blog-entry-169.html
http://tk-factory.net/wordpress/?p=1506
http://atmarkplant-dj.blogspot.jp/2011/04/apache-poijava-excel-1.htm
こんなこと書いたら、こんなふうになります。
for(int i = 0; i < 500 ; i++){
Row row = sheet.createRow(10);
Cell cell = row.createCell(i);
cell.setCellValue("?");
cell.setCellStyle(style2);
}
java.lang.IllegalArgumentException: Invalid column index (256). Allowable column range for BIFF8 is (0..255) or ('A'..'IV')l
http://www.javadrive.jp/poi/style/index14.html
2012年8月25日土曜日
Slidrop
なぜか急にランクインしてた。
ちなみに、2012年3月には既に記事の紹介は行われていた。
http://www.lifehacker.jp/2012/03/120310slidrop2.html
そして公式。
http://slidrop.com/
生まれた背景 by TechWave
http://techwave.jp/tag/slidrop
2012年8月20日月曜日
2012年8月18日土曜日
☆500 Error: Cannot find module 'ejs'
$ node app.js
Express server listening on port 3000
Error: Cannot find module 'ejs'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at new View (/Users/Junichi/node_modules/express/lib/view.js:42:49)
at Function.app.render (/Users/Junichi/node_modules/express/lib/application.js:486:12)
at ServerResponse.res.render (/Users/Junichi/node_modules/express/lib/response.js:677:7)
at exports.index (/Users/Junichi/node/routes/index.js:7:7)
at callbacks (/Users/Junichi/node_modules/express/lib/router/index.js:165:11)
at param (/Users/Junichi/node_modules/express/lib/router/index.js:139:11)
↓
とのことで
↓
hmm it kinda looks like it's using a globally installed express..(https://github.com/visionmedia/express/issues/910)
↓
からの
↓
sudo npm install -g express
↓
/usr/local/bin/express -> /usr/local/lib/node_modules/express/bin/express
↓
node app.js
↓
500 Error: Cannot find module 'ejs'
↓
・・・( ゚д゚)ハア!?
ちなみに、
ecpress --versiion →3.0.0rc3
node -v →v0.8.5
というか、express、グローバルに入れてからアプリケーションの作成してないよね
↓
で、アプリ作成したかったけどコマンド忘れたから作り方見ようとネットを探してると・・・
↓
「ls node_module」というコマンドを発見
↓打ってみる
$ ls node_modules/
ejs socket.io twitter-node
↓
・・・ejsあるけど、expressないやん。
↓
npm install express
↓
$ ls node_modules/
↓
ejs express socket.io twitter-node
↓
ほいさ。
↓
からの
↓
JK:node Junichi$ express -t ejs test
create : test
create : test/package.json
create : test/app.js
create : test/public
create : test/public/javascripts
create : test/public/images
create : test/public/stylesheets
create : test/public/stylesheets/style.css
create : test/routes
create : test/routes/index.js
create : test/views
create : test/views/layout.jade
create : test/views/index.jade
install dependencies:
$ cd test && npm install
run the app:
$ node app
↓
(・・・jade入ってるし・・・)
↓
とりあえずweb開いてみる
↓
500 Error: Cannot find module 'jade'
- at Function.Module._resolveFilename (module.js:338:15)
- at Function.Module._load (module.js:280:25)
- at Module.require (module.js:362:17)
- at require (module.js:378:17)
- at new View (/Users/Junichi/node/node_modules/express/lib/view.js:42:49)
- at Function.app.render (/Users/Junichi/node/node_modules/express/lib/application.js:486:12)
- at ServerResponse.res.render (/Users/Junichi/node/node_modules/express/lib/response.js:677:7)
- at exports.index (/Users/Junichi/node/test/routes/index.js:7:7)
- at callbacks (/Users/Junichi/node/node_modules/express/lib/router/index.js:165:11)
- at param (/Users/Junichi/node/node_modules/express/lib/router/index.js:139:11)
・・・んだ。
↓
とりあえず、ejsで入るように入れ直して見る。
↓
$ express -tejs test
create : test
create : test/package.json
create : test/app.js
create : test/public
create : test/public/javascripts
create : test/public/images
create : test/public/stylesheets
create : test/public/stylesheets/style.css
create : test/routes
create : test/routes/index.js
create : test/views
create : test/views/index.ejs
install dependencies:
$ cd test && npm install
run the app:
$ node app
↓
で
↓
localhost:3000
↓
キタ━━━━(゚∀゚)━━━━!!
<hr>
【結果と考察】
500 Error: Cannot find module 'ejs'は、
グローバルに入ってない系。
で、グローバルに入れ直したらアプリケーション、作りなおして下しあ。
2012年8月17日金曜日
何か色々怒られた
JK:tw Junichi$ node app.js
Warning: express.createServer() is deprecated, express
applications no longer inherit from http.Server,
please use:
var express = require("express");
var app = express();
Socket.IO's `listen()` method expects an `http.Server` instance
as its first parameter. Are you migrating from Express 2.x to 3.x?
If so, check out the "Socket.IO compatibility" section at:
https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x
info - socket.io started
/Users/Junichi/node/tw/app.js:41
track:[https]//
^
ReferenceError: https is not defined
at Object.<anonymous> (/Users/Junichi/node/tw/app.js:41:9)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
2012年8月16日木曜日
2012年8月15日水曜日
自宅Mac
1.Scienticic Linuxインストール
http://fakeyakuza.hatenablog.com/entry/20110914/1316013181
http://fakeyakuza.hatenablog.com/entry/20110914/1316013181
→miniCDインストール×
→色々×
→i86_63を試すもダメ
→i368を試すもダメ。
【解決策】"PAE/NXを有効化"にチェック=>(http://d.hatena.ne.jp/esperia/20110607/1307434536
→i368を試すもダメ。
【解決策】"PAE/NXを有効化"にチェック=>(http://d.hatena.ne.jp/esperia/20110607/1307434536
→一旦通るようになった。(i368)
↓
network-scriptの設定
→pingが通らない
↓
【ネットワーク初期設定(http://www.server-world.info/query?os=Scientific_Linux_6&p=initial_conf&f=3)】
/etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="dhcp"
ONBOOT="yes"
/etc/rc.d/init.d/network restart
chkconfig network on
↓
【SELINUX無効化】
getenforce←SELINUX状態[Enforceing:有効 Permissing:無効]
getenfort←SELINUX無効化
or
vi /etc/sysconfig/selinux
SELINUX=disabled
↓
【iptable無効化】
/etc/rc.d/init.d/iptables stop
chkconfig iptables off
↓
【nginx】
wgetがない→sudo yum install wget
↓
こっちのほうが早い(http://sakura.off-soft.net/centos/apache-nginx-1-rpm-nginx-install.html)
↓開けない
openssh?
↓
(解決策!)
http://blog.kanemu.net/2009/04/virtualboxcentos.html
ブリッジネットワーク。だと、SSHいらない。
で、いつもどおりudevでeth3を変えてやる。
↓
・・・できない。
【wget】
http://d.hatena.ne.jp/qloog/20100410/1270827611
(8.15/1:26)
ネットはある。
あとは。。。
JK:‾ Junichi$ ssh root@192.168.56.101
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
43:7b:84:91:1c:98:35:50:12:d8:af:29:d0:6a:82:2e.
Please contact your system administrator.
Add correct host key in /Users/Junichi/.ssh/known_hosts to get rid of this message.
Offending key in /Users/Junichi/.ssh/known_hosts:9
RSA host key for 192.168.56.101 has changed and you have requested strict checking.
Host key verification failed.
JK:‾ Junichi$
↓
JK:‾ Junichi$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/Junichi/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/Junichi/.ssh/id_rsa.
Your public key has been saved in /Users/Junichi/.ssh/id_rsa.pub.
The key fingerprint is:
f1:be:a3:e5:15:bd:c3:bd:5d:9a:fa:a3:ca:dd:85:d1 Junichi@JK.local
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| . |
| o . . |
| S . . o E|
| . o = |
| o . = +|
| +.+ ..=+|
| ..=o++=o.|
+-----------------+
JK:‾ Junichi$
↓
network-scriptの設定
→pingが通らない
↓
【ネットワーク初期設定(http://www.server-world.info/query?os=Scientific_Linux_6&p=initial_conf&f=3)】
/etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="dhcp"
ONBOOT="yes"
/etc/rc.d/init.d/network restart
chkconfig network on
↓
【SELINUX無効化】
getenforce←SELINUX状態[Enforceing:有効 Permissing:無効]
getenfort←SELINUX無効化
or
vi /etc/sysconfig/selinux
SELINUX=disabled
↓
【iptable無効化】
/etc/rc.d/init.d/iptables stop
chkconfig iptables off
↓
【nginx】
wgetがない→sudo yum install wget
↓
こっちのほうが早い(http://sakura.off-soft.net/centos/apache-nginx-1-rpm-nginx-install.html)
↓開けない
openssh?
↓
(解決策!)
http://blog.kanemu.net/2009/04/virtualboxcentos.html
ブリッジネットワーク。だと、SSHいらない。
で、いつもどおりudevでeth3を変えてやる。
↓
・・・できない。
【wget】
http://d.hatena.ne.jp/qloog/20100410/1270827611
(8.15/1:26)
ネットはある。
あとは。。。
JK:‾ Junichi$ ssh root@192.168.56.101
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
43:7b:84:91:1c:98:35:50:12:d8:af:29:d0:6a:82:2e.
Please contact your system administrator.
Add correct host key in /Users/Junichi/.ssh/known_hosts to get rid of this message.
Offending key in /Users/Junichi/.ssh/known_hosts:9
RSA host key for 192.168.56.101 has changed and you have requested strict checking.
Host key verification failed.
JK:‾ Junichi$
↓
ちゅーから↓
JK:‾ Junichi$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/Junichi/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/Junichi/.ssh/id_rsa.
Your public key has been saved in /Users/Junichi/.ssh/id_rsa.pub.
The key fingerprint is:
f1:be:a3:e5:15:bd:c3:bd:5d:9a:fa:a3:ca:dd:85:d1 Junichi@JK.local
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| . |
| o . . |
| S . . o E|
| . o = |
| o . = +|
| +.+ ..=+|
| ..=o++=o.|
+-----------------+
JK:‾ Junichi$
↓からの
ssh root@192.168.56.101
↓で
結局さっきと一緒。
↓で
よく見ると、「Offending key in /Users/Junichi/.ssh/known_hosts:9」
って言ってるから、なんとなく消してみる。
↓もっかい
ssh root@192.168.56.101
↓
動いた!!!!!
登録:
投稿 (Atom)