顯示具有 CentOS 標籤的文章。 顯示所有文章
顯示具有 CentOS 標籤的文章。 顯示所有文章

2018年7月14日 星期六

Shadowsocks-libev 服务无法正常启动 libmbedcrypto

cnetos 7.0中,shadowsocks-libev照常安装完毕,发现无法正常启动
其中可以试一试以下的解决办法:
cd  /usr/lib64
ln -s libmbedcrypto.so.1  libmbedcrypto.so.0

Centos7 yum方式升级内核

cat /etc/system-release
cat /etc/issue
uname -r

一、安装elrepo的yum源
升级内核需要使用elrepo的yum源,在安装yum源之前还需要我们导入elrepo的key,如下:
elrepo的key安装完毕后,我们下面开始正式升级内核。

How to install shadowsocks-libev on Centos 7

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).
Release
Architectures
Repo Download
Epel for  CentOS 6 i386 (25)*, x86_64 (76)* Epel 6 (6170 downloads)
Epel for  CentOS 7 x86_64 (313)* Epel 7 (5555 downloads)
 Fedora 25 i386 (0)*, x86_64 (17)* Fedora 25 (0 downloads)

Install DenyHost On CentOS 6&7

Download the EPEL repository with the following command:
Install the Deny Hosts package with the following:
  • sudo yum install denyhosts
You can further configure any settings in the DenyHosts.conf file by going to the following and updating according to your preference.
  • nano /etc/denyhosts.conf

How to create systemd unit file aria2.service

nano /etc/systemd/system/aria2.service
[Unit]
Description=Aria2
After=syslog.target
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/aria2c –conf-path=/root/.aria2/aria2.conf
Restart=always
[Install]
WantedBy=multi-user.target

How to create systemd unit file calibre.service

nano /etc/systemd/system/calibre.service
[Unit]
Description=Calibre Service
After=network.target
[Service]
ExecStart=/usr/bin/calibre-server\
–enable-use-bonjour \
–port 8080 \
–log=/opt/calibre/calibre.log \
/root/calibre-library
[Install]
WantedBy=multi-user.target

CentOS7安装PHP最新版

yum -y remove php*
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml

Deploy Google BBR on CentOS 7

centos kernel version must 4.9 or newest

echo ‘net.core.default_qdisc=fq’ | sudo tee -a /etc/sysctl.conf
echo ‘net.ipv4.tcp_congestion_control=bbr’ | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
sudo sysctl net.ipv4.tcp_available_congestion_control
sudo sysctl -n net.ipv4.tcp_congestion_control

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...