(作者:海丁香)
注:以下命令不能实现则在开头加sudo赋权。
Debian10.2安装oneinstack:
安装方法一:
下载解压安装
安装过程出错:make error
make[2]: Leaving directory '/root/oneinstack/src/openssl-1.1.1d'
make[1]: Leaving directory '/root/oneinstack/src/nginx-1.16.1'
make: *** [Makefile:8: build] Error 2
Nginx install failed, Please Contact the author!
Killed
root@debian:~/oneinstack# /bin/cp: cannot stat '../init.d/nginx.service': No such file or directory
sed: can't read /lib/systemd/system/nginx.service: No such file or directory
Failed to enable unit: Unit file nginx.service does not exist.
mv: cannot stat '/usr/local/nginx/conf/nginx.conf': No such file or directory
/bin/cp: cannot stat '../config/nginx_apache.conf': No such file or directory
include/nginx.sh: line 63: /usr/local/nginx/conf/proxy.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
sed: can't read /usr/local/nginx/conf/nginx.conf: No such file or directory
Failed to start nginx.service: Unit nginx.service not found.
解决办法:apt安装g++或者yum安装gcc-c++;
apt-get install g++
cpp、gcc版本过新不匹配:
The following packages have unmet dependencies:
g++ : Depends: cpp (= 4:8.3.0-1) but 4:9.2.1-3.1 is to be installed
Depends: gcc (= 4:8.3.0-1) but 4:9.2.1-3.1 is to be installed
E: Unable to correct problems, you have held broken packages.
解决办法:卸载cpp和gcc;
apt-get --purge remove cpp gcc
安装方法二:
wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_option 3 --apache_option 1 --apache_mpm_option 1 --apache_mode_option 1 --php_option 4 --phpcache_option 1 --php_extensions ioncube,imagick --phpmyadmin --db_option 2 --dbinstallmethod 1 --dbrootpwd junch --pureftpd --redis --memcached --iptables --reboot
报错:
mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz download failed, Please contact the author!
解决办法:
mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz下载不完整,安装前将mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz下载放到oneinstack / src。
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz
不完整原因是下载过程网络不畅卡住。其实不用上面的办法,把原来下载好的包删除重下即可。
但,多次重装报错1:
--2019-12-24 12:36:48-- http://mirrors.linuxeye.com/oneinstack-full.tar.gz
正在解析主机 mirrors.linuxeye.com (mirrors.linuxeye.com)... 61.160.200.234
正在连接 mirrors.linuxeye.com (mirrors.linuxeye.com)|61.160.200.234|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 416 Requested Range Not Satisfiable
文件已下载完成;不会进行任何操作。
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Error is not recoverable: exiting now
报错2:
E: Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)
E: Setting in Stop via TCSAFLUSH for stdin failed! - tcsetattr (5: Input/output error)
报错3(系统为debian10.2中文版):
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
0 upgraded, 0 newly installed, 1 to remove and 103 not upgraded.
报错4(无关紧要):
Your system Debian stable-updates are not supported!
已杀死
天啊,实在好麻烦,重装成英文版算了。