首页 > 未分类 > VPS服务器配置 Debian 8

VPS服务器配置 Debian 8

1,更新操作系统

apt-get update

apt-get upgrade -y

2, 系统性能评测(800+)

wget https://teddysun.com/wp-content/uploads/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
网速测试:(10+)

wget -qO- bench.sh | bash

wget -qO- lu8.win | bash

测试上下行带宽:(200+,100+,15+)

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
chmod +x speedtest.py
python speedtest.py

./speedtest.py –server=4713

./speedtest.py –server=4751

./speedtest.py –server=5083

./speedtest.py –list | grep Beijing

3, 添加SWAP

cd /var/

dd if=/dev/zero of=swapfile bs=1024 count=1038336

/sbin/mkswap swapfile

/sbin/swapon swapfile

/sbin/swapon –s

echo “/var/swapfile swap swap defaults 0 0” >>/etc/fstab

4. 添加性能监控

nodequery:
https://nodequery.com/servers/new
snmp:
apt-get install snmpd
编辑Snmp的配置文件/etc/snmp/snmpd.conf
rocommunity test 60.195.249.83
rocommunity test 60.195.252.107
rocommunity test 60.195.252.110

service snmpd restart

5. 安装AMH4.2改进版面板

apt-get -y install screen
screen -S amh
wget http://www.sxsay.com/amh/amh.sh && chmod 775 amh.sh && ./amh.sh 2>&1 | tee amh.log
安装上网所使用的tools。

7,安装seafile

wget http://download-cn.seafile.com/seafile-server_6.0.3_x86-64.tar.gz

mkdir haiwen
mv seafile-server_* haiwen
cd haiwen
tar -xzf seafile-server_*
mkdir installed
mv seafile-server_* installed
apt-get install python2.7 python-setuptools python-imaging python-ldap python-mysqldb python-memcache python-urllib3
cd seafile-server-*
./setup-seafile-mysql.sh
./seafile.sh start
./seahub.sh start

重命名 /etc/mysql/my.cnf  文件,避免MYSQL启动失败。

8,更新域名解析




 
  1. 还没有评论
评论提交中, 请稍候...

留言

可以使用的标签: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Trackbacks & Pingbacks ( 0 )
  1. 还没有 trackbacks