分类 "未分类" 的存档.

“安全网关已拒绝所尝试的连接操作“错误解决方法

如果碰到“安全网关已拒绝所尝试的连接操作……“或“anyconnect was not able to establish a connection to the specified secure gateway please try again”。

解决方法:

1,安装完成后是否没有重启VPS?重启计算机。

2,检查VPS面板PAE选项是否是“ON”,把它设为“ON”的状态后重启。

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,更新域名解析