国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > CentOS > 正文

阿里云centOS配置實錄

2024-06-28 13:22:55
字體:
來源:轉載
供稿:網友
阿里云centOS配置實錄 Step1. 系統掛載數據盤

df -h,看不到數據盤。

fdisk -l ,可以看到數據盤

執行“fdisk -S 56 /dev/xvdb”命令,對數據盤進行分區;根據提示,依次輸入“n”,“p”“1”,兩次回車,“wq”,分區就開始了,很快就會完成。使用“fdisk -l”命令可以看到,新的分區xvdb1已經建立完成了。使用“mkfs.ext3 /dev/xvdb1”命令對新分區進行格式化使用“echo '/dev/xvdb1 /mnt ext3 defaults 0 0' >> /etc/fstab”(不含引號)命令寫入新分區信息。然后使用“cat /etc/fstab”命令查看。使用“mount -a”命令掛載新分區,然后用“df -h”命令查看,出現以下信息就說明掛載成功,可以開始使用新的分區了。Step2 安裝node確認服務器有nodejs編譯及依賴相關軟件,如果沒有可通過運行以下命令安裝。[root@BobServerStationlocal]#yum -y install gcc gcc-c++ openssl-devel下載NodeJS源碼包并解壓。

[root@BobServerStationlocal]#wgethttp://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz

[root@BobServerStationlocal]# tar zxvfnode-v0.10.24.tar.gz

[root@BobServerStationlocal]# cd node-v0.10.24配置、編譯、安裝。

[root@BobServerStationnode-v0.10.24]#./configure --PRefix=/usr/local/node

[root@BobServerStationnode-v0.10.24]# make && make install接下來配置Node環境

[root@BobServerStationnode-v0.10.24]#vim /etc/profile

#set nodejs envexport NODE_HOME=/usr/local/nodeexport PATH=$NODE_HOME/bin:$PATHexport NODE_PATH=$NODE_HOME/lib/node_modules:$PATH[root@BobServerStationnode-v0.10.24]#source /etc/profile --重啟生效測試是否安裝成功

[root@BobServerStationnode-v0.10.24]#node -v

v0.10.24

step3 搭建git服務器安裝git:#yum install git安裝python的setuptool#yum install python python-setuptools安裝gitosis#git clone git://github.com/res0nat0r/gitosis.git

#cd gitosis/

#python setup.py install

客戶端生產密鑰并上傳到服務器端:

#ssh-keygen -t rsa

#scp ~/.ssh/id_rsa.pub root@服務器ip:~/

在服務器端生成管理庫:

#sudo -H -u git gitosis-init < ~/id_rsa.pub

Initialized empty Git repository in /home/git//repositories/gitosis-admin.git/ Reinitialized existing Git repository in /home/git/repositories/gitosis-admin.git/

注解:

1. 生成的gitosis-admin為Git的用戶訪問權限管理庫,gitosis通過這個git庫來管理所有git庫的訪問權限。

2. 通過執行初始化,該公鑰的擁有者就能修改用于配置gitosis的那個特殊Git倉庫了

修改上傳權限:

#chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 犍为县| 即墨市| 桐柏县| 崇州市| 东光县| 博白县| 博野县| 宣武区| 临泉县| 长岭县| 博爱县| 江陵县| 云梦县| 中西区| 苍梧县| 桐乡市| 汾阳市| 望谟县| 建德市| 白水县| 梁平县| 万荣县| 陆河县| 湘西| 虹口区| 海淀区| 芮城县| 博客| 五河县| 新河县| 来安县| 诏安县| 沁源县| 稷山县| 景泰县| 桃源县| 泽普县| 化德县| 江阴市| 从化市| 泊头市|