Centos7+Nginx1.11.7+MysqL5.7.16+PHP7.1.0+openssl-1.1.0c

一、linux 系统限制配置

1、关闭系统防火墙

systemctlstopfirewalld.service关闭防火墙
systemctldisablefirewalld.service禁用防火墙

2、关闭SElinux

sed-i's/SELINUX=.*/SELINUX=disabled/g'/etc/selinux/config
setenforce0selinux立即生效

二、系统安装约定

软件源代码包存放位置:/usr/local/src

源码包编译安装位置:/usr/local/软件名字

三、下载软件包

1、下载Nginx最新稳定版本

wget-P/usr/local/srchttp://Nginx.org/download/Nginx-1.11.7.tar.gz

2、下载MysqL-boost-5.7.16 带boost 如果不带源码安装如果网络环境不会可能会出现错误

wget-P/usr/local/srchttp://cdn.MysqL.com/Downloads/MysqL-5.7/MysqL-boost-5.7.16.tar.gz

3、下载PHP-7.1.0版本

wget-P/usr/local/srchttp://cn2.PHP.net/distributions/PHP-7.1.0.tar.gz

4、下载libmemcached-1.0.18

wget-P/usr/local/srchttps://launchpadlibrarian.net/165454254/libmemcached-1.0.18.tar.gz

5、下载PHP-memcached

yum-yinstallgit
cd/usr/local/src
gitclone-bPHP7https://github.com/PHP-memcached-dev/PHP-memcached.git

6、下载openssl-1.1.0c

wget-P/usr/local/srchttps://www.openssl.org/source/openssl-1.1.0c.tar.gz

四、安装编译器及依赖

yum-yinsyallepel-release
yum-yinstallpatchgccgcc-c++readline-develzlib-devellibffi-devel\
opensslopenssl-develmakeautoconfautomakelibtoolbisonlibxml2\
libxml2-devellibxslt-devellibyaml-develpythonpython-docutils\
cmakeimakeexpat-devellibaiolibaio-develbzrncurses-develwget\
libjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devel\
pcre-develcurl-devellibmcryptlibmcrypt-devel

五、编译安装MysqL-boost-5.7.16 方便再次安装创建MysqL_install.sh脚本

1、MysqL_install.sh内容

#!/bin/bash
#yumupdate-y
#yuminstall-ycmakegcc-c++ncurses-develgccmakeopenssl*
#MysqL安装脚本
DBDIR='/data/MysqL'#MysqL数据存储目录
MysqLDIR='/usr/local/MysqL'#MysqL安装目录
PASSWD='123456'#MysqLroot密码安装完成可远程ip登陆
[-d$DBDIR]||mkdir$DBDIR-p
idMysqL&>/dev/null
if[$?-ne0];then
useraddMysqL-s/sbin/nologin-M
fi
chown-RMysqL:MysqL$DBDIR
cd/usr/local/src
tar-xvfMysqL-boost-5.7.16.tar.gz
cdMysqL-5.7.16
cmake.-DCMAKE_INSTALL_PREFIX=$MysqLDIR\
-DMysqL_DATADIR=$DBDIR\
-DSYSconfdIR=/etc\
-DWITH_INNOBASE_STORAGE_ENGINE=1\
-DWITH_ARCHIVE_STORAGE_ENGINE=1\
-DWITH_BLACKHOLE_STORAGE_ENGINE=1\
-DWITH_READLINE=1\
-DWITH_LIBWRAP=0\
-DMysqL_UNIX_ADDR=/tmp/MysqL.sock\
-DWITH_SSL=system\
-DWITH_ZLIB=system\
-DWITH_BOOST=/usr/local/src/MysqL-5.7.16/boost/boost_1_59_0\
-DDEFAULT_CHARSET=utf8\
-DDEFAULT_COLLATION=utf8_general_ci
if[$?!=0];then
echo"cmakeerror!"
exit1
fi
make&&makeinstall
if[$?-ne0];then
echo"installMysqLisFailed!"&&/bin/false
fi
sleep2
chown-RMysqL:MysqL$MysqLDIR
chown-Rroot:root$MysqLDIR
cp$MysqLDIR/support-files/my-default.cnf/etc/my.cnf
echoexportPATH=$PATH:$MysqLDIR/bin:$MysqLDIR/lib>>/etc/profile
source/etc/profile
cat>>/etc/my.cnf<<EOF
character_set_server=utf8
basedir=$MysqLDIR
datadir=$DBDIR
port=3306
server_id=1
socket=/tmp/MysqL.sock
explicit_defaults_for_timestamp=true
EOF
sed-i's/sql_mode=.*/sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER/g'/etc/my.cnf
source/etc/profile
sleep5
cd$MysqLDIR
cpsupport-files/MysqL.server/etc/init.d/MysqLd
	chmod700/etc/init.d/MysqLd
MysqL_ssl_rsa_setup
rm-rf$DBDIR
MysqLd--initialize--user=MysqL
	if[$?-ne0];then
echo"installMysqLisFailed!"&&/bin/false
fi
#/etc/init.d/MysqLdstop
MysqLd_safe--user=MysqL--skip-grant-tables--skip-networking&
sleep5
echo"updateusersetauthentication_string=Password('$PASSWD')whereuser='root';flushprivileges;"|MysqLMysqL

echo"setpassword=Password('$PASSWD');flushprivileges;"|MysqL-uroot-p$PASSWD--connect-expired-password
sleep5
echo"GRANTALLPRIVILEGESON*.*TOroot@'%'IDENTIFIEDBY'$PASSWD';FLUSHPRIVILEGES;"|MysqL-uroot-p$PASSWD
/etc/init.d/MysqLdrestart
	if[$?-ne0];then
echo"installMysqLisFailed!"&&/bin/false
fi
IDSO=`cat/etc/ld.so.conf|grep$MysqLDIR/lib|wc-l`
if[$IDSO-eq0];then
echo"$MysqLDIR/lib">>/etc/ld.so.conf
ldconfig
fi
chkconfigMysqLdon

2、给MysqL_install.sh 可执行权限

chmod+xMysqL_install.sh

3、运行MysqL_install.sh

./MysqL_install.sh

六、编译安装PHP7 创建PHP安装脚本PHP7_install.sh

1、vimPHP7_install.sh

#!/bin/bash
if[$(find/-nameMysqL|wc-l)-gt1];then
echo"MysqLisinstall"
else
yuminstall-yMysqL
fi
cd/usr/local/src
tar-xzvfPHP-7.1.0.tar.gz
cd./PHP-7.1.0
./configure\
--prefix=/usr/local/PHP7\
--exec-prefix=/usr/local/PHP7\
--with-config-file-path=/usr/local/PHP7/etc\
--with-curl\
--with-freetype-dir\
--with-gd\
--with-gettext\
--with-iconv-dir\
--with-kerberos\
--with-libdir=lib64\
--with-libxml-dir\
--with-MysqLi\
--with-openssl\
--with-pcre-regex\
--with-pdo-MysqL\
--with-pdo-sqlite\
--with-pear\
--with-png-dir\
--with-xmlrpc\
--with-xsl\
--with-zlib\
--with-zlib-dir\
--with-mhash\
--with-mcrypt\
--with-openssl-dir\
--with-jpeg-dir\
--enable-fpm\
--enable-bcmath\
--enable-libxml\
--enable-inline-optimization\
--enable-gd-native-ttf\
--enable-mbregex\
--enable-mbstring\
--enable-opcache\
--enable-pcntl\
--enable-shmop\
--enable-soap\
--enable-sockets\
--enable-sysvsem\
--enable-xml\
--enable-zip
make&&makeinstall

#中文PHP画图取消这个参数,不然会出现乱码
#--enable-gd-jis-conv\

2、给PHP7_install.sh 可执行权限

chmod+xPHP7_install.sh

3、执行PHP7_install.sh

./PHP7_install.sh

4、编译安装libmemcached-1.0.18

vimlibmemcached_install.sh

#/!bin/bash
cd/usr/local/src
tar-zxvflibmemcached-1.0.18.tar.gz
cd./libmemcached-1.0.18
./configure--prefix=/usr/local/libmemcached
make&&makeinstall
chmod+xlibmemcached_install.sh
./libmemcached_install.sh

5、编译安装PHP-memcached

vim memcached_install.sh

#!/bin/bash
cd/usr/local/src/PHP-memcached
/usr/local/PHP7/bin/PHPize
./configure--with-libmemcached-dir=/usr/local/libmemcached\
--with-PHP-config=/usr/local/PHP7/bin/PHP-config\
--disable-memcached-sasl
make&&makeinstall
chmod+xmemcached_install.sh
./memcached_install.sh
留意编完成生成文件路径
Installingsharedextensions:/usr/local/PHP7/lib/PHP/extensions/no-debug-non-zts-20160303/

七、编译安装openssl-1.1.0c

vimopenssl_install.sh

#!/bin/bash
#opensslinstall
cd/usr/local/src
tar-xvfopenssl-1.1.0c.tar.gz
cd/usr/local/src/openssl-1.1.0c
./config--openssldir=/usr/local/ssl
make&&makeinstall
./configshared--openssldir=/usr/local/ssl
makeclean
make&&makeinstall
IDSO=`cat/etc/ld.so.conf|grep/usr/local/lib64|wc-l`
if[$IDSO-eq0];then
echo"/usr/local/lib64">>/etc/ld.so.conf
fi
ldconfig
chmod+xopenssl_install.sh
./openssl_install.sh




八、编译安装Nginx-1.11.7

vimNginx_install.sh

#!/bin/bash
#Nginxinstall
idNginx&>/dev/null
if[$?-ne0];then
groupadd-rNginx
useradd-gNginx-rNginx
fi
cd/usr/local/src
tar-xvfNginx-1.11.7.tar.gz
cd/usr/local/src/Nginx-1.11.7
./configure--prefix=/usr/local/Nginx\
--sbin-path=/usr/sbin/Nginx\
--conf-path=/etc/Nginx/Nginx.conf\
--error-log-path=/var/log/Nginx/error.log\
--http-log-path=/var/log/Nginx/access.log\
--pid-path=/var/run/Nginx.pid\
--lock-path=/var/run/Nginx.lock\
--http-client-body-temp-path=/var/cache/Nginx/client_temp\
--http-proxy-temp-path=/var/cache/Nginx/proxy_temp\
--http-fastcgi-temp-path=/var/cache/Nginx/fastcgi_temp\
--http-uwsgi-temp-path=/var/cache/Nginx/uwsgi_temp\
--http-scgi-temp-path=/var/cache/Nginx/scgi_temp\
--user=Nginx\
--group=Nginx\
--with-http_ssl_module\
--with-http_realip_module\
--with-http_addition_module\
--with-http_sub_module\
--with-http_dav_module\
--with-http_flv_module\
--with-http_mp4_module\
--with-http_gunzip_module\
--with-http_gzip_static_module\
--with-http_random_index_module\
--with-http_secure_link_module\
--with-http_stub_status_module\
--with-http_auth_request_module\
--with-threads\
--with-stream\
--with-openssl=/usr/local/src/openssl-1.1.0c\#openssl源码解压路径
--with-stream_ssl_module\
--with-http_slice_module\
--with-mail\
--with-mail_ssl_module\
--with-file-aio\
--with-http_v2_module\
--with-ipv6
mkdir-pv/var/cache/Nginx/{client_temp,proxy_temp,fastcgi_temp,uwsgi_temp,scgi_temp}
make&&makeinstall

2、给Nginx_install.sh可执行权限

chmod+xNginx_install.sh
./Nginx_install.sh

九、配置PHP7

/usr/local/PHP7/lib/PHP/extensions/no-debug-non-zts-20160303/memcached.so
这个路径是随机可变的所以要注意
留意变完成生成文件路径
Installingsharedextensions:/usr/local/PHP7/lib/PHP/extensions/no-debug-non-zts-20160303/
cd/usr/local/src/PHP-7.1.0
cpPHP.ini-production/usr/local/PHP7/etc/PHP.ini
cp/usr/local/PHP7/etc/PHP-fpm.conf.default/usr/local/PHP7/etc/PHP-fpm.conf
cp/usr/local/PHP7/etc/PHP-fpm.d/www.conf.default/usr/local/PHP7/etc/PHP-fpm.d/www.conf
sed-i"s/user=.*/user=Nginx/g"/usr/local/PHP7/etc/PHP-fpm.d/www.conf
sed-i"s/group=.*/group=Nginx/g"/usr/local/PHP7/etc/PHP-fpm.d/www.conf
cp./sapi/fpm/init.d.PHP-fpm/etc/init.d/PHP-fpm
chmod+x/etc/init.d/PHP-fpm
chkconfigPHP-fpmon
cat>>/usr/local/PHP7/etc/PHP.ini<<EOF
soap.wsdl_cache_enabled=1
max_input_time=600
max_execution_time=300
date.timezone=Asia/Shanghai
post_max_size=32M
memory_limit=128M
mbstring.func_overload=1
extension=/usr/local/PHP7/lib/PHP/extensions/no-debug-non-zts-20160303/memcached.so
EOF
cat>/usr/local/Nginx/html/index.PHP<<EOF
<?PHP
PHPinfo();
?>
EOF
servicePHP-fpmstart

十、配置Nginx

1、重命名:/etc/Nginx/Nginx.conf

mv/etc/Nginx/Nginx.conf/etc/Nginx/Nginx.conf.back

2、新建/etc/Nginx/Nginx.conf

cat>/etc/Nginx/Nginx.conf<<EOF
userNginx;
worker_processes1;

error_log/var/log/Nginx/error.logwarn;
pid/var/run/Nginx.pid;


events{
worker_connections1024;
}


http{
include/etc/Nginx/mime.types;
default_typeapplication/octet-stream;

log_formatmain'\$remote_addr-\$remote_user[\$time_local]"\$request"'
'\$status\$body_bytes_sent"\$http_referer"'
'"\$http_user_agent""\$http_x_forwarded_for"';

access_log/var/log/Nginx/access.logmain;

sendfileon;
#tcp_nopushon;

keepalive_timeout65;

#gzipon;

include/etc/Nginx/conf.d/*.conf;
}
EOF

3、创建/etc/Nginx/conf.d

mkdir-p/etc/Nginx/conf.d

4、创建支持PHP-fpm web Nginx配置

cat>/etc/Nginx/conf.d/default.conf<<EOF
server{
listen80;
server_namelocalhost;

#charsetkoi8-r;

#access_loglogs/host.access.logmain;

location/{
root/usr/local/Nginx/html;
indexindex.PHPindex.htmlindex.htm;
}

#error_page404/404.html;

#redirectservererrorpagestothestaticpage/50x.html
#
error_page500502503504/50x.html;
location=/50x.html{
roothtml;
}

#proxythePHPscriptstoApachelisteningon127.0.0.1:80
#
#location~\.PHP${
#proxy_passhttp://127.0.0.1;
#}

#passthePHPscriptstoFastCGIserverlisteningon127.0.0.1:9000
#
location~\.PHP${
root/usr/local/Nginx/html;
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.PHP;
fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;
includefastcgi_params;
}
location~*^.+\.(jpg|jpeg|gif|png|bmp)${
access_logoff;
rootopencart;
expires30d;
break;
}
}
EOF

5、创建Nginx启动脚本

vim/etc/init.d/Nginx

#chkconfig:23451090
#description:StartandStopNginx

PATH=/usr/local/bin:/sbin:/usr/bin:/bin

EXEC=/usr/sbin/Nginx
PIDFILE=/var/run/Nginx.pid
CONF="/etc/Nginx/Nginx.conf"
AUTH="1234"

case"$1"in
start)
if[-f$PIDFILE]
then
echo"$PIDFILEexists,processisalreadyrunningorcrashed."
else
echo"StartingNginxserver..."
$EXEC-c$CONF&
fi
if["$?"="0"]
then
echo"Nginxisrunning..."
fi
;;
stop)
if[!-f$PIDFILE]
then
echo"$PIDFILEexists,processisnotrunning."
else
PID=$(cat$PIDFILE)
echo"Stopping..."
kill-9$PID
PID=$(pidofNginx)
kill-9$PID
rm-rf/var/run/Nginx.pid
sleep2
while[-x$PIDFILE]
do
echo"WaitingforNginxtoshutdown..."
sleep1
done
echo"Nginxstopped"
fi
;;
reload)

$EXEC-sreload
;;
restart|force-reload)
${0}stop
${0}start
;;
*)
echo"Usage:/etc/init.d/Nginx{start|stop|restart|force-reload|reload}">&2
exit1
esac

6、给/etc/init.d/Nginx 可执行权限

chmod+x/etc/init.d/Nginx

7、设置开机启动

chkconfigNginxon

8、启动Nginx

serviceNginxstart

十一、测试

[root@QKA169src]#opensslversion
OpenSSL1.1.0c10Nov2016
MysqL-uroot-p123456
MysqL>showdatabases;
+--------------------+
|Database|
+--------------------+
|information_schema|
|MysqL|
|performance_schema|
|sys|
+--------------------+
4rowsinset(0.00sec)
看看是否登陆成功。远程带IP是否登陆成功
MysqL-uroot-h192.168.1.69-p123456
MysqL>showdatabases;
+--------------------+
|Database|
+--------------------+
|information_schema|
|MysqL|
|performance_schema|
|sys|
+--------------------+
4rowsinset(0.00sec)

MysqL:[Warning]Usingapasswordonthecommandlineinterfacecanbeinsecure.
WelcometotheMysqLmonitor.Commandsendwith;or\g.
YourMysqLconnectionidis6
Serverversion:5.7.16Sourcedistribution

copyright(c)2000,2016,Oracleand/oritsaffiliates.Allrightsreserved.

OracleisaregisteredTrademarkofOracleCorporationand/orits
affiliates.OthernamesmaybeTrademarksoftheirrespective
owners.

Type'help;'or'\h'forhelp.Type'\c'toclearthecurrentinputstatement.

MysqL>

测试Nginx 是否能打开

[root@QKA169html]#ps-ef|grepPHP-fpm
root3374331018:03?00:00:00PHP-fpm:masterprocess(/usr/local/PHP7/etc/PHP-fpm.conf)
nobody337434337433018:03?00:00:00PHP-fpm:poolwww
nobody337435337433018:03?00:00:00PHP-fpm:poolwww
root33745437888018:12pts/000:00:00grep--color=autophp-fpm
[root@QKA169html]#ps-ef|grepNginx
root3374001018:01?00:00:00Nginx:masterprocess/usr/sbin/Nginx-c/etc/Nginx/Nginx.conf
Nginx337401337400018:01?00:00:00Nginx:workerprocess
root33745637888018:13pts/000:00:00grep--color=autoNginx
[root@QKA169html]#netstat-nalp|grep80
tcp000.0.0.0:800.0.0.0:*LISTEN337400/Nginx:maste
tcp00192.168.1.69:80192.168.6.6:54714TIME_WAIT-
tcp00192.168.1.69:80192.168.6.6:54709TIME_WAIT-
远程打开
http://192.168.1.69/

wKiom1hSbT2gzHsoAAD4dIlB26o921.png-wh_50


到此lnmp源码安装完成

CentOS 7.0源码包搭建LNMP 实际环境搭建的更多相关文章

  1. HTML实现代码雨源码及效果示例

    这篇文章主要介绍了HTML实现代码雨源码及效果示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

  2. 从iOS应用程序发送帖子到PHP脚本不工作…简单的解决方案就像

    我之前已经做了好几次了但是由于某些原因我无法通过这个帖子…我尝试了设置为_POST且没有的变量的PHP脚本……当它们未设置为发布时它工作精细.这是我的iOS代码:这里是PHP的一大块,POST变量不在正确的位置?我想这对于更有经验的开发人员来说是一个相当简单的答案,感谢您的帮助!解决方法$_POST是一个数组,而不是一个函数.您需要使用方括号来访问数组索引:

  3. 源码推荐:简化Swift编写的iOS动画,iOS Material Design库

    本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请发送邮件至dio@foxmail.com举报,一经查实,本站将立刻删除。

  4. swift皮筋弹动发射飞机ios源码

    这是一个款采用swift实现的皮筋弹动发射飞机游戏源码,游戏源码比较详细,大家可以研究学习一下吧。

  5. swift 写的app 源码,保存一下下

    http://www.topthink.com/topic/3345.htmlhttp://www.csdn.net/article/2015-01-09/2823502-swift-open-source-libs

  6. swift 源码网站 code4app

    http://code4app.com/ios/HTHorizontalSelectionList/54cb2c94933bf0883a8b4583http://123.th7.cn/code/DMPagerViewController_2522.html

  7. OpenStack Swift源码导读:业务整体架构和Proxy进程

    OpenStack的源码分析在网上已经非常多了,针对各个部分的解读亦是非常详尽。其中proxy是前端的业务接入进程。account、container和object目录分别是账户、容器和对象的业务处理逻辑进程。各个业务进程或模块之间的逻辑关系可以参考《OpenstackSwift简介》文中的架构图。在《OpenstackSwift简介》从理论上面介绍了具体的节点寻找过程。

  8. 源码推荐(7.21):顶部滑动菜单FDSlideBar,Swift版无限循环轮播图

    顶部滑动菜单FDSlideBarFDSlideBar是一个顶部滑动菜单,如常见的网易、腾讯新闻等样式。菜单间切换流畅,具有较好的体验性。测试环境:Xcode6.2,iOS6.0以上Swift版无限循环轮播图无限循环轮播图片点击代理可设置图片Url的数组Url和本地图片混合轮播测试环境:Xcode6.2,iOS7.0以上弹幕系统实现--QHDanumuDemo说明:QHDanmu文件夹下是主要的弹幕模块系统,QHDanmuSend文件夹下是简单的发射弹幕的界面。

  9. openstack swift和wsgi源码分析1 HTTP请求处理过程

    分析proxy-server代理服务的执行流程,其他的三个主要服务accountserver,containerserver,objectserver执行过程通proxyserver类似。入口函数调用run_wsgi,此函数完成以下工作:下面重点研究下process_request函数是如何把消息转化为HTTP的request对象这一过程。process_request函数,生成HttpProtocol对象,并执行init操作,注意,HttpProtocol对象自身没有init函数,所以会调用父类的父类的

  10. fir.im Weekly - 进击的 Swift

    最近Swift开源了,众开发者们欢呼雀跃。本期fir.imWeekly准备了一些关于Swift的“新鲜”干货分享,也包括一些优秀的GitHub源码、开发工具和技术文章等等。同时,苹果启用了新的官网:Swift.org,Swift的GitHub主页:https://github.com/apple/swiftSwift3API设计准则勤快的@星夜暮晨翻译了苹果Swift官方网站博客的一篇文章:Swift3APIDesignGuidelines,了解Swift3特性,希望对你有所帮助。如何在iOS中实现一个可

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部