Ngày 01 - tìm hiểu Drupal

Ngày 01 - tìm hiểu Drupal

Virtualbox Image

Configure your main OS hosts file

192.168.56.115 drupal.local chive.drupal.local training.drupal.local

221.132.36.8 drupalcode.org ftp.drupal.org

# Server hosts file: /etc/hosts

Server Commands

Nginx:

service nginx start

service nginx stop

service nginx restart


// Start nginx

nginx


// Stop nginx

nginx -s stop


// Test nginx configuration

nginx -t


// Reload

nginx -s reload


PHP{5.2,5.3}-FPM:


PHP 5.2: listen port 9000

PHP 5.3: listen port 9090


service php-fpm start

service php53-fpm start


service php-fpm stop

service php53-fpm stop


service php-fpm restart

service php53-fpm restart


MySQL:

service mysql start

service mysql stop

service mysql restart


OS:

Restart:

reboot


Shutdown:

poweroff

Commands

# Print workding directory

pwd


# Change working directory

cd /var/www/training.drupal.local


# Change working directory, and remember current working directory

pushd /var/www/training.drupal.local


# Go back to last remembered directory (see pushd)

popd


# List directory items

ls

ls -l

ls -la


# Make directory

mkdir /path/to/new-dirname

mkdir -p /path/to/new1/new2/new3


# Remove a file

rm /path/to/filename


# Remove a directory

rm -rf /path/to/directory-name


# Create new file

touch /path/to/newfile.txt


# Copy file, directory

cp /path/to/file1 /path/to/file2

cp -rf /path/to/director1 /path/to/directory2


# Move/Rename file/directory

mv /path/to/old-file-location /path/to/new-file-location

mv /path/to/old-directory-location /path/to/new-directory-location


# View a file

cat /path/to/file
Bạn thấy bài viết này như thế nào?: 
No votes yet
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Bình luận (0)

 

Add Comment

Filtered HTML

  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Các thẻ HTML được chấp nhận: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Tự động ngắt dòng và đoạn văn.

Plain text

  • No HTML tags allowed.
  • Các địa chỉ web và email sẽ tự động được chuyển sang dạng liên kết.
  • Tự động ngắt dòng và đoạn văn.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Google thử nghiệm nhiều tính năng mới cho Gmail

Google thử nghiệm nhiều tính năng mới cho Gmail

Google mới mở rộng công cụ tìm kiếm khi tích hợp thêm các kết quả trong Gmail vào trang kết quả tìm kiếm vào ngày 10/8.

Thêm 1 block region vào theme trong Drupal 7

Thêm 1 block region vào theme trong Drupal 7

In this tutorial, I will walk through the steps for adding a region to Drupal's Bartik theme. There are a couple ways you can do this.

 CEO Facebook đã bay từ Lào Cai về lại Hà Nội

CEO Facebook đã bay từ Lào Cai về lại Hà Nội

Theo lái xe của công ty du lịch Đức Minh chở đoàn từ khách sạn Topas về thành phố Lào Cai từ 8 giờ 30 phút nhưng do yêu cầu đi chậm nên 10 giờ 30 đoàn mới tới vị trí...

Công ty diệt chuột T&C

 

Diet con trung