ubuntu 总结 【总结】

1 安装Apache

安装指令:sudo apt-get install apache2安装结束后:

产生的启动和停止文件是:/etc/init.d/apache2

启动:sudo apache2 start

停止:sudo apache2 stop

重新启动:sudo apache2 restart
  1. $$安装
# Debian / Ubuntu:

apt-get install python-pip
pip install shadowsocks

# CentOS:

yum install python-setuptools && easy_install pip
pip install shadowsocks

# 然后直接在后台运行:
# 8000 表示开发端口,可更改
# password表示设置的密码

ssserver -p 8000 -k password -m rc4-md5 -d start

# 如果要停止运行,将命令中的start改成stop。

# $$启动报错undefined symbol EVP_CIPHER_CTX_cleanup(在高版本的ubuntu系统中会出现)

# 1. vim打开文件openssl.py
vim /usr/local/lib/python3.5/dist-packages/shadowsocks/crypto/openssl.py

# 路径不同根据报错路径而定

2. 修改libcrypto.EVP_CIPHER_CTX_cleanup.argtypes
:%s/cleanup/reset/

:x

# 以上两条为VIM命令, 替换文中libcrypto.EVP_CIPHER_CTX_cleanup.argtypes 为libcrypto.EVP_CIPHER_CTX_reset.argtypes 共两处,并保存

猜你喜欢

转载自www.cnblogs.com/shengwang/p/9833718.html