CentOS 6.3安装配置LAMP服务器(Linux+Apache+MySQL+PHP5)

别再傻傻分不清!LSI、PMC、HP阵列卡工具命令速查手册(含sas3ircu/storcli/arcconf实战) 本文提供LSI、PMC、HP阵列卡工具命令速查手册,涵盖sas3ircu、storcli和arcconf的实战操作。通过快速识别阵列卡型号、深度操作指南和排错技巧,帮助运维人员高效管理混合品牌服务器环境,提升故障处理效率。 阅读详情



※ 本文档描述了如何在Linux服务器配置Apache、Mysql、PHP5
 
LAMP(Linux-Apache-MySQL-PHP)网站架构是目前国际流行的Web框架,该框架包括:Linux操作系统,Apache网络服务器,MySQL数据库,Perl、PHP或者Python编程语言,所有组成产品均是开源软件,是国际上成熟的架构框架,很多流行的商业应用都是采取这个架构,和Java/J2EE架构相比,LAMP具有Web资源丰富、轻量、快速开发等特点,微软的.NET架构相比,LAMP具有通用、跨平台、高性能、低价格的优势,因此LAMP无论是性能、质量还是价格都是企业搭建网站的首选平台。
 
安装前准备:
1、检查防火墙iptables状态
 [root@server ~]# service iptables status
注意:用法:iptables {start|stop|restart|condrestart|status|panic|save}
表格:filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source             destination         
1    ACCEPT     all  --  0.0.0.0/0           0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0           0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0           0.0.0.0/0           state NEW tcp dpt:22 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
 
Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
 
Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination      
 
查看本机关于 IPTABLES的配置前情况
[root@server ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere           anywhere            state RELATED,ESTABLISHED 
ACCEPT     icmp --  anywhere           anywhere            
ACCEPT     all  --  anywhere           anywhere            
ACCEPT     tcp  --  anywhere           anywhere            state NEW tcp dpt:ssh 
REJECT     all  --  anywhere            anywhere            reject-with icmp-host-prohibited 
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited 
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   
 
2、配置防火墙,开启80端口、3306端口
[root@server ~]# vim /etc/sysconfig/iptables
添加:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT    #允许80(http)端口通过防火墙
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT  #允许3306(mysql)端口通过防火墙
备注:
很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败,正确的应该是添加到默认的22端口这条规则的下面。
如下所示:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT     #允许80(http)端口通过防火墙
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT   #允许3306(mysql)端口通过防火墙
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
:wq   #保存退出
 
重启防火墙使配置生效
[root@server ~]# service iptables restart
iptables:清除防火墙规则:                               [确定]
iptables:将链设置为政策 ACCEPT:filter                    [确定]
iptables:正在卸载模块:                                 [确定]
iptables:应用防火墙规则:                               [确定]
 
最后,检查防火墙iptables状态是否生效
[root@server ~]# service iptables status
表格:filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
2    ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0           
3    ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
4    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22 
5    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80 
6    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:3306 
7    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
 
Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
 
Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination      
 
3、关闭SELINUX
[root@server ~]# vim /etc/selinux/config 
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing   #注释掉强制
SELINUX=disabled     #关闭
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
#SELINUXTYPE=targeted   #注释掉
:wq   #保存退出
 
重启系统
[root@server ~]# reboot
 
安装软件包:
4、安装Apache
检查是否安装httpd,使用YUM 自动安装:
[root@server ~]# rpm -qa |grep httpd
[root@server ~]# yum -y install httpd    #根据提示,输入Y安装即可成功安装
 
启动Apache
[root@server ~]# service httpd start
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
 
设为开机启动
[root@server ~]# chkconfig httpd on
 
重启Apache
[root@server ~]# service httpd restart
停止 httpd:                                               [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
 
查看启动Apache运行状态
[root@server ~]# service httpd status
httpd (pid  1290) 正在运行...
                                                           
浏览器访问:http://10.1.4.44

                                                       

5、安装MySQL
检查是否安装mysql,使用YUM 自动安装:
[root@server ~]# rpm –qa |grep mysql
 [root@server ~]# yum -y install mysql mysql-server  #是否要安装,输入Y即可自动安装,直到安装完成
 
启动MySQL
[root@server ~]# service mysqld start
                                                           [确定]
正在启动 mysqld:                                          [确定]
 
设为开机启动
[root@server ~]# chkconfig mysqld on
 
[root@server ~]# cp /etc/my.cnf /etc/my.cnfbak
[root@server ~]# cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
cp:是否覆盖"/etc/my.cnf"? y   #拷贝配置文件(注意:如果/etc目录下面默认有一个my.cnf,直接覆盖即可)
 
为root账户设置密码
[root@server ~]# 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):   #按回车键
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      #输入y
New password:               #输入新密码
Re-enter new password:        #重输入新密码
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    #输入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] y    #输入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!    #最后出现:Thanks for using MySQL!
 
MySql密码设置完成,重新启动 MySQL:
[root@server ~]# service mysqld restart
停止 mysqld:                                              [确定]
正在启动 mysqld:                                          [确定]
[root@server ~]# service mysqld stop
停止 mysqld:                                              [确定]
[root@server ~]# service mysqld start
正在启动 mysqld:                                          [确定]
[root@server ~]# 
 
6、安装PHP5
检查是否安装php,使用YUM 自动安装:
[root@server ~]# rpm –qa |grep php
[root@server ~]# yum -y install php    #根据提示输入Y直到安装完成
 
安装PHP组件,使 PHP5 支持 MySQL
[root@server ~]# yum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt
 #这里选择以上安装包进行安装,根据提示输入Y回车
 
重启MySql
[root@server ~]# service mysqld restart
停止 mysqld:                                              [确定]
正在启动 mysqld:                                          [确定]
 
重启Apche
[root@server ~]# service httpd restart
停止 httpd:                                               [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
 
配置编辑文件:                                                          
7、Apache配置
个人习惯,修改配置文件首先要备份。
[root@server ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.confbak  #备份
[root@server ~]# vim /etc/httpd/conf/httpd.conf   #编辑文件
小提示:
:set nu    #显示行号
:set nonu  #取消行号
pgUp        #上一页
pgDn        #下一页
 
 44 ServerTokens OS  #在44行 修改为:ServerTokens Prod (在出现错误页的时候不显示服务器操作系统的名称)
536 ServerSignature On  #在536行 修改为:ServerSignature Off (在错误页中不显示Apache的版本)
331 Options Indexes FollowSymLinks  #在331行 修改为:Options Includes ExecCGI FollowSymLinks(允许服务器执行CGI及SSI,禁止列出目录)
796 #AddHandler cgi-script .cgi #在796行 取消“#” 修改为:AddHandler cgi-script .cgi .pl (允许扩展名为.pl的CGI脚本运行)
338 AllowOverride None  #在338行 修改为:AllowOverride All (允许.htaccess)
759 AddDefaultCharset UTF-8 #在759行 修改为:AddDefaultCharset GB2312 (添加GB2312为默认编码)
554 Options Indexes MultiViews FollowSymLinks #在554行 修改为 Options MultiViews FollowSymLinks(不在浏览器上显示树状目录结构)
402 DirectoryIndex index.html index.html.var #在402行 修改为:DirectoryIndex index.html index.htm Default.html Default.htm index.php Default.php index.html.var (设置默认首页文件,增加index.php)
 76 KeepAlive Off #在76行 修改为:KeepAlive On (允许程序性联机)
 83 MaxKeepAliveRequests 100  #在83行 修改为:MaxKeepAliveRequests 1000 (增加同时连接数)
:wq   #保存退出
 
重启
[root@server ~]# service httpd restart
停止 httpd:                                               [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
[root@server ~]# cp /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.confbak    #备份
[root@server ~]# cp /var/www/error/noindex.html /var/www/error/noindex.htmlbak       #备份
[root@server ~]# rm -f /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html     #删除默认2个测试页
 
重启
[root@server ~]# service httpd restart
停止 httpd:                                               [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
 
浏览器访问:http://10.1.4.44 

                                                                                       8、php配置

个人习惯,修改配置文件首先要备份。
[root@server ~]# cp /etc/php.ini /etc/php.inibak  #备份
[root@server ~]# vim /etc/php.ini              #编辑
小提示:
:set nu    #显示行号
:set nonu  #取消行号
pgUp        #上一页
pgDn        #下一页
 
946 ;date.timezone = PRC #在946行 把前面的分号去掉,改为date.timezone = PRC
386 disable_functions = #在386行 添加disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,escapeshellcmd,dll,popen,disk_free_space,checkdnsrr,checkdnsrr,getservbyname,getservbyport,disk_total_space,posix_ctermid,posix_get_last_error,posix_getcwd, posix_getegid,posix_geteuid,posix_getgid, posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid, posix_getppid,posix_getpwnam,posix_getpwuid, posix_getrlimit, posix_getsid,posix_getuid,posix_isatty, posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid, posix_setpgid,posix_setsid,posix_setuid,posix_strerror,posix_times,posix_ttyname,posix_uname列出PHP可以禁用的函数,如果某些程序需要用到这个函数,可以删除,取消禁用。
432 expose_php = On #在432行 修改为:expose_php = Off禁止显示php版本的信息
745 magic_quotes_gpc = Off #在745行 修改为:magic_quotes_gpc = On打开magic_quotes_gpc来防止SQL注入
229 short_open_tag = Off #在229行 修改为short_open_tag = On,支持php短标签
380 ;open_basedir = #在380行 把前面的分号去掉,改为open_basedir = .:/tmp/ 设置表示允许访问当前目录(即PHP脚本文件所在之目录)和/tmp/目录,可以防止php木马跨站,如果改了之后安装程序有问题,可以注销此行,或者直接写上程序的目录/data/www.osyunwei.com/:/tmp/
:wq   #保存退出
 
重启MySql
[root@server ~]# service mysqld restart
停止 mysqld:                                              [确定]
正在启动 mysqld:                                          [确定]
 
重启Apche
[root@server ~]# service httpd restart
停止 httpd:                                               [确定]
正在启动 httpd:httpd: apr_sockaddr_info_get() failed for server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
                                                           [确定]
 
在/var/www/html/目录下,创建一个index.php文件,并且编辑,如下:
[root@server ~]# cd /var/www/html/
[root@server html]# ll
总用量 0
[root@server html]# touch index.php
[root@server html]# vim index.php   #编辑输入下面内容
<?php
phpinfo();
?>
:wq   #保存退出
 
在客户端浏览器输入服务器:http://10.1.4.44地址,可以看到相关的配置信息!

 

注意:
apache默认的程序目录是/var/www/html
权限设置:
[root@server ~]# chown apache.apache -R /var/www/html
 
至此,CentOS 6.3安装配置LAMP服务器(Linux+Apache+PHP5+MySQL)完成!
 
Linux安装LAMP(Linux+Apache+MySQL+PHP)(一)(centos8) LAMP环境和软件版本 一、安装Apache 二、安装mysql数据库 三、安装PHP 阅读详情

相关推荐

Centos6.8下搭建LAMP(Linux、Apache、MySQL、PHP)环境

Centos6.8下搭建LAMP(Linux、Apache、MySQL、PHP)环境 一.安装Apache服务 1.       命令如下:sudo yum install httpd –y 注:采用该方法安装Apache的配置文件的默认路径在/etc/httpd/conf/httpd.conf 需要设置一下Apache服务开机自启,如果不设置,每次开机后都需要自己重启服务:      ...

KING 8747

CentOS6.5安装MySql、Apache、PHP

一、安装MySql 1、卸载CentOS自带的MySql 获取root权限先,卸载CentOS自带的MySql yum remove mysql 2、安装cmake 下载cmake wget http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz 安装C++编辑器 yum install gcc-c++ ...

永生只是一场幻梦 5472

部署 lamp平台--Linux、Apache、MySQL 与 PHP--源码编译安装

文章目录一、LAMP架构与源码编译安装1.概述2.构建顺序3.各组件主要作用4.源码编译安装的优点二、CentOS 7构建LAMP平台1.编译安装Apache httpd服务2.编译安装mysqld 服务4.安装DIscuz论坛 一、LAMP架构与源码编译安装 1.概述 LAMP架构是目前成熟的企业网站应用模式之一,指的是协同工作的一整套系统和相关软件,能够提供动态Web站点服务及其应用开发环境 LAMP是一个缩写词,具体包括Linux操作系统、Apachche网站服务器、MySQL数据库服务器、PH

Xucf1 1515

centos6.3 nginx php,CentOS 6.3安装配置nginx+php+mysql

这篇文章主要给大家介绍的是CentOS 6.3安装配置LNMP服务器(Nginx+PHP+MySQL)的详细步骤以及遇到问题的解决方法,希望大家能够喜欢准备篇1.配置防火墙,开启80端口、3306端口1 vim /etc/sysconfig/iptables2 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允...

weixin_29802189的博客 169

uniapp 基于单选框多选框实现上拉触底多选/单选、回显

showPickerCheckbox弹层显示 label和value 类似下拉框的label和value一个意思 键和值。结果:可以传接口(接口只能post请求) 可以搜索 下面是结果图片展示 单选多选都可以。fieldValue回显传的值 传的是字符串 数组的话[1,2]转为1,2格式传入。mode是控制的单选还是多选 true为多选默认值 其余参数 单选多选一样。fieldName字段名 确定后会返回该字段名 根据字段名找对应的传入值。问题:在uniapp上 实现分页多选的操作。下面是组件的完整代码。

2301_76607997的博客 2936

深入解析CRC-16校验算法及其Verilog硬件实现

本文深入解析了CRC-16校验算法的原理及其在Verilog中的硬件实现方法。从基础的模2除法到串行和并行实现方案,详细介绍了LFSR结构、状态转移分析以及工业应用中的优化技巧。通过实际案例和性能对比,帮助开发者理解如何选择适合的CRC实现方案,确保数据传输的可靠性。

yolo5detector的博客 322

centos配置php mysql环境_CentOS6.3上安装与配置nginx+php+mysql环境

1. 目前nginx采用是源码包安装的方式(yum安装失败),下载地址:http://nginx.org/en/download.html我这里的安装包是:nginx-1.12.0.tar.gz2.在安装nginx前需要安装pcre,我这里的pcre源码包是:pcre-8.35.tar.gz文件存放路径:/home/nginx/pcre-8.35.tar.gztar zxvf pcre-8.3...

weixin_35218304的博客 144

Debian 11 之使用hostapd与dnsmasq进行AP设置

本文介绍debian 11 系统下,使用hostapd 和 dnsmasq配置无线热点的方法。

xinghaitao2005的博客 1697

php5.4 mysql5.6_CentOS 6.3 安装 lnmp (php5.4,mysql5.6)

mysql 5.6 强势发布,除了新特性,性能较mysql 5.5 有很大提升,约200%,点击这里见译文,默认参数发生了变化,点击这里。由于比较懒,通过拼凑,用yum+ rpm安装成功了lnmp,分享给大家。nginx就不多说了,安装官网最新版。#cat/etc/yum.repos.d/nginx.repo[nginx]name=nginxrepobaseurl=http://nginx.o...

weixin_28932089的博客 187

python刷B站播放量

首先,我们要知道B站播放量计算方法:不同的IP只能算一次,如果点一下就关掉,会出现播放完成度很低的情况,反而不利。 所以我们要做的是:不停换IP地址打开视频播放页,最好能看完视频。 下面是实现方法: 获取某一个网页上的所有代理IP,返回一个IP列表: def get_ip_list(url, headers): web_data = requests.get(url, headers=headers) soup = BeautifulSoup(web_data.text, 'lxml

HGGshiwo的博客 1万+

学习笔记之——Event Camera(事件相机)调研

概述 Event Camera是一种bio-inspired sensor,对应的领域为bio-inspired vision。对于传统的相机,从某种程度上,是捕获一个静态/静止的空间,而Event Camera的目的是:敏感地捕捉运动的物体。 对于传统RGB-camera,相机传回的信息是同步的,所谓同步,就是在某一时刻t,相机会进行曝光,把这一时刻所有的像素填在一个矩阵里回传,一张照片就诞生了。一张照片上所有的像素都对应着同一时刻。至于视频,不过是很多帧的图片,相邻图片间的时间间隔...

gwpscut的博客 3万+

centos6.3安装apache php mysql_CentOS 6.3安装配置LAMP服务器(Apache+PHP5+MySQL)

准备篇:1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许33...

weixin_31054839的博客 163

银河麒麟桌面操作系统V10(SP1)ssh服务安装与配置

在国产化的大背景下,各种国产操作系统逐步进入运维人员的视野,ssh作为linux远程连接工具,是运维人员必需的工具之一。本文主要介绍在银河麒麟桌面操作系统V10(SP1)上安装和配置ssh服务。

zhengshaolin128的博客 7811

centos6.3安装apache php mysql_CentOS 6.3安装配置LAMP服务器(Linux+Apache+MySQL+PHP5)

CentOS 6.3安装配置LAMP服务器(Linux+Apache+MySQL+PHP5)[日期:2012-11-19]来源:Linux社区作者:yanghuawu[字体:大 中 小]5、安装MySQL检查是否安装mysql,使用YUM 自动安装:[root@server ~]# rpm –qa |grep mysql[root@server ~]# yum -y install mysql m...

weixin_39566593的博客 126

微信小程序 - 最新将页面可分享到朋友圈功能,小程序实现分享到朋友圈功能,开启分享给好友及分享朋友圈功能(微信小程序怎么分享到朋友圈?详细流程及示例代码教程)

没有设置过分享朋友圈功能的小程序,分享朋友圈按钮是灰色且无法点击。小程序 vue2 | vue3 版本语法都能使用,跟着教程复制代码运行即可。如下图所示,将页面开启分享后便可由用户转发出去。

🏆 前端领域优质创作者 2418

HFSS实战项目——GPS北斗双模微带天线

本文设计了一款方形圆极化微带天线应用于北斗B1和GPSL1频段,满足高增益、低VSWR、适当方向图等要求。设计中心频率为1568MHz,介质板采用厚度h=1.6mm的Arlon AD450(tm)板,相对介电常数为4.5,采用探针馈电。

2401_87464239的博客 1768

Linux安装部署LAMP(Apache+MySQL+PHP)

Linux安装MySQL+Apache+PHP

爱敲代码的三毛的博客 3499

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

Linux Centos7.4 下安装 LAMP环境及配置(php5.6,mysql5.7)

注意该教程只适合Centos7.4 一、连接服务器,检查当前系统环境 1.查看centos版本 [root@iZ2ze1z1rt2fvuh7divnv5Z ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 2.检查是否装相关应用 检查apache httpd -v 检查mysql service mysqld start 如果有安装过,清理下 yum remove mysql rm -f /etc

weixin_44944193的博客 7104

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

CentOS 6.5yum安装配置lamp服务器(Apache+PHP+MySQL)

作者语: 本身想找一个教程, 但按照一个教程打了上千条命令, 还剩一半, 实在承受不住了. 根据lnmp配置的经验, 自己尝试. 侥幸成功. 以下是正文 ------------------------------------------------------------------------------------------------------------------

Lane_L 9987

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

【详解】CentOS6.5下搭建LAMP环境

如果有任何疑问或建议,请在评论区留言。在 CentOS 6.5 下搭建 LAMP (Linux, Apache, MySQL, PHP) 环境是一个常见的任务,尤其是在需要部署 Web 应用或服务时。以下是详细的步骤和示例代码,帮助你在 CentOS 6.5 上完成 LAMP 环境的搭建。在CentOS 6.5下搭建LAMP(Linux, Apache, MySQL, PHP)环境是一个常见的任务,尤其是在需要部署Web应用时。通过以上步骤,你可以在CentOS 6.5上成功搭建一个基本的LAMP环境。

牛肉胡辣汤 1337

yum apache mysql php 配置_Linux Apache php MySQL 安装配置(Centos 6.4 yum安装)

一、yum准备1.Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。2.在安装软件时报’Couldn't resolve host 'mirrorli...

weixin_34916118的博客 6387

centos6.4安装apache+mysql+php_Linux Apache php MySQL 安装配置(Centos 6.4 yum安装)

一、yum准备1.Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装。2.在安装软件时报’Couldn‘t resolve host ‘mirrorli...

weixin_36308543的博客 6600
上一篇: ubuntu php 问题集
下一篇: php调用c语言编写的so动态库
Feisy
博客等级 码龄19年 166粉丝 235原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值