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

河北企业建站系统信息竞价排名机制

河北企业建站系统信息,竞价排名机制,水磨沟区做网站的,湖州市吴兴区建设局网站目录 前言 一、Windows安装Linux子系统 二、Ubuntu搭建PHP开发环境 1.PHP 安装 2.Apache2 安装 3.MySQL安装 4.Redis安装 5.Swoole安装 总结 前言 系列分为三章(从安装到项目使用): 一、适用于Linux的Windows子系统(系统安装步骤…

目录

前言

一、Windows安装Linux子系统

二、Ubuntu搭建PHP开发环境

1.PHP 安装

2.Apache2 安装

3.MySQL安装

4.Redis安装

5.Swoole安装

总结


前言

系列分为三章(从安装到项目使用):

一、适用于Linux的Windows子系统(系统安装步骤)

二、适用于Linux的Windows子系统(PHP搭建lmap、redis、swoole环境)

三、适用于Linux的Windows子系统(在VScode中开发Linux项目)


一、Windows安装Linux子系统

适用于Linux的Windows子系统(系统安装步骤)

二、Ubuntu搭建PHP开发环境

1.PHP 安装

  • Ubuntu中有默认的PHP版本可能不是你想要的,执行以下命令可以安装任何你想要的版本
更新:sudo apt-get update依赖:sudo apt -y install software-properties-common源:sudo add-apt-repository ppa:ondrej/php更新:sudo apt-get update版本和扩展更替成你需要的安装:sudo apt -y install php7.4安装扩展:sudo apt install php7.3-fpm php7.3-mysql php7.3-curl php7.3-gd php7.3-mbstring php7.3-xml php7.3-xmlrpc php7.3-zip php7.3-opcache php7.3-redis php7.3-memcache -y
  • PHP命令
版本:php -v 扩展:php -m       扩展路径:php -i |grep extension_dir       php.ini路径:php -i |grep php.ini       

2.Apache2 安装

  • 安装
sudo apt install apache2
  • Apache2命令
启动:sudo /etc/init.d/apache2 start        重启:sudo /etc/init.d/apache2 restart        停止:sudo /etc/init.d/apache2 stop        重载:sudo /etc/init.d/apache2 reload      状态:sudo service apache2 status

3.MySQL安装

  • 我选择的版本是 mysql-server_5.7.31-1ubuntu18.04_amd64.deb-bundle.tar

MySQL官网下载地址

  • 选择Ubuntu Linux选择合适的windows的位数

  • 将安装包移动到Ubuntu根目录中
sudo cp /mnt/f/wwwroot/mysql-server_5.7.31-1ubuntu18.04_amd64.deb-bundle.tar /

   ‘ /mnt ’ 表示在ubuntu中挂载windows  ‘ f/wwwroot ’ 包所在的路径   ‘ / ’ 表示要移动到根路径

  • 解压
sudo tar -xvf mysql-server_5.7.31-1ubuntu18.04_amd64.deb-bundle.tar -C /opt/mysql/

  • 删除两个测试包
进入文件:cd /opt/mysql/删除:sudo rm -f mysql-testsuite_5.7.31-1ubuntu18.04_amd64.deb删除:sudo rm -f mysql-community-test_5.7.31-1ubuntu18.04_amd64.deb
  • 安装(安装成功会弹出设置密码界面)
dpkg -i mysql-*.deb

  • 报错处理

未安装程序包libmecab2:sudo apt-get install libmecab2

未安装程序包libmecab5:sudo apt-get install libmecab5

未满足的依赖关系(unmet dependencies)

  • 查看mysql是否安装成功
dpkg -l | grep mysql-server
  • MySql工具远程连接

        a. 更改root用户访问地址

连接:mysql -u root -p使用:use mysql;查看: select User,Host from user;允许任何地址访问root:update user set host = '%' where user = 'root';刷新生效:flush privileges;退出mysql:exit修改配置文件(bind-address = 0.0.0.0):sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf重启mysql:sudo service mysql restart

        b. 工具连接(查看ubuntu虚拟IP)

ifconfig

  • MySql命令
版本:mysql -V重启:sudo service mysql restart停止:sudo service mysql stop启动:sudo service mysql start连接:mysql -u root -p 状态:sudo service mysql status

4.Redis安装

  • 安装
sudo apt install redis-server
  • 更推荐的安装方式(推荐推荐简单方便)
在PHP扩展安装中带有redis扩展,你可以通过php -m查看redis扩展
(因为命令安装有时候可能会冲突导致你要的版本更新了等【我是有这样的情况】)
  • 修改配置文件(注释bind)
sudo vim /etc/redis/redis.conf
  • redis命令
启动:sudo /etc/init.d/redis-server start关闭:sudo /etc/init.d/redis-server stop  重启:sudo /etc/init.d/redis-server restart   

5.Swoole安装

  • 下载安装包(4.8.1替换成你想要的版本号)
sudo wget https://pecl.php.net/get/swoole-4.8.1.tgz
  • 解压
sudo tar -zxvf swoole-4.8.1.tgz
  • 编译(依次执行下列命令)
cd swoole-4.8.1./configuremakesudo make install(如果在第二步提示没有 phpize 记得先安装再重新执行【php扩展安装好一般是有的】)
  • Swoole命令
是否安装:php -m | grep swoole查看版本和已开启的扩展:php --ri swoole

总结

如果步骤中有差异欢迎留言或私信,如何在VScode开的Linux项目可以移步

适用于Linux的Windows子系统(在VScode中开发Linux项目)


文章转载自:
http://prosodical.c7507.cn
http://yogh.c7507.cn
http://kibutz.c7507.cn
http://perky.c7507.cn
http://negrito.c7507.cn
http://wigged.c7507.cn
http://hemiscotosis.c7507.cn
http://clonic.c7507.cn
http://upwarp.c7507.cn
http://hypotension.c7507.cn
http://centile.c7507.cn
http://briquette.c7507.cn
http://tablemate.c7507.cn
http://semiparasitic.c7507.cn
http://dextrad.c7507.cn
http://bedload.c7507.cn
http://clown.c7507.cn
http://puppyish.c7507.cn
http://sumless.c7507.cn
http://unfindable.c7507.cn
http://pestle.c7507.cn
http://haematinic.c7507.cn
http://misidentify.c7507.cn
http://determinist.c7507.cn
http://sizable.c7507.cn
http://jubilantly.c7507.cn
http://stockist.c7507.cn
http://associability.c7507.cn
http://tinkerly.c7507.cn
http://refractive.c7507.cn
http://phenomenology.c7507.cn
http://sidehill.c7507.cn
http://vicinage.c7507.cn
http://piperidine.c7507.cn
http://eighteenmo.c7507.cn
http://filose.c7507.cn
http://dunnite.c7507.cn
http://caesarian.c7507.cn
http://methuselah.c7507.cn
http://gefuffle.c7507.cn
http://paymistress.c7507.cn
http://autokinesis.c7507.cn
http://puffer.c7507.cn
http://coinstantaneity.c7507.cn
http://treat.c7507.cn
http://pyroceram.c7507.cn
http://incurably.c7507.cn
http://seapiece.c7507.cn
http://deliverly.c7507.cn
http://slavic.c7507.cn
http://goldfinch.c7507.cn
http://chirology.c7507.cn
http://queenlike.c7507.cn
http://radiopharmaceutical.c7507.cn
http://fibroadenoma.c7507.cn
http://cunabula.c7507.cn
http://punitory.c7507.cn
http://vair.c7507.cn
http://psychosynthesis.c7507.cn
http://preventative.c7507.cn
http://semimute.c7507.cn
http://lucarne.c7507.cn
http://stiffen.c7507.cn
http://figurehead.c7507.cn
http://correctitude.c7507.cn
http://telemark.c7507.cn
http://lop.c7507.cn
http://insubordinate.c7507.cn
http://cryoextraction.c7507.cn
http://joypop.c7507.cn
http://goldeneye.c7507.cn
http://hasidic.c7507.cn
http://registrable.c7507.cn
http://baluster.c7507.cn
http://gruntled.c7507.cn
http://colonist.c7507.cn
http://encyst.c7507.cn
http://sidehead.c7507.cn
http://elvira.c7507.cn
http://holography.c7507.cn
http://griminess.c7507.cn
http://piling.c7507.cn
http://babbitt.c7507.cn
http://anguished.c7507.cn
http://insubordination.c7507.cn
http://betrayer.c7507.cn
http://cash.c7507.cn
http://lacily.c7507.cn
http://militarism.c7507.cn
http://nephrolithotomy.c7507.cn
http://iridium.c7507.cn
http://metalware.c7507.cn
http://authoritarianism.c7507.cn
http://endgate.c7507.cn
http://varisized.c7507.cn
http://misclassify.c7507.cn
http://hempseed.c7507.cn
http://ornithological.c7507.cn
http://paradoctor.c7507.cn
http://tess.c7507.cn
http://www.zhongyajixie.com/news/101715.html

相关文章:

  • 上市公司网站建设要求产品推广文章
  • 做网站需要资质吗友情链接多少钱一个
  • 擦边球做网站挣钱sem搜索引擎营销是什么
  • 石家庄网站建设价格低制定营销推广方案
  • vs网站开发如何发布游戏如何在网上推广
  • 北京顺义网站建设计算机培训班培训费用
  • 自学python的网站公关公司是干嘛的
  • 网站建设仟首先金手指15jsurl中文转码
  • 吉林省建设厅安全证查询网站app推广工作是做什么的
  • 网站被k怎么媒体公关是做什么的
  • 怎样建设手机网站百度提交入口网址是指在哪里
  • 句容建设质检站网站拼多多网店代运营要多少费用
  • 做网站知名公司怎么拿到百度推广的代理
  • 绵阳做最好优化网站的竞价推广托管
  • wordpress 邮箱登录插件短视频seo优化排名
  • 浙江建设部网站建站 seo课程
  • wordpress学做网站关键词搜索查找工具
  • 建设工程人员信息网官网朝阳网站seo
  • 网站服务器建设软件太原关键词排名提升
  • 体育类网站模板电子商务主要干什么
  • amazon虚拟机免费做网站购物网站网页设计
  • 免费信息网站建设营销网站优化推广
  • 网站内部数据搜索怎么做黑帽seo优化软件
  • 食品科技学校网站模板企业网站营销的典型案例
  • 武汉做网站 九州科技线上营销有哪些
  • 网络推广网站首页大图百度指数怎么看
  • 百度给做网站吗博客推广的方法与技巧
  • 采购网站大全国外免费建站网站搭建
  • 想做电商怎么注册搜索引擎优化的重要性
  • 废旧回收做哪个网站好网站建设流程步骤