[root@h105 log]# /etc/init.d/httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.100.105 for ServerName
[ OK ]
[root@h105 log]# chkconfig httpd --list
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@h105 log]# chkconfig httpd on
[root@h105 log]# chkconfig httpd --list
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@h105 log]# vim /etc/sysconfig/iptables
[root@h105 log]# /etc/init.d/iptables reload
iptables: Trying to reload firewall rules: [ OK ]
[root@h105 log]#
[root@h105 log]# iptables -L -nv | grep 80
4 200 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
[root@h105 log]#
此时已经可以通过 http://192.168.100.105/
从外部进行访问了
展示的是 apache 的页面
这里我使用 percona 版本的mysql
[root@h105 mysql]# ls
Percona-Server-client-56-5.6.27-rel76.0.el6.x86_64.rpm Percona-Server-server-56-5.6.27-rel76.0.el6.x86_64.rpm
Percona-Server-devel-56-5.6.27-rel76.0.el6.x86_64.rpm Percona-Server-shared-56-5.6.27-rel76.0.el6.x86_64.rpm
[root@h105 mysql]# rpm -ivh Percona-Server-*
warning: Percona-Server-client-56-5.6.27-rel76.0.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing... ########################################### [100%]
1:Percona-Server-shared-5########################################### [ 25%]
2:Percona-Server-client-5########################################### [ 50%]
3:Percona-Server-server-5########################################### [ 75%]
2016-05-10 20:59:42 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-05-10 20:59:42 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27-76.0) starting as process 2661 ...
2016-05-10 20:59:42 2661 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-10 20:59:42 2661 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-10 20:59:42 2661 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-10 20:59:42 2661 [Note] InnoDB: Memory barrier is not used
2016-05-10 20:59:42 2661 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-10 20:59:42 2661 [Note] InnoDB: Using Linux native AIO
2016-05-10 20:59:42 2661 [Note] InnoDB: Using CPU crc32 instructions
2016-05-10 20:59:42 2661 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-05-10 20:59:42 2661 [Note] InnoDB: Completed initialization of buffer pool
2016-05-10 20:59:42 2661 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-05-10 20:59:42 2661 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-05-10 20:59:42 2661 [Note] InnoDB: Database physically writes the file full: wait...
2016-05-10 20:59:42 2661 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-05-10 20:59:44 2661 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-05-10 20:59:46 2661 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-05-10 20:59:46 2661 [Warning] InnoDB: New log files created, LSN=45781
2016-05-10 20:59:46 2661 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-05-10 20:59:46 2661 [Note] InnoDB: Doublewrite buffer created
2016-05-10 20:59:46 2661 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-10 20:59:46 2661 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-05-10 20:59:46 2661 [Note] InnoDB: Foreign key constraint system tables created
2016-05-10 20:59:46 2661 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-05-10 20:59:46 2661 [Note] InnoDB: Tablespace and datafile system tables created.
2016-05-10 20:59:46 2661 [Note] InnoDB: Waiting for purge to start
2016-05-10 20:59:46 2661 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.27-76.0 started; log sequence number 0
2016-05-10 20:59:46 2661 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2016-05-10 20:59:46 2661 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2016-05-10 20:59:47 2661 [Note] Binlog end
2016-05-10 20:59:47 2661 [Note] InnoDB: FTS optimize thread exiting.
2016-05-10 20:59:47 2661 [Note] InnoDB: Starting shutdown...
2016-05-10 20:59:48 2661 [Note] InnoDB: Shutdown completed; log sequence number 1625977
2016-05-10 20:59:50 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-05-10 20:59:50 0 [Note] /usr/sbin/mysqld (mysqld 5.6.27-76.0) starting as process 2686 ...
2016-05-10 20:59:50 2686 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-10 20:59:50 2686 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-10 20:59:50 2686 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-10 20:59:50 2686 [Note] InnoDB: Memory barrier is not used
2016-05-10 20:59:50 2686 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-10 20:59:50 2686 [Note] InnoDB: Using Linux native AIO
2016-05-10 20:59:50 2686 [Note] InnoDB: Using CPU crc32 instructions
2016-05-10 20:59:50 2686 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-05-10 20:59:50 2686 [Note] InnoDB: Completed initialization of buffer pool
2016-05-10 20:59:50 2686 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-10 20:59:53 2686 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-10 20:59:53 2686 [Note] InnoDB: Waiting for purge to start
2016-05-10 20:59:53 2686 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.27-76.0 started; log sequence number 1625977
2016-05-10 20:59:53 2686 [Note] RSA private key file not found: /var/lib/mysql//private_key.pem. Some authentication plugins will not work.
2016-05-10 20:59:53 2686 [Note] RSA public key file not found: /var/lib/mysql//public_key.pem. Some authentication plugins will not work.
2016-05-10 20:59:53 2686 [Note] Binlog end
2016-05-10 20:59:53 2686 [Note] InnoDB: FTS optimize thread exiting.
2016-05-10 20:59:53 2686 [Note] InnoDB: Starting shutdown...
2016-05-10 20:59:55 2686 [Note] InnoDB: Shutdown completed; log sequence number 1625987
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h h105 password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
Please report any problems at
https://bugs.launchpad.net/percona-server/+filebug
The latest information about Percona Server is available on the web at
http://www.percona.com/software/percona-server
Support Percona by buying support at
http://www.percona.com/products/mysql-support
Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.
Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
See http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details
4:Percona-Server-devel-56########################################### [100%]
[root@h105 mysql]#
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。