linunx version Edit

CentOS release 6.7 (64)

add user Edit

[root@AY13111514211915241fZ /]# useradd -m appdev
[root@AY13111514211915241fZ /]# passwd appdev

add sudo previlege Edit

shell> su 
shell> chmod +w /etc/sudoers
shell> echo '${username} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
shell> chmod -w /etc/sudoers
shell> exit

set screen config Edit

  • specify screen config on file ~/.screenrc
#set this up for convenience
defscrollback 8000
hardstatus alwayslastline "%Lw"
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

stop default apache Edit

[root@cory ~]# whereis apachectl
apachectl: /usr/sbin/apachectl /usr/share/man/man8/apachectl.8.gz
[root@cory ~]# /usr/sbin/apachectl stop

install git Edit

shell>sudo yum install git

install subversionEdit

shell>sudo yum install subversion

install nodejs Edit

$ cd Downloads/
$ wget .
$ tar Jxvf node-v4.3.1-linux-x64.tar.xz
cd /usr/local/
sudo mv ~/Downloads/node-v4.3.1-linux-x64 node-v4.3.1
sudo chown -R root:root node-v4.3.1
sudo ln -s node-v4.3.1 nodejs
cd /usr/local/bin/
sudo ln -s /usr/local/nodejs/bin/node node
sudo ln -s /usr/local/nodejs/bin/npm npm

add sudo $PATH Edit

>sudo visudo
>Defaults    secure_path =+ /usr/local/bin

install nvmEdit

install ghost blogEdit

$ curl -L -o
$ unzip -uo -d ghost
$ cd /path/to/ghost
npm install --production
$ npm start
  • You can adjust the IP-address and port in config.js
  • Use forever run ghost in background
通过 npm install forever -g 安装 forever
NODE_ENV=production forever start index.js
通过 forever stop index.js 停止 Ghost
通过 forever list 检查 Ghost 当前是否正在运行

install jamwiki Edit

install archiva Edit

install gcc Edit

>sudo yum install gcc

install apache and php Edit

>wget .
>wget .

optons Edit

install memcached Edit

shell>sudo yum install memcached
  • start memcached
shell>sudo /etc/init.d/memcached start
  • memcached config
Community content is available under CC-BY-SA unless otherwise noted.