Vesta (VPS控制面板)最小化安装 PHP+Sqlite

curl -O http://vestacp.com/pub/vst-install.sh

 

bash vst-install.sh –nginx yes –phpfpm yes –apache no –vsftpd yes –proftpd no –exim no –dovecot no –spamassassin no –clamav no –named no –iptables yes –fail2ban no –mysql no –postgresql no –remi yes –quota no

 

yum install sqlite sqlite3 php-sqlite

 

reboot

VPS CPU挖矿 LTC

任何Linux通用

 

install build-essential libcurl4-openssl-dev

install gcc make curl-devel

 

git clone https://github.com/pooler/cpuminer
cd cpuminer
./configure CFLAGS=”-O3″
make

make install

——– cpulimit

 

git clone https://github.com/opsengine/cpulimit
cd cpulimit

make
cp src/cpulimit /usr/bin

—- 脚本

 

 

vi k.sh

cpulimit -l 50 minerd –url=stratum+tcp://us.litecoinpool.org:3333 –userpass=cn3588.1:1 -t 1
~

 

注意尽量设置在-l 50-80之间,要不然vps供应商会察觉。我所有的无用VPS都设置在50,正常VPS设置在40,小流量网站的设置在20,企业网站VPS设置在10.

-t 1 , 根据CPU的个数来设定