MacからNFS でCentOSをマウント
CentOS側
yum install rpcbind yum install nfs-utils
ファイル編集
vi /etc/exports
下記の内容で編集して保存
/var/www/ 192.168.1.1/24(rw,insecure,no_root_squash,sync)
起動する
/etc/init.d/rpcbind start /etc/init.d/nfslock start /etc/init.d/nfs start chkconfig rpcbind on chkconfig nfslock on chkconfig nfs on
設定を読み込み
exportfs -a
Mac側
Macでマウントするときは、Finderの「サーバへ接続
nfs://192.168.80.10/var/www/
mac git バージョンアップ
参考URL:http://qiita.com/d_nishiyama85/items/d63da1e50405abc0929c
アップデート前のバージョンは、
$ git --version git version 1.7.9.6 (Apple Git-31.1)
・公式サイト http://git-scm.com/ に行き、"Download for Mac" のボタンから .dmg ファイルを ダウンロードします。 ・落ちてきた .dmg を開いて道なりにインストールします。 ・実行ファイルのインストール先は /usr/local/git/bin になるようです。 もとの git は /usr/bin/git なので、新しいほうが優先されるように path を設定します。
編集箇所
PATH=/usr/local/git/bin:$PATH export PATH
.bash_profile ファイルをロードし直します
source ~/.bash_profile
バージョンを確認します
$ git --version git version 1.8.3.2
redis ランキング取得する方法
200は全体の何位にあるのか zcount key_t (200 +inf
Redisポートによるサーバ管理(mac)
=====Redisポートによるサーバ管理(mac)===== 1)新設ポート番号のRedis起動 /opt/local/bin/redis-server /opt/local/etc/redis.conf --port 6380 --pidfile /opt/local/var/run/redis.pid --logfile /opt/local/var/log/redis.log --dbfilename dump2.rdb &
2).bashrcに実行するコマンドを追加 /opt/local/bin/redis-server /opt/local/etc/redis.conf --port 6380 --pidfile /opt/local/var/run/redis.pid --logfile /opt/local/var/log/redis.log --dbfilename dump2.rdb &
3)redis.logの権限変更 sudo chmod 777 /opt/local/var/log/redis.log
Finderのタイトルバーにフォルダのフルパスを表示する方法
ターミナルを使って、フルパスを表示する
まず、「起動ディスク(Macintosh HDなど)」→「アプリケーション」→「ユーティリティ」と移動し「ターミナル」を起動します。
次に、ターミナルに下のように入力します。
defaults write com.apple.finder _FXShowPosixPathInTitle -boolean true
さらに、Finderを再起動します。
killall Finder
すると、下のようにFinderのウインドウの最上部にフルパスを表示することができます。
なお、設定を解除するには、
defaults delete com.apple.finder _FXShowPosixPathInTitle
killall Finder
設定を確認するには、
defaults read com.apple.finder _FXShowPosixPathInTitle
と、入力します。