yum check-update
yum install vsftpd
vi /etc/vsftpd/vsftpd.conf anonymous_enable=NO
service vsftpd start
useradd -s /sbin/nologin -d /var/www/ aatii(为默认ftp路径)
脚本adduser XXX 快速添加账号
设置密码
chown -R aatii /usr/local/lib
yum install gcc gcc-c++ 编译
wget http://...(source code)
tar xvf node-vXXXX.tar.gz
cd node-v*
./configure
make
(sudo)make install
node --version
npm install express (-gd全局)
注意:按照顺序来
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
aatii@aatii-desktop:~/下载/redis-3.0.5$ src/redis-server
node 程序 ctrl c 2次退出,不然是挂起状态
npm install -g forever
forever start/stop app.js
npm install mongodb
npm install mongoskin
apt-get remove 软件包
mongodb wget tarzxvf mkdir mongo/data mkdir mongo/dblogs
root@iZ28n69chnxZ:~/mongodb/bin# ./mongod --dbpath=/mongo/data --logpath=/mongo/dblogs --fork(dblogs是文件夹)
pstree -p | grep mongod 查看
cd到mongodb目录下的bin文件夹,执行命令./mongo
> help
> use test;
root@iZ28n69chnxZ:~# npm install -g npm
root@iZ28n69chnxZ:~# npm install -g yeoman
以上都要加sudo
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'解决办法:
root@iZ28n69chnxZ:~# chown -R $USER $HOME/.npm
var spawn = require('child_process').spawn,
free = spawn('free', ['-m']);