服务器部署

环境搭建
vi apache/conf/extra/httpd-vhosts.conf   ServerAlias
vi apache/conf/httpd.conf
vi /nginx/conf/nginx.conf
vi /etc/my.cnf
[mysqldump]
user="username"
password ="password"
INSERT INTO `mysql`.`user`(`Host`, `User`, `Password`, `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Create_priv`, `Drop_priv`, `Reload_priv`, `Shutdown_priv`, `Process_priv`, `File_priv`, `Grant_priv`, `References_priv`, `Index_priv`, `Alter_priv`, `Show_db_priv`, `Super_priv`, `Create_tmp_table_priv`, `Lock_tables_priv`, `Execute_priv`, `Repl_slave_priv`, `Repl_client_priv`, `Create_view_priv`, `Show_view_priv`, `Create_routine_priv`, `Alter_routine_priv`, `Create_user_priv`, `Event_priv`, `Trigger_priv`, `Create_tablespace_priv`, `ssl_type`, `ssl_cipher`, `x509_issuer`, `x509_subject`, `max_questions`, `max_updates`, `max_connections`, `max_user_connections`, `plugin`, `authentication_string`) VALUES ('%', 'jianguoer', '*0C112AC76F7D430879C8ADAFBC5A148CDC8A385D', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', '', '', '', '', 0, 0, 0, 0, '', '');

update user set host = "%" where host = "127.0.0.1" limit 1;
flush privileges;
vi /php/etc/php.ini  shell_exec,stream_socket_server  date.timezone = Asia/Seoul
防火墙
vi /etc/sysconfig/iptables
service iptables restart

timedatectl  set-timezone Asia/Seoul
git checkout -b demo
git push --set-upstream origin demo


git config core.filemode false     忽略git编码更改

 /etc/ssh/sshd_config 修改远程连接端口
service sshd restart 

禁ip
  vi httpd-vhosts.conf 
  Deny from 1.1.1.1


评论

  1. #1

    qwe123 (2023/08/19 08:57)
    What is the password for this hash? 0C112AC76F7D430879C8ADAFBC5A148CDC8A385D