【161110】服务器管理记录
15 Practical Linux cURL Command Examples
typically:
curl -O [url]
MySQL: allow remote connection
allow connection from arbitrary hostname:
mysql>GRANT ALL PRIVILEGES ON . TO ‘[username]‘@’%’ IDENTIFIED BY ‘[password]’ WITH GRANT OPTION;
mysql>FLUSH RIVILEGES
allow connection from specific hostname:
mysql>GRANT ALL PRIVILEGES ON . TO ‘[username]‘@’[hostname]’ IDENTIFIED BY ‘[password]’ WITH GRANT OPTION;
mysql>FLUSH RIVILEGES
How to locate MySQL configuration file?
The file might be in 5 (or more?) locations |
---|
/etc/my.cnf |
/etc/mysql/my.cnf |
$MYSQL_HOME/my.cnf |
[datadir]/my.cnf |
~/.my.cnf |
How to locate Nginx configuration file?
The primary configuration file is /etc/nginx/nginx.conf
.
Other possible locations include /opt/nginx/conf/
.
How to locate Apache configuration file?
Usually /etc/httpd/conf/httpd.conf
.
Create an info.php
to reveal Apache environment (risky).
< ?php
phpinfo();
?>
Install Apache2, PHP5 And MySQL Support On CentOS 6.5 (LAMP)
the Apache service is located at /etc/init.d/httpd
.