打开目录/pcre/ipkg-install/usr/lib/ 找到libpcre.so.1,复制此文件改名为libpcre.so.0即可编译成功,或者创建文件链接也可以。
运行软件时提示缺少'libpcre.so.0':
openwrt系统运行创建链接命令:
ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.0
ln -s /usr/lib/libpcre.so.1 /usr/lib/libpcre.so.0
deb http://ftp.debian.org/debian wheezy-backports maincurl -sL https://deb.nodesource.com/setup | bash -apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch unzip zlib1g-dev ccache g++ bison flex autoconf make gcc subversion libtool sphinx-common mercurial sharutils ncurses-term git-core texinfo curl debhelper dh-systemd init-system-helpers pkg-config xmlto libpcre3-dev libc-ares2 libglib2.0-dev libgsasl7 libntlm0 libssl-dev libssl-doc libv8-dev msmtp nodejs p7zip p7zip-full pkg-config gcc-multilib wget nano -yapt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev patch unzip zlib1g-dev ccache g++ bison flex autoconf make gcc subversion libtool sphinx-common mercurial sharutils ncurses-term git-core texinfo curl debhelper dh-systemd init-system-helpers pkg-config xmlto libpcre3-dev libc-ares2 libglib2.0-dev libgsasl7 libntlm0 libssl-dev libssl-doc libv8-dev msmtp nodejs p7zip p7zip-full pkg-config gcc-multilib wget nano lib32gcc1 libc6-dev-i386 -y
echo RTMFPP2PDisable=1 >> %windir%\system32\Macromed\Flash\mms.cfg
echo AutoUpdateDisable=0 >> %windir%\system32\Macromed\Flash\mms.cfg
echo SilentAutoUpdateEnable=1 >> %windir%\system32\Macromed\Flash\mms.cfg
echo RTMFPP2PDisable=1 >> %windir%\syswow64\Macromed\Flash\mms.cfg
echo AutoUpdateDisable=0 >> %windir%\syswow64\Macromed\Flash\mms.cfg
echo SilentAutoUpdateEnable=1 >> %windir%\syswow64\Macromed\Flash\mms.cfg
# 不加载本地的 /etc/hosts 文件
#no-hosts
# 指定 resolv-file 文件路径,默认/etc/resolv.conf
#resolv-file=/etc/resolv.conf
# 不读取 resolv-file 来确定上游服务器
#no-resolv
# 不缓存未知域名缓存,默认情况下dnsmasq缓存未知域名并直接返回为客户端。
no-negcache
# 重启后清空缓存
clear-on-reload
# 默认为150,即最多分配150个ip地址出去,最大1000个ip
#dhcp-lease-max=150
# 指定IP地址,可以多次指定,路由器不可开启!!!!!!!!!!!!!!!!!!!。
listen-address=127.0.0.1
#缓存大小
cache-size=80000
# 本地 hosts 文件的缓存时间,通常不要求缓存本地,这样更改hosts文件后就即时生效。
local-ttl=36000
#dns服务器
server=8.8.8.8
server=8.8.4.4
# Include all files in a directory which end in .conf
conf-dir=/etc/dnsmasq.d
# 添加读取额外的 hosts 文件路径,可以多次指定。如果指定为目录,则读取目录中的所有文件。
addn-hosts=/etc/dnsmasq.hosts.d
|
|
listen-address=127.0.0.1
no-hosts
no-dhcp-interface=
cache-size=32768
server=127.0.0.1#1053
# Include all files in a directory which end in .conf
conf-dir=/usr/local/etc/dnsmasq.d
mkdir /usr/local/etc/dnsmasq.d
//创建配置目录
wget -4 --no-check-certificate -O /usr/local/etc/dnsmasq.d/accelerated-domains.china.conf https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf
//为国内常用网站取消DNS加密
/usr/local/etc/dnsmasq.d 中/Library/LaunchDaemons
|
|
|
|
*.baidu.com/* 都将被引导至IP为1.1.1.1的 DNS 解析。CODE {
display: block; /* fixes a strange ie margin bug */
font-family: Courier New;
font-size: 8pt;
overflow:auto;
background: #f0f0f0 url(https://sites.google.com/site/klcintwimages/Code_BG.gif) left top repeat-y;
border: 1px solid #ccc;
padding: 10px 10px 10px 21px;
max-height:200px;
line-height: 1.2em;
}
<code><pre>
</pre></code>
apt-get install build-essential wget https://github.com/jedisct1/libsodium/releases/download/1.0.10/libsodium-1.0.10.tar.gz tar xf libsodium-1.0.10.tar.gz && cd libsodium-1.0.10 ./configure && make -j2 && make install ldconfig
{
"server":"0.0.0.0",
"server_ipv6": "[::]",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8080":{"protocol":"auth_sha1", "password":"mima", "obfs":"http_simple", "obfs_param":""},
"443":{"password":"mima"}
},
"timeout":300,
"method":"chacha20-ietf",
"protocol": "auth_aes128_md5",
"protocol_param": "",
"obfs": "tls1.2_ticket_auth",
"obfs_param": "",
"redirect": "apeggplfc4e.com:443",
"dns_ipv6": true,
"fast_open": false,
"workers": 5
}
; supervisor config file [unix_http_server] file=/var/run//supervisor.sock ; (the path to the socket file) chmod=0700 ; sockef file mode (default 0700) [supervisord] logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) ; the below section must remain in the config file for RPC ; (supervisorctl/web interface) to work, additional interfaces may be ; added by defining them in separate rpcinterface: sections [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///var/run//supervisor.sock ; use a unix:// URL for a unix socket serverurl=http://0.0.0.0:9001 ; use an http:// url to specify an inet socket username=jun password=junsheng ; The [include] section can just contain the "files" setting. This ; setting can list multiple files (separated by whitespace or ; newlines). It can also contain wildcards. The filenames are ; interpreted as relative to this file. Included files *cannot* ; include files themselves. [include] files = /etc/supervisor/conf.d/*.conf # 如需要访问web控制界面,inet_http_server 区段修改为: [inet_http_server] port=0.0.0.0:9001 username=用户名 password=密码
[program:shadowsocksr] command=/usr/bin/python /shadowsocks/shadowsocks/server.py -c /shadowsocks/shadowsocks/user-config.json autorestart=true autostart=true stderr_logfile=/var/log/ssrserver.err.log stderr_logfile_maxbytes=1MB stdout_logfile=/var/log/ssrserver.out.log stdout_logfile_maxbytes=1MB user=root