Linux Kali安装Lanmp详细步骤以及部分问题解决
0x1 安装LANMP步骤(需要ROOT权限)2020版本以上的Linux kali需要百度参考修改权限得文章
root@kali:~# wget http://dl.wdlinux.cn/files/lanmp_v3.tar.gz #下载lanmp压缩包文件
root@kali:~# tar xzvf lanmp_v3.tar.gz #执行解压命
root@kali:~# sh lanmp.sh #运行报错,原因:系统的dash兼容性不好,而编译常用的就是dash
执行命令后如果提示以下信息:
lanmp.sh:49: lib/common.conf: function: not found
lanmp.sh:76: lib/common.conf: Syntax error: "}"unexpected
root@kali:~# sudo dpkg-reconfigure dash #运行此命令,弹出弹窗时选择NO,即可解决报错
root@kali:~# sh lanmp.sh #重新运行LANMP,成功
grep:/etc/redhat-release: 没有那个文件或目录
grep:/etc/redhat-release: 没有那个文件或目录
Select Install
1 LAMP (apache + php + mysql + zend + pureftpd +phpmyadmin)
2 LNMP (nginx + php + mysql + zend + pureftpd +phpmyadmin)
3 LNAMP (nginx + apache + php + mysql + zend + pureftpd +phpmyadmin)
4 install all service
5 don't install is now
Please Input1,2,3,4,5: #此时选择要安装的环境即可,一共有5个选项,这里我选择的是1,输入1后回车即可!
0x2 sh lanmp.sh安装服务时遇到的各种报错
问题一:报错:cmake:未找到命令
问题:执行sh lanmp.sh命令后报错
root@kali:~# sh lanmp.sh
lib/mysql.sh:行13: cmake:未找到命令
x86_64----Install Error: mysql configure err
问题一解决方法:
root@kali:~# wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz #下载文件
root@kali:~# tar xzvf cmake-3.13.2.tar.gz -C /usr/bin #解压你想指定的目录后面填写目录路径就好 例如:-C /usr/bin
root@kali:~# /usr/bin/cmake-3.13.2 #进入指定目录
root@kali:~#./bootstrap && make &&make install #安装文件
root@kali:~# cmake -version #查看版本信息
cmake version3.13.2CMake suite maintained and supported by Kitware (kitware.com/cmake).
问题二报错:configure: error: xml2-config not found. Please check your libxml2 installation.
root@kali:~# sh lanmp.sh
checking libxml2 install dir.../usr
checkingfor xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
x86_64----Install Error: php configure err
问题二解决方法:
root@kali:~# apt install libxml2
root@kali:~# apt install libxml2-dev
问题四报错:configure: error: Please reinstall the libcurl distribution -easy.h should be in /include/curl/
root@kali:~# sh lanmp.sh
checkingfor cURL in defaultpath... not found
configure: error: Please reinstall the libcurl distribution-easy.h should bein /include/curl/x86_64----Install Error: php configure err
问题四解决方法:
root@kali:~# apt-getinstall curl
root@kali:~# apt-get install libcurl4-gnutls-dev
root@kali:~# apt-get install php-curl
参考自本篇文章,经个人阅读后修改:https://blog.csdn.net/weixin_39950867/article/details/116849710
更多推荐
所有评论(0)