CentOS 7 LAMP
来源:互联网 发布:python webui 编辑:程序博客网 时间:2024/06/03 23:45
原文地址:http://www.111cn.net/sys/CentOS/63646.htm
原文地址:http://www.litvip.com/520/
# yum install httpd
# systemctl enable httpd.service
# systemctl start httpd.service
# yum install mariadb-server
# systemctl enable mariadb.service
# systemctl start mariadb.service
# cp /etc/my.cnf /etc/my.cnf.bak
# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):<---输入现在的root密码,因为我们还没设置,直接回车
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 <---是否设定root密码,当然设置了,输入Y回车
New password: <---输入root密码,并回车,输入的过程中不会有任何显示
Re-enter new password: <---再次输入root密码,并回车,输入的过程中不会有任何显示
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] Y <---是否删除匿名用户,删除,输入Y回车
... Success!
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] Y <---是否删禁止root用户远程登录,当然禁止,输入Y回车
... Success!
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] <---是否删除测试数据库test,删除,输入Y回车
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] Y <---刷新权限,输入Y回车
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
# systemctl restart mariadb.service
# yum install php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash
# systemctl restart mariadb.service
# systemctl restart httpd.service
# systemctl restart httpd.service
# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
# vi /etc/httpd/conf/httpd.conf
# vi /etc/httpd/conf/httpd.conf
DirectoryIndex index.html index.php
# systemctl restart httpd.service
# vi /var/www/html/index.php
<?php phpinfo(); ?>
0 0
- CentOS 7 LAMP
- Centos 7配置LAMP
- Centos 7配置LAMP
- CentOS 7安装LAMP环境
- LAMP Server on CentOS 7
- centos 7 安装LAMP+PHPMYADMIN
- centos 7 lamp+lnmp环境
- centOs 7 搭建lamp环境
- CentOS 7 配置LAMP环境
- centos 7 lamp+lnmp环境
- Centos Lamp
- CentOS 7搭建LAMP环境(二)
- 在centos 7中搭建lamp平台
- Centos 7 配置LAMP 服务(建站)
- CentOS 7 搭建LAMP 环境 学习笔记
- Centos上安装lamp
- CentOS搭建LAMP
- CentOS编译安装lamp
- C# - Iterator
- PHP的MySQL扩展:PHP访问MySQL的常用扩展函数
- Memcached 的介绍与命令使用
- ScrollView 滚动到最后/前/上/下
- 最大和子数组与最大积子数组(Largest Sum Contiguous Subarray & Maximum Product Subarray)
- CentOS 7 LAMP
- 如何删掉DedeCMS 5.7中自带的织梦链
- JDK安装及环境变量配置
- 主引擎结构入口
- 2014秋季新款韩版潮流女装黑白拼色气质一字领打底收腰显瘦连衣裙F506
- Vijos 1083:小白逛公园 (bzoj 1756)
- 链表知识点(一)【单链表的创建操作】
- 【移动开发】binder阻塞/非阻塞与单向/双向的问题
- sizeof 是运算符而不是关键字