Linux服务器安装
Apache/nginx+mysql+PHP
操作步骤:
1.登陆服务器
2.下载安装包,安装包地址
http://help.aliyun.com/manual?spm=0.0.0.116.1yaIw8&helpId=129
3.将安装包上传到服务器的/home目录下
注意:使用rz,sz命令进行本地和服务期间的传、下载,安装命令:yum install lrzsz
或者yum install -y lrzsz 就是不用确认会直接安装
只适合本地和服务器小文件的传输
4.解压安装包
使用yum install unzip安装解压工具,安装完成后unzip -x sh.zip命令即可
5.更改解压文件夹
6.安装
7.安装完毕启动后测试安装是否成功
mysql初次登陆方式:mysql -p3306 -uroot -ppassword
1.如果想要用户想使用任何主机名就能登陆的话,可以利用如下命令进行修改:
update user set Host='%' where Host='localhost';
flush privileges;
开始:
[root@AY130222035303b928493 ~]# yum install lrzsz
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 5.1 MB 00:01
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lrzsz.x86_64 0:0.12.20-27.1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
lrzsz x86_64 0.12.20-27.1.el6 base 71 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 71 k
Installed size: 159 k
Is this ok [y/N]: y
Downloading Packages:
lrzsz-0.12.20-27.1.el6.x86_64.rpm | 71 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
Userid : CentOS-6 Key (CentOS 6 Official Signing Key)
Package: centos-release-6-3.el6.centos.9.x86_64 (@anaconda-CentOS-201207061011.x86_64/6.3)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lrzsz-0.12.20-27.1.el6.x86_64 1/1
Verifying : lrzsz-0.12.20-27.1.el6.x86_64 1/1
Installed:
lrzsz.x86_64 0:0.12.20-27.1.el6
Complete!
[root@AY130222035303b928493 ~]#
注意:
- 下面开始上传sh.zip,但是我开始用putty登陆的服务器,但是输入rz命令后一直没有反应,不知道怎么回事,后来又换回secureCRT,输入rz命令后就又反应了,会弹出开一个文件选择框。这个要注意下。
- 这个有一点要注意:是要上传到/root,就是~这个路径下,不要传错了。
[root@AY130222035303b928493 ~]# rz
rz waiting to receive.
开始 zmodem 传输。 按 Ctrl+C 取消。
100% 112 KB 112 KB/s 00:00:01 0 Errors
[root@AY130222035303b928493 ~]#
安装unzip
[root@AY130222035303b928493 ~]# yum install -y unzip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unzip.x86_64 0:6.0-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
unzip x86_64 6.0-1.el6 base 149 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 149 k
Installed size: 313 k
Downloading Packages:
unzip-6.0-1.el6.x86_64.rpm | 149 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : unzip-6.0-1.el6.x86_64 1/1
Verifying : unzip-6.0-1.el6.x86_64 1/1
Installed:
unzip.x86_64 0:6.0-1.el6
Complete!
[root@AY130222035303b928493 ~]#
解压:
[root@AY130222035303b928493 ~]# ls
sh.zip
[root@AY130222035303b928493 ~]# unzip -x sh.zip
[root@AY130222035303b928493 sh]# ls
account.log install_set_sysctl.sh
apt_ftp install_set_ulimit.sh
CentOS5-Base-163.repo install.sh
CentOS5-Base-163-x64.repo install_simple_env.sh
config-httpd-2.2.19 install_soft.sh
config-httpd-2.4.2 install_sphinx.sh
config-nginx-1.0.4 install_vsftpd-2.3.2.sh
init.d my.cnf
init_mysql.php my-innodb-16G.cnf
install_dir.sh php-5.2.17.ini
install_disk.sh php-5.2.17-max-input-vars.patch
install_env_centos.sh php-5.3.6.ini
install_env.sh php-fpm-5.2.17.conf
install_httpd-2.2.22.sh php-fpm-5.3.6.conf
install_httpd-2.4.2.sh rhel-debuginfo.repo
install_mysql-5.1.57.sh rpm_ftp
install_nginx-1.0.4.sh sources.list.maverick
install_php-5.2.17_httpd-2.2.22.sh sources.list.squeeze
install_php-5.2.17_nginx-1.0.4.sh sphinx.conf
install_php-5.3.6_httpd-2.2.22.sh sphinxc.sh
install_php-5.3.6_nginx-1.0.4.sh split_nginx_log.sh
install_php_extension.sh 瀹夎璇存槑.txt
install_redhat.sh
[root@AY130222035303b928493 sh]# ls -l
total 328
-rw-r--r-- 1 root root 301 Aug 9 2012 account.log
drwxr-xr-x 3 root root 4096 May 31 2012 apt_ftp
-rw-r--r-- 1 root root 2341 Jul 15 2011 CentOS5-Base-163.repo
-rw-r--r-- 1 root root 2006 Jun 11 2012 CentOS5-Base-163-x64.repo
drwxr-xr-x 4 root root 4096 Aug 10 2012 config-httpd-2.2.19
drwxr-xr-x 4 root root 4096 Aug 10 2012 config-httpd-2.4.2
drwxr-xr-x 4 root root 4096 Aug 3 2012 config-nginx-1.0.4
drwxr-xr-x 2 root root 4096 Aug 15 2011 init.d
-rw-r--r-- 1 root root 902 Aug 7 2011 init_mysql.php
-rw-r--r-- 1 root root 709 Jul 31 2012 install_dir.sh
-rw-r--r-- 1 root root 228 Jul 15 2011 install_disk.sh
-rw-r--r-- 1 root root 591 May 31 2012 install_env_centos.sh
-rw-r--r-- 1 root root 2654 Jun 11 2012 install_env.sh
-rw-r--r-- 1 root root 525 Jul 27 2012 install_httpd-2.2.22.sh
-rw-r--r-- 1 root root 942 Jun 11 2012 install_httpd-2.4.2.sh
-rw-r--r-- 1 root root 1037 Jun 12 2012 install_mysql-5.1.57.sh
-rw-r--r-- 1 root root 613 Aug 10 2012 install_nginx-1.0.4.sh
-rw-r--r-- 1 root root 1084 Aug 9 2012 install_php-5.2.17_httpd-2.2.22.sh
-rw-r--r-- 1 root root 1479 Aug 9 2012 install_php-5.2.17_nginx-1.0.4.sh
-rw-r--r-- 1 root root 1024 Aug 9 2012 install_php-5.3.6_httpd-2.2.22.sh
-rw-r--r-- 1 root root 1181 Jun 11 2012 install_php-5.3.6_nginx-1.0.4.sh
-rw-r--r-- 1 root root 881 May 14 2012 install_php_extension.sh
-rw-r--r-- 1 root root 3337 May 14 2012 install_redhat.sh
-rw-r--r-- 1 root root 680 Aug 15 2011 install_set_sysctl.sh
-rw-r--r-- 1 root root 94 Aug 15 2011 install_set_ulimit.sh
-rw-r--r-- 1 root root 6093 Nov 14 18:50 install.sh
-rw-r--r-- 1 root root 338 May 31 2012 install_simple_env.sh
-rw-r--r-- 1 root root 588 Sep 5 09:13 install_soft.sh
-rw-r--r-- 1 root root 1025 May 14 2012 install_sphinx.sh
-rw-r--r-- 1 root root 613 Jan 10 16:02 install_vsftpd-2.3.2.sh
-rw-r--r-- 1 root root 1421 Aug 3 2011 my.cnf
-rw-r--r-- 1 root root 1790 Jul 25 2011 my-innodb-16G.cnf
-rw-r--r-- 1 root root 49232 Mar 13 2012 php-5.2.17.ini
-rw-r--r-- 1 root root 4277 Feb 18 2012 php-5.2.17-max-input-vars.patch
-rw-r--r-- 1 root root 69226 Mar 13 2012 php-5.3.6.ini
-rw-r--r-- 1 root root 4821 Aug 2 2012 php-fpm-5.2.17.conf
-rw-r--r-- 1 root root 12878 Aug 3 2012 php-fpm-5.3.6.conf
-rw-r--r-- 1 root root 1706 Jul 15 2011 rhel-debuginfo.repo
drwxr-xr-x 2 root root 4096 Aug 9 2012 rpm_ftp
-rw-r--r-- 1 root root 1865 Jan 10 19:44 sources.list.maverick
-rw-r--r-- 1 root root 684 Jul 15 2011 sources.list.squeeze
-rw-r--r-- 1 root root 6682 Jul 21 2011 sphinx.conf
-rw-r--r-- 1 root root 934 Jul 15 2011 sphinxc.sh
-rw-r--r-- 1 root root 307 Aug 15 2011 split_nginx_log.sh
-rw-r--r-- 1 root root 436 Jul 25 2011 瀹夎璇存槑.txt
[root@AY130222035303b928493 sh]# ls
更改权限:-R(更改sh目录下所有的文件权限)
[root@AY130222035303b928493 ~]# chmod -R 755 sh
安装:
[root@AY130222035303b928493 sh]# ls intall.sh
ls: cannot access intall.sh: No such file or directory
[root@AY130222035303b928493 sh]# ls install.sh
install.sh
[root@AY130222035303b928493 sh]# ll install.sh
-rwxr-xr-x 1 root root 6093 Nov 14 18:50 install.sh
[root@AY130222035303b928493 sh]# vim install.sh
然后等待安装,大约30分钟左右...
inflating: phpmyadmin/themes/pmahomme/layout.inc.php
inflating: phpmyadmin/themes/pmahomme/screen.png
inflating: phpmyadmin/themes/pmahomme/sprites.lib.php
inflating: phpmyadmin/themes/sprites.css.php
inflating: phpmyadmin/themes/svg_gradient.php
inflating: phpmyadmin/themes.php
inflating: phpmyadmin/transformation_overview.php
inflating: phpmyadmin/transformation_wrapper.php
inflating: phpmyadmin/url.php
inflating: phpmyadmin/user_password.php
inflating: phpmyadmin/view_create.php
inflating: phpmyadmin/view_operations.php
inflating: phpmyadmin/webapp.php
web installed successfully.view mysql/vsftp account from tmp.log
Shutting down php_fpm . done
Starting php_fpm done
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
[root@AY130222035303b928493 sh]#
这样就安装OK了,然后我们检查下是否安装成功了。
[root@AY130222035303b928493 sh]# ps -ef|grep nginx
www 22649 31353 0 11:42 ? 00:00:00 nginx: worker process
www 22650 31353 0 11:42 ? 00:00:00 nginx: worker process
root 22906 6164 0 12:31 pts/3 00:00:00 grep nginx
root 31353 1 0 11:36 ? 00:00:00 nginx: master process /alidata/server/nginx/sbin/nginx
[root@AY130222035303b928493 sh]# ps -ef|grep mysql
root 22910 6164 0 12:31 pts/3 00:00:00 grep mysql
root 29056 1 0 11:35 pts/3 00:00:00 /bin/sh /alidata/server/mysql/bin/mysqld_safe --datadir=/alidata/server/mysql/var --pid-file=/alidata/server/mysql/var/AY130222035303b928493.pid
mysql 29225 29056 0 11:35 pts/3 00:00:01 /alidata/server/mysql/libexec/mysqld --basedir=/alidata/server/mysql --datadir=/alidata/server/mysql/var --user=mysql --log-error=/alidata/server/mysql/var/AY130222035303b928493.err --open-files-limit=16384 --pid-file=/alidata/server/mysql/var/AY130222035303b928493.pid --socket=/tmp/mysql.sock --port=3306
[root@AY130222035303b928493 sh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:02:11:6D
inet addr:10.129.30.247 Bcast:10.129.31.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:612821 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27502370 (26.2 MiB) TX bytes:546 (546.0 b)
Interrupt:164
eth1 Link encap:Ethernet HWaddr 00:16:3E:02:13:CD
inet addr:42.96.145.87 Bcast:42.96.147.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8482261 errors:0 dropped:0 overruns:0 frame:0
TX packets:98676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:674923167 (643.6 MiB) TX bytes:13931853 (13.2 MiB)
Interrupt:163
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
如何检查呢,用查出来的公网IP,放到地址栏中看到一个phpwind安装提示界面就算成功了。具体配置稍后。。。
下面看如何登陆Mysql
[root@AY130222035303b928493 sh]# cat account.log
##########################################################################
#
# thank you for using aliyun virtual machine
#
##########################################################################
FTP:
account:www
password:9K03aojb1
MySQL:
account:root
password:1a767390f2
这里遇到一个问题就是:视频上说输入mysql,就能看到下面的一些表,但是我输入后出现这个错误:
bash: mysql: command not found
然后百度一下,基本都是下面的回答:
提示bash: mysql: command not found解决方法
是因为mysql命令的路径在/usr/local/mysql/bin下面,所以你直接使用mysql命令时,系统在/usr/bin下面查此命令,所以找不到了,解决办法是 ln -s /usr/local/mysql/bin/mysql /usr/bin 做个链接即可
然后还是不行,我就关闭了securecrt,然后重新连接了一下就可以了。
然后按照下面的步骤登陆mysql,并且设置其可以使用公网IP或者127.0.0.1登陆。
[root@AY130222035303b928493 sh]# cat account.log
##########################################################################
#
# thank you for using aliyun virtual machine
#
##########################################################################
FTP:
account:www
password:9K03aojb1
MySQL:
account:root
password:1a767390f2
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 35
Server version: 5.1.63-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.03 sec)
mysql> use mysql;
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| servers |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
23 rows in set (0.07 sec)
mysql> desc user;
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------------+-----------------------------------+------+-----+---------+-------+
| Host | char(60) | NO | PRI | | |
| User | char(16) | NO | PRI | | |
| Password | char(41) | NO | | | |
| Select_priv | enum('N','Y') | NO | | N | |
| Insert_priv | enum('N','Y') | NO | | N | |
| Update_priv | enum('N','Y') | NO | | N | |
| Delete_priv | enum('N','Y') | NO | | N | |
| Create_priv | enum('N','Y') | NO | | N | |
| Drop_priv | enum('N','Y') | NO | | N | |
| Reload_priv | enum('N','Y') | NO | | N | |
| Shutdown_priv | enum('N','Y') | NO | | N | |
| Process_priv | enum('N','Y') | NO | | N | |
| File_priv | enum('N','Y') | NO | | N | |
| Grant_priv | enum('N','Y') | NO | | N | |
| References_priv | enum('N','Y') | NO | | N | |
| Index_priv | enum('N','Y') | NO | | N | |
| Alter_priv | enum('N','Y') | NO | | N | |
| Show_db_priv | enum('N','Y') | NO | | N | |
| Super_priv | enum('N','Y') | NO | | N | |
| Create_tmp_table_priv | enum('N','Y') | NO | | N | |
| Lock_tables_priv | enum('N','Y') | NO | | N | |
| Execute_priv | enum('N','Y') | NO | | N | |
| Repl_slave_priv | enum('N','Y') | NO | | N | |
| Repl_client_priv | enum('N','Y') | NO | | N | |
| Create_view_priv | enum('N','Y') | NO | | N | |
| Show_view_priv | enum('N','Y') | NO | | N | |
| Create_routine_priv | enum('N','Y') | NO | | N | |
| Alter_routine_priv | enum('N','Y') | NO | | N | |
| Create_user_priv | enum('N','Y') | NO | | N | |
| Event_priv | enum('N','Y') | NO | | N | |
| Trigger_priv | enum('N','Y') | NO | | N | |
| ssl_type | enum('','ANY','X509','SPECIFIED') | NO | | | |
| ssl_cipher | blob | NO | | NULL | |
| x509_issuer | blob | NO | | NULL | |
| x509_subject | blob | NO | | NULL | |
| max_questions | int(11) unsigned | NO | | 0 | |
| max_updates | int(11) unsigned | NO | | 0 | |
| max_connections | int(11) unsigned | NO | | 0 | |
| max_user_connections | int(11) unsigned | NO | | 0 | |
+-----------------------+-----------------------------------+------+-----+---------+-------+
39 rows in set (0.01 sec)
mysql> select HOST,User,Password from user;
+-----------+------+-------------------------------------------+
| HOST | User | Password |
+-----------+------+-------------------------------------------+
| localhost | root | *07BEC562F19A08188ABA686AA95A7F55F0CCE876 |
+-----------+------+-------------------------------------------+
1 row in set (0.00 sec)
mysql> exit
Bye
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2 -h127.0.0.1
ERROR 1130 (HY000): Host '127.0.0.1' is not allowed to connect to this MySQL server
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2 -hlocalhost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.1.63-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
[root@AY130222035303b928493 sh]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:02:11:6D
inet addr:10.129.30.247 Bcast:10.129.31.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:627962 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:28189012 (26.8 MiB) TX bytes:546 (546.0 b)
Interrupt:164
eth1 Link encap:Ethernet HWaddr 00:16:3E:02:13:CD
inet addr:42.96.145.87 Bcast:42.96.147.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8689590 errors:0 dropped:0 overruns:0 frame:0
TX packets:100461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:686550234 (654.7 MiB) TX bytes:14687684 (14.0 MiB)
Interrupt:163
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6878 (6.7 KiB) TX bytes:6878 (6.7 KiB)
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2 -h42.96.145.87
ERROR 1130 (HY000): Host '42.96.145.87' is not allowed to connect to this MySQL server
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.1.63-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use mysql;
Database changed
mysql> show tables;
+---------------------------+
| Tables_in_mysql |
+---------------------------+
| columns_priv |
| db |
| event |
| func |
| general_log |
| help_category |
| help_keyword |
| help_relation |
| help_topic |
| host |
| ndb_binlog_index |
| plugin |
| proc |
| procs_priv |
| servers |
| slow_log |
| tables_priv |
| time_zone |
| time_zone_leap_second |
| time_zone_name |
| time_zone_transition |
| time_zone_transition_type |
| user |
+---------------------------+
23 rows in set (0.00 sec)
mysql> select HOST,User,Password from user;
+-----------+------+-------------------------------------------+
| HOST | User | Password |
+-----------+------+-------------------------------------------+
| localhost | root | *07BEC562F19A08188ABA686AA95A7F55F0CCE876 |
+-----------+------+-------------------------------------------+
1 row in set (0.00 sec)
mysql> update user set HOST='%' where HOST='localhost';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
Bye
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2 -h42.96.145.87
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 40
Server version: 5.1.63-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit;
Bye
[root@AY130222035303b928493 sh]# mysql -P3306 -uroot -p1a767390f2 -h127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 41
Server version: 5.1.63-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit;
Bye
[root@AY130222035303b928493 sh]#
然后就用云服务器的IP地址输入地址栏去设置一些参数。
数据库信息:localhost
用户名:root
密码:1a767390f2
数据库名:aliyundatabase
表前缀:pw_aliyun
创始人信息:
admin
123456
设置完这些参数后,再看数据库,就会发现多了一个数据库aliyundatabase.
这个会自动的安装phpwind,原来还不知道这个东西,后来发现和discuz差不多,是国内两个最大的开源论坛,各有优势。
cat account.log 后,会出现ftp和mysql的用户名和密码
ftp的用户名是:www
mysql的用户名是:root
密码就在屏幕上了!
好了。所有配置都已经完成了。是不是很简单!
----------------------------------------------------------------------
网站目录:/alidata/www
服务器软件目录:/alidata/server
Mysql 目录 /alidata/server/mysql
Php目录/alidata/server/php
选择了nginx 那么会有一个nginx 目录在
/alidata/server/nginx/
Nginx 配置文件在/alidata/server/nginx/conf
Nginx虚拟主机添加 你可以修改/alidata/server/nginx/conf/vhosts/phpwind.conf
选择了apache那么会有一个httpd 目录在
/alidata/server/httpd
apache 配置文件在/alidata/server/httpd/conf
apache虚拟主机添加 你可以修改/alidata/server/httpd/conf/vhosts/phpwind.conf
下面讲如何在nginx下增加网站。。。