- 浏览: 448715 次
- 性别:
- 来自: 长沙
文章分类
最新评论
-
baijiazi521:
报压缩损坏的解决方案!!!!!!!!!!!!是因为默认的第二个 ...
web services cxf 视频教程 -
李涤尘:
写得太好了。必须顶一个
oracle触发器使用 -
359126613:
你要是在s:Panel 加上title他也不会显示。。。
flex4 创建右键菜单的bug -
BenBen_1989:
[url]web services cxf 视频教程[/url ...
web services cxf 视频教程 -
tengyue5i5j:
楼主帮看下 关于jaxb的两个压缩包都下了 就是解压缺少文件 ...
web services cxf 视频教程
网上的一些文章都已经比较老了,现在版本高了之后,其实配置是很省力的(不考虑什么负载的话)
分享全过程,出了文中提到的安装epel rpmfushion 源指令不同外,其他的过程也适用与Centos 5
1.安装CentOS 6 ,可以选择最小安装,也可以安装桌面
2.升级系统
yum update |
3.安装mysql,并设置mysql开机自启动,同时启动mysql
yum install mysql |
yum install mysql-server |
chkconfig --levels 35 mysqld on |
service mysqld start |
4.配置mysql的root密码
mysql_secure_installation |
Enter current password for root (enter for none): ( 回车)
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] (Y)
New password: (123456)
Re-enter new password: (123456)
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n]
(是否移出数据库的默认帐户,如果移出,那么在终端中直接输入mysql是会提示连接错误的)Y
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n]
(是否禁止root的远程登录)Y
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
5.安装apache,并设置开机启动
yum install httpd |
chkconfig --levels 35 httpd on |
service httpd start |
这时候可以测试apache是否正常工作
直接浏览器访问localhost应该没问题,但是如果别的机子访问不了的话,是因为防火墙的关系,配置防火墙
(后面的ssl还会有这个问题的)
6.安装php
yum install php |
|
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc |
这个时候php就安装完成拉,写个脚本测试一下
vi /var/www/html/info.php |
输入
<?php |
phpinfo();?> |
访问localhost/info.php即可~
7.安装phpMyAdmin
首先先给系统安装epel 和rpmfushion两个软件大仓库
如果是centos 5 的话执行下面
接着安装起来就很方便拉,~根本不需要去下载就可以获得最新的版本
yum install phpmyadmin |
安装完成后还需要配置一下访问权限,使得出了本机外,其他机子也能访问phpMyAdmin
vi /etc/httpd/conf.d/phpMyAdmin.conf |
找到两个directory的权限设置,Allow from 改成All
<Directory /usr/share/phpMyAdmin/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from All
</Directory>
<Directory /usr/share/phpMyAdmin/setup/>
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from All
</Directory>
重启服务器
service httpd restart |
测试localhost/phpMyAdmin
用户名密码:root 123456
OK~ LAMP搭建完毕,
8.搭建SSL,让apache支持https
yum install mod_ssl |
其实安装完这个模块后,重启完apache 就可以用https://localhost测试了,因为他创建了默认的证书
在/etc/pki/tls下
当然我们也可以用openssl创建自己的证书
yum install openssl |
生成证书文件
创建一个rsa私钥,文件名为server.key
openssl genrsa -out server.key 1024 |
Generating RSA private key, 1024 bit long modulus
............++++++
............++++++
e is 65537 (0x10001)
用 server.key 生成证书签署请求 CSR
openssl req -new -key server.key -out server.csr |
Country Name:两个字母的国家代号
State or Province Name:省份名称
Locality Name:城市名称
Organization Name:公司名称
Organizational Unit Name:部门名称
Common Name:你的姓名
Email Address:地址
至于 'extra' attributes 不用输入.直接回车
生成证书CRT文件server.crt。
openssl x509 -days 365 -req -in server.csr -signkey server.key -out server.crt |
修改ssl.conf指定我们自己生成的证书
vi /etc/httpd/conf.d/ssl.conf |
找到如下位置,修改路径
# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. A new
# certificate can be generated using the genkey(1) command.
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
OK
service httpd restart |
一切都搞定拉~~
整个过程我们不需要修改/etc/httpd/conf/httpd.conf 这就是版本高了的好处阿~
发表评论
-
转CentOS下修改httpd.conf开启gzip压缩传输
2014-08-13 10:24 688修改httpd.conf开启gzip压缩传输,本文在Cent ... -
百度与谷哥坐标互转
2014-08-12 10:44 0/*SELECT TEMP.* FROM (select P ... -
Linux中对MySQL优化
2014-07-29 19:16 884要求: MySQL数据库管理与维护 1、熟悉Linux上安 ... -
linux下mysql出现只读错误
2014-07-23 11:45 1317问题解决:Linux下MySql出现#1036 – Tabl ... -
centos安装php的mcrypt扩展
2014-07-23 11:43 642博客:http://ju.outofmemory.cn/en ... -
Apache日志分析常用Shell命令
2014-07-15 16:22 8211、查看apache进程: ps aux | grep ... -
Linux下crontab命令的用法
2014-06-05 16:39 972cron来源于希腊单词chronos(意为“时间”),是li ... -
php怎样把类似价格“20.00元”里的.00替换掉
2014-01-07 16:33 748$price = "20.00"; $p ... -
Apache Rewrite 规则详解(转)
2014-01-03 09:39 736在开篇之前:我想说这篇文章其实是我刚刚接触Rewrite的时 ... -
Linux SVN安装
2013-12-25 16:23 989下载SVN、依赖包以及apache安装文件 ... -
linux服务器状态、性能相关命令
2013-12-25 16:20 817---------查看Linux服务器CPU详细情况---- ... -
file_get_contents无法请求https连接的解决方法
2013-12-04 16:50 974PHP.ini默认配置下,用file_get_content ... -
php中mysqli获取结果集
2013-11-04 17:52 4014$host = 'localhost'; $user = ... -
php 生成二维条形码
2013-09-23 11:24 720<?php function UPCAbarc ... -
处理session跨域几种的方案
2013-09-23 11:11 32919常用跨域共用session的是登录模块,我相信很多开发的朋友 ... -
php过滤请求中数据方法
2013-09-22 16:09 0<?php //get $getfilter = ... -
php表单验证类
2013-09-22 15:31 0<?php //表单验证类 class Check ... -
php 公用函数
2013-09-22 15:29 0<?php //数据过滤函数库 /* ... -
开源框架canphp中mysql与mysqli的连接类
2013-09-22 15:20 1091<?php class cpMysqli { p ... -
php 网址解析
2013-09-18 12:04 820/* 'URL_REWRITE_ON' => ...
相关推荐
安装apache 关闭SELinux 编辑器打开 etc/selinux/config 文件,找到 SELINUX=enforcing 字段,将其改成 SELINUX=disabled ,并重启设备。 yum -y install httpd mod_ssl 配置防火墙 firewall-cmd --permanent --...
centos6.5以上版本,源码编译搭建lamp环境,包含所需源码包以自动编译安装shell脚本,自动添加进系统变量,添加开启启动项,编译后安装后环境支持ssl,curl开启ssl支持,环境为apache2.4+php5.6+mysql5.5,使用时请...
支持ssl,curl开启ssl支持,环境为apache2.4+php5.6+mysql5.5,使用时请在根目录创建一个data目录,然后将源码包以及shell脚本复制到该目录,给install*文件可执行权限,然后执行installall即可。
支持ssl,curl开启ssl支持,环境为apache2.4+php5.6+mysql5.5,使用时请在根目录创建一个data目录,然后将源码包以及shell脚本复制到该目录,给install*文件可执行权限,然后执行installall即可。
支持ssl,curl开启ssl支持,环境为apache2.4+php5.6+mysql5.5,使用时请在根目录创建一个data目录,然后将源码包以及shell脚本复制到该目录,给install*文件可执行权限,然后执行installall即可。
支持ssl,curl开启ssl支持,环境为apache2.4+php5.6+mysql5.5,使用时请在根目录创建一个data目录,然后将源码包以及shell脚本复制到该目录,给install*文件可执行权限,然后执行installall即可。
语音全过程))【】02(在CentOS5.1上编译安装MySql)【】03(编译安装apache.httpd-2.2.8)【】04(安装支持ssl安全性比较高的apache.web服务器)【】05(编译安装GD库.和.ttf字体的支 资源太大,传百度网盘了,链接在附件中...
CentOS7服务器中apache、php7以及mysql5.7的配置代码如下所示: yum upgrade yum install net-tools 安装apache 关闭SELinux 编辑器打开 etc/selinux/config 文件,找到 SELINUX=enforcing 字段,将其改成 SELINUX...
主要介绍了Centos7.4环境安装lamp-php7.0,较为详细的分析了CentOS7.4环境下Apache、mysql、php7.0及phpmyadmin等安装命令与操作注意事项,需要的朋友可以参考下
guacamole-install-rhel-7:用于RHEL 7和CentOS 7的Apache Guacamole安装bash脚本,包括Nginx,HTTPS,SSL,LDAP,Let's Encrypt证书等选项
与上一版本相比,phpstudy v8.1采用了全新界面,操作更清晰,内置最新版本Apache、Nginx、MySQL、FTP、php,并且支持选择不同版本php互不影响。除此之外,phpstudy 8还添加伪静态功能,添加composer,添加自定义SSL...
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql ##备注下 默认apache 配置文件在 /etc/httpd/conf/httpd.conf 2、安装配置MySQL # mysql 客户端程序 # mysql-server 服务端程序 # mysql-devel 开发
centos7服务器一台 域名一个并申请ssl证书 下载apache和tomcat两种格式的证书 服务器环境: jdk11 unzip, zip mysql5.7 screen 环境搭建不再说明,请自行解决 开始搭建: 1.下载源码包后解压,得到以下文件,apache和...
请参考: : 盒子CentOS 6.5 64 位 LAMP虚拟机,非常适合本地开发Yum 的Remi和EPEL存储库NFS , 发送邮件, Git Apache 2 带mod_ssl , MySQL 5 PHP 5 带扩展mysql gd xml mbstring mcrypt NodeJS 、 NPM 、 rubygems ...
eRisemail-基于Linux / MySQL / Hadoop / LDAP的可扩展分布式Mail / XMPP服务器/联合会支持SMTP,POP3,IMAP4,... 支持大尺寸附件的邮件(最大大小为2G) 支持Apache SpamAssassin和推荐Ubuntu或CentOS作为主机OS项目