纸帆|ZevenFang

我们终其一生寻找的无非是那个甘愿为你停下脚步,为你驻足的人。

0%

在前端代码里面添加:

1
2
3
const devInnerWidth= 1920.0 // 开发时的InnerWidth
const zoomFactor = window.innerWidth / devInnerWidth;
require('electron').webFrame.setZoomFactor(zoomFactor);

1
2
3
4
5
6
7
8
yum install -y gcc gcc-c++
wget https://zmgo.oss-cn-shenzhen.aliyuncs.com/public/server/yate6.tar.gz
tar -zxvf yate6.tar.gz
cd yate
./configure
make
./run -vvvvv -CDo #调试模式运行
./run -d #后台运行

1
2
3
4
5
6
7
wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-common-5.7.39-1.el7.x86_64.rpm
wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-libs-5.7.39-1.el7.x86_64.rpm
wget https://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-devel-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-common-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.39-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-5.7.39-1.el7.x86_64.rpm
yum install -y mysql-community-devel

进入容器内部:

1
2
a2enmod rewrite # 安装模块
service apache2 restart # 重启容器

编辑.htaccess文件:

1
2
3
4
5
6
7
8
9
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

查看是否开启成功:
执行phpinfo()函数,搜索mod_rewrite

使用镜像:
zevenfang/docker-apache-php7

搜索etc下面的文件,包含所有目录下的文件:

1
grep -lr 'string' /etc/

搜索当前目录下面的文件,不包含子目录下的文件:
1
grep -l 'string' .

-i,忽略大小写
-l,找出含有这个字符串的文件
-r,不放过子目录