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
server { | |
listen 80; | |
server_name localhost; | |
root /vagrant/Code/october/public; | |
index index.html index.htm index.php; | |
charset utf-8; | |
location / { |
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
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer |
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://weaintplastic.github.io/web-development-field-guide | |
https://learninglaravel.net/resources | |
https://laravel-news.com/category/laravel-tutorials | |
https://ruhighload.com/ | |
https://tekslate.com/mysql-optimization-tutorial/ | |
https://github.com/unicodeveloper/awesome-opensource-apps | |
https://learn-anything.xyz/ | |
http://docs.rightscale.com/ | |
http://www.studytonight.com/ |
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 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; | |
FLUSH PRIVILEGES; | |
Out of the box, MySQL will only allow access from the localhost address 127.0.0.1. To change this, you need to open the /etc/mysql/mysql.conf.d/mysqld.cnf file and change the line: | |
2 bind-address = 127.0.0.1 | |
to |
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
/** git 配置 */ | |
git config --global user.name "edward" | |
git config --global http.sslVerify false | |
/** git 下载远程仓库分枝 */ | |
git remote add origin https://github.com/user/repo.git | |
git fetch origin | |
git checkout branch | |
/** 修改远程仓库 */ |
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
location /shop/ { | |
proxy_pass http://shop.jvawa.com/; | |
proxy_buffers 8 24k; | |
proxy_buffer_size 2k; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Host $host:$server_port; | |
proxy_set_header Connection "upgrade"; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
/** | |
* 创建数据表 | |
* create database ami8 default charset utf8 collate utf8_general_ci; | |
* 创建用户 | |
* create user ami8@localhost identified by 'amibaplus2016'; | |
* 授权 | |
* grant all on ami8.* to ami8@localhost with grant option; | |
* 刷新权限 | |
* flush privileges; | |
* |
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
How to ignore changed files (temporarily) | |
In order to ignore changed files to being listed as modified, you can use the following git command: | |
git update-index --assume-unchanged <file> | |
To revert that ignorance use the following command: | |
git update-index --no-assume-unchanged <file> | |
//回到从前 |
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
First things first. Log in as root and stop the mysql daemon. Now lets start up the mysql daemon and skip the grant tables which store the passwords. | |
mysqld_safe --skip-grant-tables | |
You should see mysqld start up successfully. If not, well you have bigger issues. Now you should be able to connect to mysql without a password. | |
mysql --user=root mysql | |
update user set Password=PASSWORD('new-password') where user='root'; | |
flush privileges; | |
exit; |
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
ps a | grep **** | |
kill -9 **** |
OlderNewer