ubuntu环境配置
1.node.js
- apt-get update
- apt-get install -y python-software-properties software-properties-common
- add-apt-repository ppa:chris-lea/node.js
- apt-get update
- apt-get install nodejs
***
## 2. PHP+Apache+MySql+PHPMyAdmin
1. 安装之前先更新系统
>```
sudo apt update
- 安装Apache2
1 sudo apt install apache2
3. 安装PHP
>```
1 sudo apt install php
2 sudo apt-get install libapache2-mod-php
- 安装MySQL
1 sudo apt install mysql-server php7.0-mysql
2 sudo apt-get install mysql-client
3 mysql_secure_installation
5. 安装phpmyadmin
>```
1 sudo apt-get install phpmyadmin
2 sudo apt-get install php-mbstring
3 sudo apt-get install php-gettext
4 sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
- 配置phpmyadmin
1 nano /etc/php/7.0/apache2/php.ini
display_errors = On(显示错误日志,出现两次,都要改,不然无效)
extension=php_mbstring.dll (开启mbstring)
***
参考1:http://justcode.ikeepstudying.com/2016/04/ubuntu-16-04-%E5%AE%89%E8%A3%85-lamp-install-apache-mysql-php-lamp-stack-ubuntu-16-04/
参考2:http://www.linuxdiyf.com/linux/20557.html
***
## 3. 安装atom
通过PPA安装
根据参考资料[1]的说明,在命令终端上依次输入以下命名可以实现Atom的安装:
>```
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
参考资料
[1]Ubuntu 下通过 PPA 安装 Atom http://www.linuxidc.com/Linux/2014-05/101501.htm