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

设计做图免费网站深圳vi设计公司推荐

设计做图免费网站,深圳vi设计公司推荐,百度搜索搜不到网站,如何申请做网站摘要: 2023-12-29 服务器开发-Centos部署LNMP环境 centos7.2搭建LNMP具体步骤 1.配置防火墙 CentOS 7.0以上的系统默认使用的是firewall作为防火墙#xff0c; 关闭firewall#xff1a; systemctl stop firewalld.service #停止firewall systemctl disable fire… 摘要: 2023-12-29 服务器开发-Centos部署LNMP环境 centos7.2搭建LNMP具体步骤 1.配置防火墙 CentOS 7.0以上的系统默认使用的是firewall作为防火墙 关闭firewall systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2.安装以及配置nginx 1可直接使用服务器内自带的yum源进行安装。 yum install -y nginx 2修改nginx默认配置文件。 cd /etc/nginx/ #nginx的默认配置目录 mv nginx.conf nginx.conf.swf #将通过yum安装自动生成的配置文件换名不再使用。 mv nginx.conf.default nginx.conf #将default文件修改为加载配置文件 3启动nginx并访问。 systemctl start nginx.service #启动nginx systemctl stop nginx.service #停止 systemctl restart nginx.service #重启 systemctl enable nginx.service 此时使用公网IP访问即可打开nginx的默认欢迎页面。 3.安装php环境以及依赖扩展并开启php 1安装环境。 yum install -y php-fpm php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash yum install php php-fpm php-mysql -y 2启动php-fpm。 systemctl start php-fpm.service #启动php-fpm systemctl enable php-fpm.service #设置开机启动 3修改配置文件使nginx兼容php。 vim /etc/nginx/nginx.conf 在location内添加上index.php 把php识别之前的#注释给去掉就可以了并且改一下fastcgi_param location / { root html; index index.php index.html index.htm; }error_page 500 502 503 504 /50x.html; location /50x.html { root html; }location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } 4重启nginx和php-fpm systemctl restart php-fpm.service systemctl restart nginx.service 5访问phpinfo验证 进入nginx默认根目录 cd /usr/share/nginx/html/ vim index.php ?php echo phpinfo(); ? 此时访问公网IP/index.php可看到php的探针页面 4.安装mysql并连接php进行验证 1centos7以上的系统默认数据库为MariaDB需要下载mysql源进行安装。 wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum install -y mysql-community-server 成功安装之后重启mysql服务: systemctl start mysqld 2安装后的mysql数据库是没有密码的可进入数据库后授权设置密码。 mysql -u root mysql use mysql; mysql update user set passwordPASSWORD(这里输入root用户密码) where userroot; mysql flush privileges; mysql exit 3编写php测试mysql是否可连接的代码并访问。 vim /usr/share/nginx/html/test.php ?php $linkmysql_connect(localhost,root,刚才所设置的数据库密码); if(!$link) echo FAILD!error; else echo OK!You succeeded.; ? 保存后此时访问IP/test.php可看到 至此基于centos7.2系统所安装的LNMP环境已经全部搭建完毕。
http://www.w-s-a.com/news/665287/

相关文章:

  • 网站开发的平台成都有哪些好玩的
  • 上海金瑞建设集团网站怎么创建免费网页
  • 柳州做网站设计的公司制作网站软件下载
  • 湖南seo网站开发苏州网络营销及网站推广
  • 如何发布自己做的网站郑州网站建设定制开发
  • 重庆网站商城宁波网络公司联系方式
  • 个人网站建设实验心得seo课程简介
  • 免费自助建站系统下载推广app网站
  • 用scala做的网站标题关键词优化技巧
  • 百度网站评级wordpress忘记admin
  • 建筑标准下载网站263企业邮箱 登陆
  • 旅游房地产网站建设德保网站建设
  • 网站高端建设wordpress订单系统
  • 建设网站成本增加网站备案
  • 行业网站建设方案百度云图片转wordpress
  • 如何建设网站推广平台营销客户管理软件
  • 网站制作南宁如何撰写一个网站规划建设方案
  • 建站网站和维护需要会什么杭州人防质监站网址
  • 唐山免费做网站莱芜吧贴吧最新消息
  • 韶关市建设工程造价网站网络营销的平台有哪些
  • 网站建设费大概多少钱成都网站建设低价
  • 做表格的网站东莞常平房价
  • 国家级建设网站高密做网站哪家强价位
  • 江西省新的建设厅三类人员网站做标记网站
  • 做最精彩绳艺网站产品设计培训
  • 营销型网站建设品牌深圳网络推广最新招聘
  • 单位网站等级保护必须做吗广州app软件开发公司
  • 免费flash网站模板怎么仿网站链接
  • 泉州网站建设哪家好平面设计转行做什么比较好
  • 忘记网站备案账号设计一个网站