开始之前的话:

1.配置好服务器防火墙的443端口规则;

2.购买好证书文件,我是沃通证书,准备好证书,这里不演示证书的购买和安装。

3.根据服务器类型下载文件,apache一共有4个文件

这里提供沃通apache安装ssl教程,百度云盘连接:链接:https://pan.baidu.com/s/1okIKQ67PtR82XFYXYhiK7w  提取码:jfj5

4.我的apache是编译安装的,文件目录在/usr/local/apache    按照以上文档设置后发现是缺少mod-ssl.so这个模块的。所以我设置好配置文件后重启服务直接报错

[root@www bin]# ./apachectl -k restart
Syntax error on line of /usr/local/apache/conf/extra/httpd-ssl.conf:
Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration

查阅资料发现也的确是这个模块未安装,因为是编译安装的,所以只能下载对应的版本文件上传编译安装这个模块

5.查找自己的apache版本:

[root@www bin]# ./apachectl -v
Server version: Apache/2.2. (Unix)
Server built: Aug ::

是apache/2.2.34版本,

6.根据服务器apache版本下载对应版本:apache历史版本下载 (好像要梯子,我是直接香港服务器下载的)

去官网下载对应的版本httpd2.2.34.tar.gz

7.解压下载的版本文件 将modules下的loggers,ssl两个文件【一定是两个文件否则出错】放到服务器端apache的modules下

[root@www apache]# cd modules/
[root@www modules]# ls ##这里是没有要上传的两个文件目录
httpd.exp mod_authn_dbd.so mod_authz_owner.so mod_deflate.so mod_ident.so mod_mime.so mod_suexec.so
libphp5.so mod_authn_dbm.so mod_authz_user.so mod_dir.so mod_imagemap.so mod_negotiation.so mod_unique_id.so
mod_actions.so mod_authn_default.so mod_autoindex.so mod_dumpio.so mod_include.so mod_reqtimeout.so mod_userdir.so
mod_alias.so mod_authn_file.so mod_cern_meta.so mod_env.so mod_info.so mod_rewrite.so mod_usertrack.so
mod_asis.so mod_authz_dbm.so mod_cgi.so mod_expires.so mod_log_config.so mod_setenvif.so mod_version.so
mod_auth_basic.so mod_authz_default.so mod_dav_fs.so mod_ext_filter.so mod_log_forensic.so mod_speling.so mod_vhost_alias.so
mod_auth_digest.so mod_authz_groupfile.so mod_dav.so mod_filter.so mod_logio.so mod_status.so
mod_authn_anon.so mod_authz_host.so mod_dbd.so mod_headers.so mod_mime_magic.so mod_substitute.so
[root@www modules]# ll ###在这个文件目录下也没有所需的mod_ssl.so模块
total
-rw-r--r-- root root Aug httpd.exp
-rwxr-xr-x root root Aug libphp5.so
drwxr-xr-x root root Jul : loggers ##上传好的文件
-rwxr-xr-x root root Aug mod_actions.so
-rwxr-xr-x root root Aug mod_alias.so
-rwxr-xr-x root root Aug mod_asis.so
-rwxr-xr-x root root Aug mod_auth_basic.so
-rwxr-xr-x root root Aug mod_auth_digest.so
-rwxr-xr-x root root Aug mod_authn_anon.so
-rwxr-xr-x root root Aug mod_authn_dbd.so
-rwxr-xr-x root root Aug mod_authn_dbm.so
-rwxr-xr-x root root Aug mod_authn_default.so
-rwxr-xr-x root root Aug mod_authn_file.so
-rwxr-xr-x root root Aug mod_authz_dbm.so
-rwxr-xr-x root root Aug mod_authz_default.so
-rwxr-xr-x root root Aug mod_authz_groupfile.so
-rwxr-xr-x root root Aug mod_authz_host.so
-rwxr-xr-x root root Aug mod_authz_owner.so
-rwxr-xr-x root root Aug mod_authz_user.so
-rwxr-xr-x root root Aug mod_autoindex.so
-rwxr-xr-x root root Aug mod_cern_meta.so
-rwxr-xr-x root root Aug mod_cgi.so
-rwxr-xr-x root root Aug mod_dav_fs.so
-rwxr-xr-x root root Aug mod_dav.so
-rwxr-xr-x root root Aug mod_dbd.so
-rwxr-xr-x root root Aug mod_deflate.so
-rwxr-xr-x root root Aug mod_dir.so
-rwxr-xr-x root root Aug mod_dumpio.so
-rwxr-xr-x root root Aug mod_env.so
-rwxr-xr-x root root Aug mod_expires.so
-rwxr-xr-x root root Aug mod_ext_filter.so
-rwxr-xr-x root root Aug mod_filter.so
-rwxr-xr-x root root Aug mod_headers.so
-rwxr-xr-x root root Aug mod_ident.so
-rwxr-xr-x root root Aug mod_imagemap.so
-rwxr-xr-x root root Aug mod_include.so
-rwxr-xr-x root root Aug mod_info.so
-rwxr-xr-x root root Aug mod_log_config.so
-rwxr-xr-x root root Aug mod_log_forensic.so
-rwxr-xr-x root root Aug mod_logio.so
-rwxr-xr-x root root Aug mod_mime_magic.so
-rwxr-xr-x root root Aug mod_mime.so
-rwxr-xr-x root root Aug mod_negotiation.so
-rwxr-xr-x root root Aug mod_reqtimeout.so
-rwxr-xr-x root root Aug mod_rewrite.so
-rwxr-xr-x root root Aug mod_setenvif.so
-rwxr-xr-x root root Aug mod_speling.so
-rwxr-xr-x root root Aug mod_status.so
-rwxr-xr-x root root Aug mod_substitute.so
-rwxr-xr-x root root Aug mod_suexec.so
-rwxr-xr-x root root Aug mod_unique_id.so
-rwxr-xr-x root root Aug mod_userdir.so
-rwxr-xr-x root root Aug mod_usertrack.so
-rwxr-xr-x root root Aug mod_version.so
-rwxr-xr-x root root Aug mod_vhost_alias.so
drwxr-xr-x root root Jul : ssl ##上传好的文件

8.cd到服务端的modules/ssl目录;执行命令: apxs -i -c -a -D HAVE_OPENSSL=1 -I /usr/include/openssl -lcrypto -lssl -ldl *.c 即可

[root@www modules]# cd ssl/
[root@www ssl]# ls
config.m4 mod_ssl.mak ssl_engine_dh.c ssl_engine_pphrase.c ssl_expr_parse.c ssl_scache.c ssl_util_ssl.c
Makefile.in NWGNUmakefile ssl_engine_init.c ssl_engine_rand.c ssl_expr_parse.h ssl_scache_dbm.c ssl_util_ssl.h
mod_ssl.c README ssl_engine_io.c ssl_engine_vars.c ssl_expr_parse.y ssl_scache_dc.c
mod_ssl.dep README.dsov.fig ssl_engine_kernel.c ssl_expr.c ssl_expr_scan.c ssl_scache_shmcb.c
mod_ssl.dsp README.dsov.ps ssl_engine_log.c ssl_expr_eval.c ssl_expr_scan.l ssl_toolkit_compat.h
mod_ssl.h ssl_engine_config.c ssl_engine_mutex.c ssl_expr.h ssl_private.h ssl_util.c
[root@www ssl]# apxs -i -c -a -D HAVE_OPENSSL=1 -I /usr/include/openssl -lcrypto -lssl -ldl *.c
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o mod_ssl.lo mod_ssl.c && touch mod_ssl.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_config.lo ssl_engine_config.c && touch ssl_engine_config.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_dh.lo ssl_engine_dh.c && touch ssl_engine_dh.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_init.lo ssl_engine_init.c && touch ssl_engine_init.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_io.lo ssl_engine_io.c && touch ssl_engine_io.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_kernel.lo ssl_engine_kernel.c && touch ssl_engine_kernel.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_log.lo ssl_engine_log.c && touch ssl_engine_log.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_mutex.lo ssl_engine_mutex.c && touch ssl_engine_mutex.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_pphrase.lo ssl_engine_pphrase.c && touch ssl_engine_pphrase.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_rand.lo ssl_engine_rand.c && touch ssl_engine_rand.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_engine_vars.lo ssl_engine_vars.c && touch ssl_engine_vars.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_expr.lo ssl_expr.c && touch ssl_expr.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_expr_eval.lo ssl_expr_eval.c && touch ssl_expr_eval.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_expr_parse.lo ssl_expr_parse.c && touch ssl_expr_parse.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_expr_scan.lo ssl_expr_scan.c && touch ssl_expr_scan.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_scache.lo ssl_scache.c && touch ssl_scache.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_scache_dbm.lo ssl_scache_dbm.c && touch ssl_scache_dbm.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_scache_dc.lo ssl_scache_dc.c && touch ssl_scache_dc.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_scache_shmcb.lo ssl_scache_shmcb.c && touch ssl_scache_shmcb.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_util.lo ssl_util.c && touch ssl_util.slo
/usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/local/apache/include -I/usr/include/openssl -DHAVE_OPENSSL= -c -o ssl_util_ssl.lo ssl_util_ssl.c && touch ssl_util_ssl.slo
/usr/local/apache/build/libtool --silent --mode=link gcc -o mod_ssl.la -lcrypto -lssl -ldl -rpath /usr/local/apache/modules -module -avoid-version ssl_util_ssl.lo ssl_util.lo ssl_scache_shmcb.lo ssl_scache_dc.lo ssl_scache_dbm.lo ssl_scache.lo ssl_expr_scan.lo ssl_expr_parse.lo ssl_expr_eval.lo ssl_expr.lo ssl_engine_vars.lo ssl_engine_rand.lo ssl_engine_pphrase.lo ssl_engine_mutex.lo ssl_engine_log.lo ssl_engine_kernel.lo ssl_engine_io.lo ssl_engine_init.lo ssl_engine_dh.lo ssl_engine_config.lo mod_ssl.lo
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_ssl.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp mod_ssl.la /usr/local/apache/modules/
libtool: install: cp .libs/mod_ssl.so /usr/local/apache/modules/mod_ssl.so
libtool: install: cp .libs/mod_ssl.lai /usr/local/apache/modules/mod_ssl.la
libtool: install: cp .libs/mod_ssl.a /usr/local/apache/modules/mod_ssl.a
libtool: install: chmod /usr/local/apache/modules/mod_ssl.a
libtool: install: ranlib /usr/local/apache/modules/mod_ssl.a
libtool: finish: PATH="/usr/local/mysql/bin:/usr/local/php/bin:/usr/local/apache/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache/modules ###库已经安装在这个目录,安装完成 If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
----------------------------------------------------------------------
chmod /usr/local/apache/modules/mod_ssl.so
[activating module `ssl' in /usr/local/apache/conf/httpd.conf]

9.再次返回modlues目录可以看到已经安装mod_ssl.so

root@www ssl]# cd ..
[root@www modules]# ls
httpd.exp mod_authn_dbd.so mod_authz_user.so mod_dumpio.so mod_info.so mod_setenvif.so mod_version.so
libphp5.so mod_authn_dbm.so mod_autoindex.so mod_env.so mod_log_config.so mod_speling.so mod_vhost_alias.so
loggers mod_authn_default.so mod_cern_meta.so mod_expires.so mod_log_forensic.so mod_ssl.so ssl
mod_actions.so mod_authn_file.so mod_cgi.so mod_ext_filter.so mod_logio.so mod_status.so
mod_alias.so mod_authz_dbm.so mod_dav_fs.so mod_filter.so mod_mime_magic.so mod_substitute.so
mod_asis.so mod_authz_default.so mod_dav.so mod_headers.so mod_mime.so mod_suexec.so
mod_auth_basic.so mod_authz_groupfile.so mod_dbd.so mod_ident.so mod_negotiation.so mod_unique_id.so
mod_auth_digest.so mod_authz_host.so mod_deflate.so mod_imagemap.so mod_reqtimeout.so mod_userdir.so
mod_authn_anon.so mod_authz_owner.so mod_dir.so mod_include.so mod_rewrite.so mod_usertrack.so

10.重启web服务器 ./apachectl -k restart即可 因为我的apache是编译安装的,所以在apache的安装目录下的bin文件目录中执行这个重启命令

[root@www bin]# ./ap
apachectl apr--config apu--config apxs
[root@www bin]# ./apachectl -k restart
[root@www bin]#

11.查看https已经生效。

12.最后:如果不是缺少了这个mod_ssl.conf模块的话不能正常加载的话那请一定按照百度云盘分享的apache教程来弄,不要漏过步骤,

每个apche版本不一样,可能有一些文件命令不一样和路径,但请记住一定按照教程来,通用性比较高,我的版本很低和这个教程有些路径也不太一样。

但是原理都一样,如果不能成功配置请多检查一下吧,本人亲测可以使用!

linux Apache设置https访问以及加载mod_ssl.so模块以及问题解决的更多相关文章

  1. Linux Apache配置https访问

    配置https访问 该环境是rh254课程配套的一个环境,不过配置方法步骤相同. 要求: 使用虚拟主机技术部署两个网站: 网站1: 绑定域名 www0.example.com 目录在 /srv/www ...

  2. Golang设置https访问,以及http如何重定向到https

    设置https访问: 原始代码为http监听: func main() { server := &http.Server{ Addr: ":8080", ... } go ...

  3. Linux下c函数dlopen实现加载动态库so文件代码举例

    dlopen()是一个强大的库函数.该函数将打开一个新库,并把它装入内存.该函数主要用来加载库中的符号,这些符号在编译的时候是不知道的.这种机制使得在系统中添加或者删除一个模块时,都不需要重新编译了. ...

  4. 关于解决 https 网站无法加载 http 脚本

    前几天刚配置好https网站 然后今天浏览发现自己网站的地图插件不见了 然后看了一下报错显示 然后百度搜索一番找到了解决办法 <meta http-equiv="Content-Sec ...

  5. 深入理解LINUX下动态库链接器/加载器ld-linux.so.2

    [ld-linux-x86-64.so.2] 最近在Linux 环境下开发,搞了好几天 Compiler 和 linker,觉得有必要来写一篇关于Linux环境下 ld.so的文章了,google上搜 ...

  6. 如何查看apache加载了哪些模块

    apache2/bin/apachectl -l 可以看到类似下面的结果: 这是编译时就已编译在apache中的模块,启动时自然会加载. 另外一部分,要看apach的配置文件(httpd.conf)的 ...

  7. Linux可以把vmdk当做磁盘加载进去

    VMware虚拟机由于停电,无法启动MAC系统 下午的时候,正在开发ios app,结果停电了.当时还不知道,伴随而来的灾难竟然折腾了好几天,真是心力交瘁. 我是在VMware虚拟机下装的Mac os ...

  8. 查看apache httpd server中加载了哪些模块

    说明: 有的时候,需要查看当前apache中都加载了哪些模块,通过以下命令进行查看 [root@hadoop1 httpd-]# bin/apachectl -t -D DUMP_MODULES Lo ...

  9. Nginx+PHP(FastCGI)高性能服务器加载redis+memcache模块

    1)Nginx+FastCGI安装配置: yum install  openssl openssl-devel pcre-devel pcre zlib zlib-devel –y #下载Nginx源 ...

随机推荐

  1. react 父组件向子组件传递函数

    这段时间一直在使用react,由于这react是单向数据绑定,总感觉有点不适用,毕竟之前一直都在使用angular,但学习还是要继续,做了一个迭代的项目,都差点忘记要总结一下这个react了,现在可以 ...

  2. background意识(两)

    今天看到了有关学习的价值的文章background于 [0积分下载我的小Demo]

  3. 理解c#

    首先在介绍c#的时候我们要先理解什么是.NET,.NET就是微软的用来实验XML,Web Services,SOA(面向服务的体系结构service-oriented architecture)和敏捷 ...

  4. 微信公众平台通用接口API指南

    微信公众平台 通用接口 消息接口 开发模式 作者:方倍工作室原文:http://www.doucube.com/index.php?m=Article&a=show&id=5 微信公众 ...

  5. Java -Android 得知(第四天)

    添加一个新的Activity    我们已经了解到一个Activity就相当于是一个界面(当然了.这样说并不严格,但易于理解). 当我们创建一个安卓应用程序之后.就默认创建了: ①.一个继承Activ ...

  6. 加快QT工程编译速度(还可给Qt for Android设置)

    一.多核编译 环境:win10, Qt 5.4.1,编译器mingw32 项目: Qt for Android Qt Creator 在编译android项目时不支持预编译,默认cpu单核编译,工程稍 ...

  7. 一个字体,大小,颜色可定义的自绘静态框控件-XColorStatic 类(比较好看,一共19篇自绘文章)

    翻译来源:https://www.codeproject.com/Articles/5242/XColorStatic-a-colorizing-static-control XColor Stati ...

  8. 算法之--字符串包含【python实现】

    题目描述 给定两个分别由字母组成的字符串A和字符串B,字符串B的长度比字符串A短.请问,如何最快地判断字符串B中所有字母是否都在字符串A里? 为了简单起见,我们规定输入的字符串只包含大写英文字母,请实 ...

  9. WPF应用程序如何重启当前的Application

    // Restart current process Method 1 System.Windows.Forms.Application.Restart(); Application.Current. ...

  10. Android零基础入门第77节:Activity任务栈和启动模式

    通过前面的学习,Activity的基本使用都已掌握,接下来一起来学习更高级的一些内容. Android采用任务栈(Task)的方式来管理Activity的实例.当启动一个应用时,Android就会为之 ...