EMCola 浪迹于互联网世界,混迹于天地之间,关注网络空间、人生点滴、思想星光 EMCola is my space for my life & my idea & knowledge
2023年1月20日 星期五
UBNT_ERX 路由器开启ipv6
Config Tree -> firewall / options / mss-clamp6
一般标准的 PPPoE 环境 IPv6 MSS 值应该是 1432 (1500-8-40-20),
如果设成1432还是有问题可以再改小试试,有人曾改到 1382 才可以。
interfaces/ethernet/eth0/pppo/0/dhcpv6-pd/pd/0/interface,如果只用1个ip段的内网,就设定
host-address为::1
prefix-id为:1(因为有2个内网段192.168.1.x和192.168.2.x)
service为slaac。
上面的步骤到点开pd/0后显示/64,把/64改成/60,不会报错了
interfaces / ethernet / eth0 / pppoe / 0 / ipv6 / address,点+
interfaces / ethernet / eth0 / pppoe / 0 / ipv6 / enable,点+
以上设置完成后Preview即可生效,如果ipv6 DNS服务器经常抽风,导致打开网页最开始会很卡,可以在IPv6里面启用no-dns选项。
如果运营商给的地址是/64,没有DHCPv6-PD,可以通过IPv6 NDP解决,OpenWRT实现的外网网卡是eth0,内网是br-lan,先安装ndppd
2020年2月23日 星期日
$ sudo service apache2 restart Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
手贱,想解决ssl 无法访问的问题,修改apache2配置,结果出问题了:
最终解决了。
1、重新安装apache2
重新安装了apache2,网站正常访问了,但是php却无法正常运行,
问题是这个
php7.3没有运行,
所以:sudo a2enmod php7.3
但是出现如下提示:
Considering dependency mpm_prefork for php7.3:
Considering conflict mpm_event for mpm_prefork:
ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!
Considering conflict mpm_worker for mpm_prefork:
ERROR: Could not enable dependency mpm_prefork for php7.3, aborting
所以接着:
sudo a2dismod mpm_event
Module mpm_event disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
OK,解决了
$ sudo service apache2 restart
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
虽然找到了许多网友的解决办法,但是没有一个全套解决办法,只好耐心一个合着试验,最终解决了。
1、重新安装apache2
$ systemctl restart apache2
$ journal -xe
$ sudo apt-get purge apache2
$ sudo apt autoremove apache2
$ sudo apt-get purge apache2
$ sudo apt-get purge apache2*
$ sudo apt-get install apache2
$ sudo service apache2 start
2、重点在这里:重新安装了apache2,网站正常访问了,但是php却无法正常运行,
问题是这个
php7.3没有运行,
所以:sudo a2enmod php7.3
但是出现如下提示:
Considering dependency mpm_prefork for php7.3:
Considering conflict mpm_event for mpm_prefork:
ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first!
Considering conflict mpm_worker for mpm_prefork:
ERROR: Could not enable dependency mpm_prefork for php7.3, aborting
所以接着:
sudo a2dismod mpm_event
Module mpm_event disabled.
To activate the new configuration, you need to run:
systemctl restart apache2
OK,解决了
2020年1月1日 星期三
installing boost 166
issue:
# cmake .. -DENABLE_MYSQL=OFF -DENABLE_SSL_KEYLOG=ON -DFORCE_TCP_FASTOPEN=ON -DSYSTEMD_SERVICE=AUTO
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find Boost: Found unsuitable version "1.65.1", but required is at
least "1.66.0" (found /usr/include)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindBoost.cmake:2179 (find_package_handle_standard_args)
CMakeLists.txt:39 (find_package)
-- Configuring incomplete, errors occurred!
See also "/root/trojan/build/CMakeFiles/CMakeOutput.log".
See also "/root/trojan/build/CMakeFiles/CMakeError.log".
- Download Boost from official source
- Extract it
- Open terminal and cd to extracted dir
- run "./bootstrap.sh --help" command to see help
- Then run "./bootstrap.sh" command it will take some time to build
- Then run "sudo ./b2 install" to install boost.
- The default installation location are "/usr/local/inlcude/boost" for header files and "/usr/local/lib" for compiled libraries
refrence:
https://waqarrashid33.blogspot.com/2017/12/installing-boost-166-in-ubuntu-1604.html
2019年5月13日 星期一
Fedora iptable firewalld selinux
Fedora server 30 默认开启了iptables,造成我安装各种httpd、plexmediaserver等,均无法从远程登陆,无法设置端口,因此我处理如下:
systemctl stop firewalld dnf install iptables-services
重启系统
systemctl restart iptables
systemctl stop iptables
然后iptables -L -n,显示如下:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
这样,就可以放心使用firewalld
systemctl stop firewalld dnf install iptables-services
重启系统
systemctl restart iptables
systemctl stop iptables
然后iptables -L -n,显示如下:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
这样,就可以放心使用firewalld
2019年4月16日 星期二
2019年1月19日 星期六
upgrade Aria2c to 1.34 on debian
aria2c.upgrade |
apt-get update
apt-get install libgnutls28-dev nettle-dev libgmp-dev libssh2-1-dev libc-ares-dev libxml2-dev zlib1g-dev libsqlite3-dev pkg-config libcppunit-dev autoconf automake autotools-dev autopoint libtool git gcc g++ libxml2-dev make quilt
git clone https://github.com/aria2/aria2.git
autoreconf -i
./configure
make
找到编译后的aria2c, 位于/aria2/src/aria2c
find / -name aria2c
显示如下
/aria2/src/aria2c
/usr/bin/aria2c
拷贝覆盖位于 /usr/bin/aria2c 即可
通过客户端重新启动,已经显示为最新版1.34
2019年1月5日 星期六
Synology实现视频缩略图/转码终极方法
注意:在做改动前必须备份好原文件,这只是一个好习惯而已。
安装好ffmpeg后你只需要把 /volume1/@appstore/ffmpeg/bin/ffmpeg 这个文件覆盖其它用到转码的地方即可。
第一个是视频转码:
cp /volume1/@appstore/ffmpeg/bin/ffmpeg /volume1/@appstore/VideoStation/bin/
第二个是拍照视频缩略图:
复制代码
cp /volume1/@appstore/ffmpeg/bin/ffmpeg /usr/bin
复制代码
訂閱:
文章 (Atom)
Calibre_web administrator password forget
Calibre_web administrator password forget how to reset the admin password: need to specify the app.db docker exec -it calibre-web cd...
-
Config Tree -> firewall / options / mss-clamp6 一般标准的 PPPoE 环境 IPv6 MSS 值应该是 1432 (1500-8-40-20), 如果设成1432还是有问题可以再改小试试,有人曾改到 1382 才可以。 ...
-
Calibre_web administrator password forget how to reset the admin password: need to specify the app.db docker exec -it calibre-web cd...
-
Micro:bit to Scratch Requirements Install Scratch Link