1、打开AddHandler cgi-script .cgi
vi /etc/httpd/conf/httpd.conf
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi
2、指令打开 cgi 模块
a2enmod cgi
service apache2 restart
git 中文乱码
可以尝试如下方法: 在~/.gitconfig添加如下: [gui] encoding = utf-8 [core] quotepath = false [i18n] commitencoding = utf-8 logoutputenco…
gitolite的搭建及使用
客户瑞: 1、 生成公钥: ssh-keygen -t rsa -C id_rsa_office 2、将id_rsa_office.pub拷贝到服务器上,比如/tmp目录 服务器端: 1、添加git用户: sudo adduser git …
jack-server导致 Android 编译 出现异常
jack-server导致 Android 编译 出现异常 错误代码如下: [ 2% 39/1330] Ensure Jack server is installed and started FAILED: /bin/bash -c "(p…
prebuilts/sdk/tools/jack-admin
JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx4096m -cp…
Android selinux 部分特别设置
type=1400 audit(0.0:18): avc: denied { ioctl } for path="socket:[57632]" dev="sockfs" ino=57632 ioctlcmd=8927 scontext=u…
sed macos 实现批量修改多个文件里的字符串
sed -i "" "s/TEST1/TEST2/g" `find . -name "*.c"`
rk 屏参计算
例子如下: 1 VOP [ff930000.vop]: DISABLED 2 VOP [ff940000.vop]: ACTIVE 3 Connector: LVDS 4 overlay_mode[0] bus_format[100a] o…
LVDS 格式
LVDS信号格式有两种,一种JEIDA的标准,一种是VESA的标准; LCD屏老一点的有6bit的,现在普通的是8bit,新的就是10bit了; 每个clock周期内7bit数据: 6bit的屏 VESA…
recipe for target ‘kernel.img’ failed
出错log: # # configuration written to .config # scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config/kernel.r…
rename 批量修改文件名
#!/bin/bash for i in {1..9} do mv Test_0$i.bmp Test_00000$i.bmp done for i in {10..99} do mv Test_0$i.bmp Test_0000$i.bm…