wdcp安装常见问题
步骤
方法
修改 root 密码 执行命令sudo passwd root
输入密码 可以和 ubuntu 密码一致,也可以修改 (密码会让你输入两次)
修改 ssh 配置 执行命令sudo vi /etc/ssh/sshd_config
修 改 PermitRootLogin
进入 ssh 配置界面后找到PermitRootLogin,将它后面改为yes,保存
(按i进入编辑模式,编辑完esc退出,:w保存当前文件,:q退出)
重启 ssh 服务
执行命令sudo service ssh restart
ubuntu安装mysql报错,然后安装nginx报错,然后安装php报错,因为安装得是集成环境,LANMP。
报错如下:
configure in progress …
lib/mysql.sh: line 13: cmake: command not found
x86_64
—-Install Error: mysql configure err ———–
以下是所有报错的正确修复方案:
安装cmake:apt install cmake
切换到mysql目录下:cd /root/src/mysql-5.5.62/
删除文件:rm -f CMakeCache.txt
apt install libncurses5-dev
apt-get install libssl-dev
apt-get install libxml2
apt-get install libxml2-dev
apt-get install curl
apt-get install libcurl4-gnutls-dev
apt-get install libpng
apt-get install libpng-devel
apt-get install libjpeg-dev
apt-get install libpng-dev
apt-get install libxpm-dev
apt-get install libfreetype6-dev
apt-get install libt1-dev
apt-get install libmcrypt-dev
apt-get install libmysql++-dev
apt-get install libxslt1-dev
apt-get install autoconf
apt-get install gcc build-essential
继续执行:sh lanmp.sh
正确解决方案如上,而不是网上说的那一堆乱七八糟的,并不适用于ubuntu,反而会爆出更多的错误,linux各版本之间存在很多不一样的地方,不能一概而论的说是linux报错解决方案,只有对应系统的解决方案才是有用的。
sudo dpkg-reconfigure dash
运行后 选择no。
sudo sh lanmp.sh即可安装
安装nginx的时候出现
./configure: error: SSL modules require the OpenSSL library.
解决方法:
Centos需要安装openssl-devel
Ubuntu则需要安装:sudo apt-get install libssl-dev
Ubuntu
sudo apt-get install zlib1g-dev
+ ngx_http_echo_module was configured
checking for PCRE library … found
checking for PCRE JIT support … not found
checking for OpenSSL library … not found
./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using –with-openssl=
解决办法:
sudo apt-get install openssl libssl-dev
cmake错误
安装g++和gcc 试试
在使用luarocks安装luasoap时,出现了expat.h: No such file or directory……的问题
在安装了libexpat1-dev之后解决
apt-get install libexpat1-dev
Linux源码预编译安装mysql5.7报错Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)解决办法:
报错:
Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
CMake Error at cmake/readline.cmake:82 (MESSAGE):
Curses library not found. Please install appropriate package,
解决办法:
rm -f CMakeCache.txt
yum install ncurses-devel bison -y