This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install gcc | |
apt-get install -y gcc | |
# install make | |
apt-get install -y make | |
# install jdk | |
cd /usr/local/bin/ | |
mkdir java | |
cd java/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.mysql 默认不允许其他主机访问。 | |
修改配置。vi /etc/mysql/my.cnf | |
把bind-address = 127.0.0.1 or localhost 注掉 | |
service mysql restart or init.d/mysql restart | |
2.添加用户 | |
mysql 中的用户对应的表是 database:mysql,table:user | |
insert into mysql.user(Host,User,Password) values('localhost','phplamp',password('1234')); | |
host 代表可以访问的主机。如果允许所有主机访问则为% | |
2. 授权。例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。 | |
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'benjamin' WITH GRANT OPTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
搭建: | |
收集自:http://www.cloudfly.info/archives/36 | |
安装apache2 | |
sudo apt-get install apache2 | |
安装完成,运行如下命令重启下: | |
sudo /etc/init.d/apache2 restart | |
在浏览器里输入http://localhost或者是http://127.0.0.1,如果看到了“It works!“,那就说明Apache就成功的安装了,Apache的默认安装,会在/var下建立一个名为www的目录,这个就是Web目录了,所有要能过浏览器访问的Web文件都要放到这个目录里。 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
第一步:安装 Apache2 + PHP 模块 | |
$ sudo apt-get install apache2 libapache2-mod-php5 php5 php5-mysql | |
第二步:安装并配置Mysql | |
安装mysql | |
$ sudo apt-get install mysql-client-5.0 mysql-server-5.0 | |
创建dotproject用户 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
第一步:搭建lamp环境 | |
参考:https://gist.github.com/wangwy/39cf380b697ed55699a7 | |
第二步:创建apache虚拟机 | |
编辑/etc/apache2/site-available/000-default.conf | |
sudo vim /etc/apache2/site-available/000-default.conf | |
添加 <VirtualHost *:1986> | |
ServerName localhost | |
DocumentRoot /home/krx/zentaopms/www | |
</VirtualHost> | |
第三步:mysql创建zentao用户 |