当前位置: 首页 > news >正文

网站免费模板制作建设网站需要什么设施?

网站免费模板制作,建设网站需要什么设施?,html5在线代码编辑器,建设银行激活网站LNMP架构 LNMP是指一组通常一起使用来运行动态网站或者服务器的自由软件名称首字母缩写。L指Linux#xff0c;N指Nginx#xff0c;M一般指MySQL#xff0c;也可以指MariaDB#xff0c;P一般指PHP#xff0c;也可以指Perl或Python。 1.Linux是一类Unix计算机操作系统的统称…LNMP架构 LNMP是指一组通常一起使用来运行动态网站或者服务器的自由软件名称首字母缩写。L指LinuxN指NginxM一般指MySQL也可以指MariaDBP一般指PHP也可以指Perl或Python。 1.Linux是一类Unix计算机操作系统的统称是目前最流行的免费操作系统。代表版本有debian、centos、ubuntu、fedora、gentoo等。 2.Nginx是一个高性能的HTTP和反向代理服务器也是一个IMAP/POP3/SMTP代理服务器。 3.Mysql是一个小型关系型数据库管理系统。 4.PHP是一种在服务器端执行的嵌入HTML文档的脚本语言。 这四种软件均为免费开源软件组合到一起成为一个免费、高效、扩展性强的网站服务系统。 部署过程 1.初始化Centos8虚拟机系统。 (1)通过命令挂载Centos8操作镜像 mount /dev/cdrom /mnt/cdrom 2配置本地源文件 vi /etc/yum.repos.d/base.repo #使用vi编辑器编辑本地源文件[base-app] namebase-app baseurlfile:///mnt/cdrom/BaseOS enabled1 gpgcheck0[base-AppStream] namebase-AppStream baseurlfile:///mnt/cdrom/AppStream enabled1 gpgcheck0 (3)创建备份源目录将/etc/yum.repos.d下以Centos-*开头的源文件移动至备份源目录 mkdir /etc/yum.repos.d/bak mv /etc/yum.repos.d/Centos-* /etc/yum.repos.d/bak/ (4)使用dnf命令清理再加载缓存 dnf clean all dnf makecache 2.安装LNMP架构基础服务。 由于Centos8上可以直接通过dnf/yum命令对Nginx、MySQL、PHP服务进行安装本文中将直接使用本地安装。 1使用dnf命令安装Nginx dnf install -y nginx 2使用dnf命令安装MySQL dnf install -y mysql*3使用dnf命令安装PHP及依赖包 dnf install -y php php-fpm 3.通过systemctl命令设置服务开机自启。 1通过systemctl命令设置Nginx服务开机自启 systemctl enable --now nginx systemctl start nginx 2通过systemctl命令启动Mysql服务并设置开机自启 systemctl enable --now mysqld systemctl start mysqld 3通过systemctl命令启动并设置PHP服务开机自启 systemctl enable --now php-fpm systemctl start php-fpm 4.设置MySQL数据服务器配置。 1初始化数据库将密码设置为1qazWSX mysql_secure_installation \\初始化mysqld服务New password: \\输入1qazWSXRe-enter new password: Estimated strength of the password: 100 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y 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? (Press y|Y for Yes, any other key for No) : ... skipping.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? (Press y|Y for Yes, any other key for No) : ... skipping. 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? (Press y|Y for Yes, any other key for No) : ... skipping. Reloading the privilege tables will ensure that all changes made so far will take effect immediately.Reload privilege tables now? (Press y|Y for Yes, any other key for No) : ... skipping. All done! 2测试连接数据库成功进入数据库服务器 mysql -uroot -pEnter password: \\输入密码 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 Server version: 8.0.13 Source distributionCopyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.Type help; or \h for help. Type \c to clear the current input statement.mysql 5.配置Nginx与PHP间的连接。 1使用vim编辑器编辑Nginx服务的主配置文件 vim /etc/nginx/nginx.conf找到location / {}该行修改成以下内容location / {root html;index index.php index.html index.htm;}location ~ \.php$ {root html;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;fastcgi_pass 127.0.0.1:9000;include fastcgi_params;} 6.编辑PHP界面文件。 1使用cd命令切换至/usr/share/nginx/html目录下 cd /usr/share/nginx/html/ 2使用vim编辑器编辑index.php网站页面 vim index.php新增以下内容 ?phpphpinfo(); ? 7.重启Nginx服务。 systemctl restart nginx 8.在浏览器上输入IP地址出现PHP页面代表LNMP架构搭建成功。
http://www.pierceye.com/news/611086/

相关文章:

  • 怎么做公司的网站免费网站建设专业的公司
  • 适合这手机浏览器主页的网站wordpress本地上传服务器
  • 济南百度网站开发寮步镇做网站
  • 营销类型的公司网站专注高密做网站哪家好
  • 公司网站建设找谁做网络渠道
  • 网站建设公司 校园网站html5商城网站
  • 自学it做网站厦门网站推广¥做下拉去118cr
  • 汕头市做网站优化国内时事新闻
  • 网站文章来源seowordpress 搜索 分词
  • 网站建设和网络推广微信开发品牌
  • 湛江网站关键词优化百度推广优化技巧
  • 做盗版网站会怎样网页设计规范2018
  • 做个中英文网站多少钱网页设计图片作品
  • iis7 添加php网站网站为什么需要空间
  • 网站到首页排名h5怎么制作的
  • 网站制作教程 pdf下载培训网站制作网站
  • 网站开发文档范例国外服务器租用价格表
  • 六安网站制作费用怎么做百度提交入口网站
  • centos7做网站做pc端网站讯息
  • 驻马店建设网站安徽全过程网站搭建案例
  • 企业网站推广费用wordpress相册汉化版
  • 怎么做正规网站广告网站设计怎么样
  • 深圳营销型网站公司电话云渲染网站开发
  • 生成网站有吗免费的网站建设服务有哪些内容
  • 网站建设制作公司思企互联超级采购小程序怎么注册
  • 燕郊做网站找谁wordpress登录修改
  • 大概开发一个网站多少钱php做网站商城系统怎么样
  • wordpress网站程序员登录百度账号
  • wordpress trac网站优化公司哪家好
  • 网站建设cms系统抖音seo推广外包公司好做吗