PCduino+LAMP(Linux Apache Mysql PHP)配置
ApacheLAMP
主要参考了以下链接:
http://wenku.baidu.com/link?url=B5mD0Rn0DR5Qunqut98lmX8d1rXyouil3rfwcSVQ5A0NFOqNjJd2S5sazduht98f_f1Vv8N86zuZ_1vzcuGINki-HhcNb3b6dQ4-FnnhJwK
下面记录一下本人的配置过程,声明一下,本人小白一枚,对整个架构不甚了解,只是记录一下自己操作的过程,不当之处请高手指正。
1、将pcduino接入互联网,在pcduino中打开LX终端,下载并安装相关软件,依次执行一下命令:
(1) sudo apt-get update ##更新源,建议每次开始安装之前都要做这步
(2)sudo apt-get install apache2 ##安装apache,较快
(3)sudo apt-get install libapache2-mod-php5 php5 ##安装PHP,较快
(4)sudo apt-get install mysql-server ##安装MySQL
(5)sudo apt-get install php5-mysql ##较快
(6)sudo apt-get install phpmyadmin ##安装phpmyadmin,界面化操作便于对数据库进行管理
2、配置过程中可能会遇到的问题
(1)### apache2启动报错
sudo /etc/init.d/apache2 start
###
错误提示:apache2: Could not reliably determine the server's fully qualified domain name....
sudo leafpad /etc/apache2/apache2.conf
打开后在文件的最前面加入以下内容:
ServerName localhost:80
(2)错误提示:No such file or directory: apache2: could not open error log file /var/log/apache2/error.log
解决方法:一般是在/var/log/路径下缺少apache2这个文件夹,所以自己手动在/var/log/路径下创建一个apache2
3、如何验证安装成功:
(1)Apache:安装完后在本地浏览器中访问:localhost,如果能显示it works
(2)php:
在/var/www路径下新建一个any.php文件,验证能否访问该文件,过程如下:
在终端中输入命令:sudo leafpad /var/www/any.php
打开后在文件中输入以下内容:
<?phpecho "Hello World";?>
保存后关闭文件
在浏览器中访问localhost/any.php,若能正常访问则说明安装成功
(3)mysql:
输入命令:
sudo service mysql start
能正常启动mysql
输入命令:mysql -u root -p
提示让输入密码,输入后能正常登录
(4)phpmyadmin
在浏览器中访问localhost/phpmyadmin,如果能正常进入登录界面则说明安装成功

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Pinduoduo software provides a lot of good products, you can buy them anytime and anywhere, and the quality of each product is strictly controlled, every product is genuine, and there are many preferential shopping discounts, allowing everyone to shop online Simply can not stop. Enter your mobile phone number to log in online, add multiple delivery addresses and contact information online, and check the latest logistics trends at any time. Product sections of different categories are open, search and swipe up and down to purchase and place orders, and experience convenience without leaving home. With the online shopping service, you can also view all purchase records, including the goods you have purchased, and receive dozens of shopping red envelopes and coupons for free. Now the editor has provided Pinduoduo users with a detailed online way to view purchased product records. method. 1. Open your phone and click on the Pinduoduo icon.

How to View Command History in Linux In Linux, we use the history command to view the list of all previously executed commands. It has a very simple syntax: history Some options for pairing with the history command include: Option description -c clears the command history for the current session -w writes the command history to a file -r reloads the command history from the history file -n Limit the number of output of recent commands Simply run the history command to see a list of all previously executed commands in a Linux terminal: In addition to viewing command history, you can also manage command history and perform modifications to previously executed commands , reverse search command history or even delete history completely

Java and embedded systems are both very important technical directions in the computer field, and they each have different application scenarios and development prospects. Below I will analyze the prospects of Java and embedded systems from the aspects of job market, technology development, industry needs and development trends.

Call recording in iPhone is often underestimated and is one of the most critical features of iPhone. With its simplicity, this feature is of vital importance and can provide important insights about the calls made or received on the device. Whether for work purposes or legal proceedings, the ability to access call records can prove invaluable. In simple terms, call history refers to the entries created on your iPhone whenever you make or receive a call. These logs contain key information, including the contact's name (or number if not saved as a contact), timestamp, duration, and call status (dialed, missed, or not answered). They are a concise record of your communication history. Call history includes call history strips stored on your iPhone

Using C++ to realize the remote control function of embedded systems With the rapid development of the Internet of Things, embedded systems are becoming an indispensable part of our daily lives. For developers of embedded systems, how to implement remote control functions is an important issue. Using the C++ programming language, we can easily implement the remote control function of the embedded system. This article will introduce how to use C++ to write code to implement this function, as well as give some sample code. First, we need to prepare some hardware equipment. As an embedded system,

C# Development Suggestions: Logging and Monitoring System Summary: In the software development process, logging and monitoring systems are crucial tools. This article will introduce the role and implementation suggestions of logging and monitoring systems in C# development. Introduction: Logging and monitoring are essential tools in large-scale software development projects. They can help us understand the running status of the program in real time and quickly discover and solve problems. This article will discuss how to use logging and monitoring systems in C# development to improve software quality and development efficiency. The role of logging system

How to log and monitor Java development projects 1. Background introduction With the rapid development of the Internet, more and more companies have begun to develop Java and build various types of applications. In the development process, logging and monitoring are an important link that cannot be ignored. Through logging and monitoring, developers can discover and solve problems in time to ensure the stability and security of applications. 2. The importance of logging 1. Problem tracking: When an application error occurs, logging can help us quickly locate the problem.

Thanks to technological innovations in the intelligence and cleaning performance of sweepers, integrated sweeping and mopping robots have increasingly become a key new appliance standard in global home decoration in recent years, and their trend of being front-loaded and embedded in home decoration has become more obvious. In order to promote the progress of the industry and help consumers solve core pain points such as embedding and water and electricity renovations, Zhumi Technology, as the world's leading brand of smart cleaning appliances, recently brought a new way of solving problems and innovatively launched a new product with a height of only 28cm. Ultra-thin base station embedded sweeping and mopping integrated robot - Space Master Master series (hereinafter referred to as "Zhunmi Space Master Master Series"), this product combines five major Chumi pioneering technical advantages and cutting-edge embedded design concepts to achieve a leading position in the world. The upgrading and leap of the industry will help more families realize their
